Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_PCF857XGPIO Struct Reference

#include <pcf857x.h>

Data Fields

GPIO_DEVICE gpio
I2C_DEVICEi2c
 The I2C device this GPIO is connected to.
uint16_t address
 The I2C address of the device.
uint32_t chip
 The chip type (eg PCF857X_CHIP_PCF8574).
uint32_t size
 Size of an I2C read/write for the device.
uint32_t rate
 Clock rate for this device.
uint8_t gpiovalues [PCF857X_I2C_MAX_SIZE]
 Buffer for GPIO port values (Output only).
uint8_t gppuvalues [PCF857X_I2C_MAX_SIZE]
 Buffer for GPPU pull up values.
uint8_t iodirvalues [PCF857X_I2C_MAX_SIZE]
 Buffer for IODIR I/O direction values.

Field Documentation

◆ gpio

◆ i2c

I2C_DEVICE* i2c

The I2C device this GPIO is connected to.

◆ address

uint16_t address

The I2C address of the device.

◆ chip

uint32_t chip

The chip type (eg PCF857X_CHIP_PCF8574).

◆ size

uint32_t size

Size of an I2C read/write for the device.

◆ rate

uint32_t rate

Clock rate for this device.

◆ gpiovalues

uint8_t gpiovalues[PCF857X_I2C_MAX_SIZE]

Buffer for GPIO port values (Output only).

◆ gppuvalues

uint8_t gppuvalues[PCF857X_I2C_MAX_SIZE]

Buffer for GPPU pull up values.

◆ iodirvalues

uint8_t iodirvalues[PCF857X_I2C_MAX_SIZE]

Buffer for IODIR I/O direction values.


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