![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <mcp230xx.h>
Data Fields | |
| GPIO_DEVICE | gpio |
| I2C_DEVICE * | i2c |
| The I2C device this GPIO is connected to. | |
| uint16_t | address |
| The I2C address of the device. | |
| uint32_t | chip |
| The chip type (eg MCP230XX_CHIP_MCP23008). | |
| uint32_t | size |
| Size of an I2C read/write for the device. | |
| uint8_t | gpioreg |
| GPIO port register for the device. | |
| uint8_t | gppureg |
| GPPU pull up resistor register for the device. | |
| uint8_t | iodirreg |
| IODIR I/O direction register for the device. | |
| uint8_t | gpiovalues [MCP230XX_I2C_MAX_SIZE] |
| Buffer for GPIO port values (Output only). | |
| uint8_t | gppuvalues [MCP230XX_I2C_MAX_SIZE] |
| Buffer for GPPU pull up values. | |
| uint8_t | iodirvalues [MCP230XX_I2C_MAX_SIZE] |
| Buffer for IODIR I/O direction values. | |
| GPIO_DEVICE gpio |
| I2C_DEVICE* i2c |
The I2C device this GPIO is connected to.
| uint16_t address |
The I2C address of the device.
| uint32_t chip |
The chip type (eg MCP230XX_CHIP_MCP23008).
| uint32_t size |
Size of an I2C read/write for the device.
| uint8_t gpioreg |
GPIO port register for the device.
| uint8_t gppureg |
GPPU pull up resistor register for the device.
| uint8_t iodirreg |
IODIR I/O direction register for the device.
| uint8_t gpiovalues[MCP230XX_I2C_MAX_SIZE] |
Buffer for GPIO port values (Output only).
| uint8_t gppuvalues[MCP230XX_I2C_MAX_SIZE] |
Buffer for GPPU pull up values.
| uint8_t iodirvalues[MCP230XX_I2C_MAX_SIZE] |
Buffer for IODIR I/O direction values.