PCF857X device initialization parameters. More...
#include <pcf857x.h>
Data Fields | |
i2c_t | dev |
I2C device (default I2C_DEV(0)) | |
uint16_t | addr |
I2C slave address offset to the PCF7857X base address (default 0) | |
pcf857x_exp_t | exp |
PCF857X expander variant used by the device (default depends on used pseudomodules. | |
gpio_t | int_pin |
MCU GPIO pin or GPIO_UNDEF if not used (default). | |
uint16_t pcf857x_params_t::addr |
i2c_t pcf857x_params_t::dev |
I2C device (default I2C_DEV(0))
pcf857x_exp_t pcf857x_params_t::exp |
gpio_t pcf857x_params_t::int_pin |
MCU GPIO pin or GPIO_UNDEF if not used (default).
Using interrupt pin has the advantage that inputs have to be read from expander only if any input value changes.