mcp23x17: Driver for I2C/SPI 16 bit GPIO expanders MCP23017/MCP23S17

struct mcp23x17_t
#include <mcp23x17.h>

Public Members

spi_device_interface_config_t spi_cfg
spi_device_handle_t spi_dev
uint8_t addr
bool use_software_cs

Use software CS control instead of hardware.

Whether to use a software Chip Select (CS) line instead of the hardware one. This is useful when multiple MCP23S17 chips are sharing the same CS line on the SPI bus.

gpio_port_t cs_pin

GPIO pin number for CS.