Default configuration for Microchip MCP23x17 I/O expanders. More...
Default configuration for Microchip MCP23x17 I/O expanders.
Definition in file mcp23x17_params.h.
Go to the source code of this file.
Variables | |
static const mcp23x17_params_t | mcp23x17_params [] |
Allocation of MCP23x17 configuration. More... | |
static const mcp23x17_saul_gpio_params_t | mcp23x17_saul_gpio_params [] |
Additional meta information to keep in the SAUL registry. More... | |
Set default hardware configuration parameters | |
#define | MCP23X17_PARAM_SPI_ADDR (0) |
Default hardware address, if the SPI interface is used. More... | |
#define | MCP23X17_PARAM_SPI_DEV (SPI_DEV(0)) |
Default SPI device, if the SPI interface is used. | |
#define | MCP23X17_PARAM_SPI_CLK (SPI_CLK_10MHZ) |
Default SPI clock frequency, if the SPI interface is used. | |
#define | MCP23X17_PARAM_SPI_CS (GPIO_PIN(0, 0)) |
Default SPI CS signal, if the SPI interface is used. | |
#define | MCP23X17_PARAM_SPI_INT (GPIO_PIN(0, 1)) |
Default MCU pin for INTA and INTB signal of the default SPI device. | |
#define | MCP23X17_PARAM_I2C_ADDR (0) |
Default hardware address, if the I2C interface is used. | |
#define | MCP23X17_PARAM_I2C_DEV (I2C_DEV(0)) |
Default I2C device, if the I2C interface is used. | |
#define | MCP23X17_PARAM_I2C_INT (GPIO_PIN(0, 2)) |
Default MCU pin for INTA and INTB signal of the default I2C device. | |
#define | MCP23X17_PARAM_RESET_PIN (GPIO_UNDEF) |
MCU pin for RESET signal is undefinded by default. | |
#define | MCP23X17_SPI_PARAMS |
Default device parameters, if SPI interface is used. More... | |
#define | MCP23X17_I2C_PARAMS |
Default device parameters, if I2C interface is used. More... | |
#define | MCP23X17_SAUL_GPIO_PARAMS |
Example for mapping expander pins to SAUL. More... | |
#define MCP23X17_I2C_PARAMS |
Default device parameters, if I2C interface is used.
Definition at line 109 of file mcp23x17_params.h.
#define MCP23X17_PARAM_SPI_ADDR (0) |
Default hardware address, if the SPI interface is used.
The use of hardware addressing also for SPI devices allows the use of up to eight SPI devices with the same CS signal.
Definition at line 42 of file mcp23x17_params.h.
#define MCP23X17_SAUL_GPIO_PARAMS |
Example for mapping expander pins to SAUL.
Definition at line 123 of file mcp23x17_params.h.
#define MCP23X17_SPI_PARAMS |
Default device parameters, if SPI interface is used.
Definition at line 94 of file mcp23x17_params.h.
|
static |
Allocation of MCP23x17 configuration.
Definition at line 148 of file mcp23x17_params.h.
|
static |
Additional meta information to keep in the SAUL registry.
Definition at line 162 of file mcp23x17_params.h.