Struct containing the peripheral configuration. More...

Detailed Description

Struct containing the peripheral configuration.

Definition at line 464 of file mcp23x17.h.

#include <mcp23x17.h>

Data Fields

uint8_t addr
 MCP2317 device address. More...
 
gpio_t int_pin
 GPIO pin used for combined INTA/INTB signal. More...
 
gpio_t reset_pin
 GPIO pin used for RESET signal.
 
mcp23x17_if_params_t if_params
 specific I2C/SPI interface parameters
 

Field Documentation

◆ addr

uint8_t mcp23x17_params_t::addr

MCP2317 device address.

The MCP2317 device address is the address configured via the hardware address pins A0 ... A2 of the MCP23x17 device. It is in the range from 0 to 7. The address is used internally by the driver as an offset to the base address MCP23X17_BASE_ADDR to derive the complete device address.

Note
The driver uses hardware addressing with MCP23x17 pins A0 ... A2 also for MCP23x17 SPI devices. 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 479 of file mcp23x17.h.

◆ int_pin

gpio_t mcp23x17_params_t::int_pin

GPIO pin used for combined INTA/INTB signal.

Each device must use its own GPIO pin for its combined INTA/INTB signal.

Definition at line 480 of file mcp23x17.h.


The documentation for this struct was generated from the following file: