FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
mcp230xx.h
Go to the documentation of this file.
1// Copyright 2016-2023 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
26namespace devices
27{
33 namespace mcp230xx
34 {
35 }
36}
37
38namespace 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 */
Defines the API for MCP23008/MCP23017 chips support.
Definition: mcp23008.h:30
InterruptPolarity
The polarity of the MCP23008/MCP23017 INT pins.
Definition: mcp230xx.h:44
@ ACTIVE_HIGH
The INT pins shall be active high, ie they are low by default, and changed to high when an interrupt ...
@ ACTIVE_LOW
The INT pins shall be active low, ie they are high by default, and changed to low when an interrupt i...
Defines all API for all external devices supported by FastArduino.