Containing methods to control the MCP23S08 SPI IO expander Based on https://github.com/julianschuler/MCP23S08/blob/master/MCP23S08.h.
More...
#include <stdint.h>
Go to the source code of this file.
|
|
#define | SELECT_MCP23S08 SPI_SELECT_IO_EXP |
| | Select the MCP23S08 IO expander by pulling the IO_EXP_CS pin low.
|
| |
|
#define | DESELECT_MCP23S08 SPI_DESELECT_IO_EXP |
| | Deselect the MCP23S08 IO expander by pulling the IO_EXP_CS pin high.
|
| |
|
#define | MCP23S08_IODIR 0x00 |
| |
|
#define | MCP23S08_IPOL 0x01 |
| |
|
#define | MCP23S08_GPINTEN 0x02 |
| |
|
#define | MCP23S08_DEFVAL 0x03 |
| |
|
#define | MCP23S08_INTCON 0x04 |
| |
|
#define | MCP23S08_IOCON 0x05 |
| |
|
#define | MCP23S08_GPPU 0x06 |
| |
|
#define | MCP23S08_INTF 0x07 |
| |
|
#define | MCP23S08_INTCAP 0x08 |
| |
|
#define | MCP23S08_GPIO 0x09 |
| |
|
#define | MCP23S08_OLAT 0x0A |
| |
Containing methods to control the MCP23S08 SPI IO expander Based on https://github.com/julianschuler/MCP23S08/blob/master/MCP23S08.h.
- Date
- 29.08.2024 18:54:39
- Author
- Markus Scheich
◆ MCP23S08_PinModes
Enumeration with all MCP23S08 pin modes.
| Enumerator |
|---|
| MCP23S08_PINMODE_OUTPUT | MCP23S08 pin is output.
|
| MCP23S08_PINMODE_INPUT | MCP23S08 pin is input.
|
| MCP23S08_PINMODE_INPUT_PULLUP | MCP23S08 pin is input with enabled pullup.
|