Loading...
Searching...
No Matches

PCF857X device initialization parameters. More...

Detailed Description

PCF857X device initialization parameters.

Definition at line 370 of file pcf857x.h.

#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).
 

Field Documentation

◆ addr

uint16_t pcf857x_params_t::addr

I2C slave address offset to the PCF7857X base address (default 0)

Definition at line 373 of file pcf857x.h.

◆ dev

i2c_t pcf857x_params_t::dev

I2C device (default I2C_DEV(0))

Definition at line 372 of file pcf857x.h.

◆ exp

pcf857x_exp_t pcf857x_params_t::exp

PCF857X expander variant used by the device (default depends on used pseudomodules.

Definition at line 375 of file pcf857x.h.

◆ int_pin

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.

Note
To use interrupts for expander inputs, this pin has to be defined.

Definition at line 379 of file pcf857x.h.


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