Skip to content

Struct SYN_IOExp

ClassList > SYN_IOExp

Generic I2C GPIO Expander Instance Context.

  • #include <syn_ioexp.h>

Public Attributes

Type Name
uint16_t dir_mask
SYN_SoftI2C i2c
uint8_t i2c_addr
uint8_t num_pins
uint16_t out_mask
uint16_t pullup_mask
SYN_IOExpType type

Public Attributes Documentation

variable dir_mask

uint16_t SYN_IOExp::dir_mask;

Direction mask (1 = input, 0 = output)


variable i2c

SYN_SoftI2C SYN_IOExp::i2c;

variable i2c_addr

uint8_t SYN_IOExp::i2c_addr;

variable num_pins

uint8_t SYN_IOExp::num_pins;

Total pins (8 or 16)


variable out_mask

uint16_t SYN_IOExp::out_mask;

Output state cache


variable pullup_mask

uint16_t SYN_IOExp::pullup_mask;

Pull-up resistor mask


variable type

SYN_IOExpType SYN_IOExp::type;


The documentation for this class was generated from the following file src/syntropic/drivers/syn_ioexp.h