Go to the source code of this file.
◆ PCF8574_GPIO_DESCRIPTION
| #define PCF8574_GPIO_DESCRIPTION "NXP PCF8574 8-bit I/O Expander" |
Description of PCF8574 device.
PCF857X specific constants
◆ PCF8574_GPIO_MIN_PIN
◆ PCF8574_GPIO_MAX_PIN
◆ PCF8574_GPIO_PIN_COUNT
| #define PCF8574_GPIO_PIN_COUNT 8 |
◆ PCF857X_GPIO_MAX_LEVEL
◆ PCF857X_GPIO_MAX_PULL
◆ PCF857X_GPIO_MIN_FUNCTION
◆ PCF857X_GPIO_MAX_FUNCTION
◆ PCF857X_CHIP_PCF8574
| #define PCF857X_CHIP_PCF8574 0 |
◆ PCF8574_I2C_RATE
| #define PCF8574_I2C_RATE 100000 |
Default I2C clock rate (Device supports 100KHz only).
PCF857X I2C constants
◆ PCF8574_I2C_SIZE
| #define PCF8574_I2C_SIZE 1 |
Number of bytes to read/write all pin values.
◆ PCF857X_I2C_MAX_SIZE
| #define PCF857X_I2C_MAX_SIZE 2 |
Maximum number of bytes to read/write all pin values.
◆ PCF857XGPIO
Note: The PCF857X is a single register device and does not have any direction, pull or configuration registers PCF857X specific types
◆ pcf8574gpio_create()
Create, register and start a new PCF8574 GPIO device connected to the specified I2C device.
PCF857X Functions
- Parameters
-
| I2C | The I2C device this PCF8574 is connected to |
| Address | The I2C address for this PCF8574 |
- Returns
- Pointer to the new GPIO device or nil on failure
◆ pcf857xgpio_destroy()
Stop, deregister and destroy a PCF857X GPIO device created by this driver.
- Parameters
-
| GPIO | The GPIO device to destroy |
- Returns
- ERROR_SUCCESS if completed or another error code on failure