FastArduino  v1.8
C++ library to build fast but small Arduino/AVR projects
mcp230xx.h
Go to the documentation of this file.
1 // Copyright 2016-2021 Jean-Francois Poilpret
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
16 
21 #ifndef MCP230XX_H
22 #define MCP230XX_H
23 
24 #include <stdint.h>
25 
26 namespace devices
27 {
33  namespace mcp230xx
34  {
35  }
36 }
37 
38 namespace devices::mcp230xx
39 {
43  enum class InterruptPolarity : uint8_t
44  {
49  ACTIVE_LOW = 0,
54  ACTIVE_HIGH = 1
55  };
56 }
57 
58 #endif /* MCP230XX_H */
59 
devices
Defines all API for all external devices supported by FastArduino.
Definition: common_magneto.h:27
devices::mcp230xx::InterruptPolarity
InterruptPolarity
The polarity of the MCP23008/MCP23017 INT pins.
Definition: mcp230xx.h:44
devices::mcp230xx::InterruptPolarity::ACTIVE_LOW
@ ACTIVE_LOW
The INT pins shall be active low, ie they are high by default, and changed to low when an interrupt i...
devices::mcp230xx
Defines the API for MCP23008/MCP23017 chips support.
Definition: mcp23008.h:28