BeRTOS
|
PCF8574 i2c port expander driver. More...
Go to the source code of this file.
Data Structures | |
struct | Pcf8574 |
Context for accessing a PCF8574. More... | |
Defines | |
#define | PCF8574ID 0x40 |
I2C address. | |
Functions | |
int | pcf8574_get_2 (I2c *i2c, Pcf8574 *pcf) |
Read PCF8574 pcf bit status. | |
bool | pcf8574_put_3 (I2c *i2c, Pcf8574 *pcf, uint8_t data) |
Write to PCF8574 pcf port data. | |
bool | pcf8574_init_3 (I2c *i2c, Pcf8574 *pcf, pcf8574_addr addr) |
Init a PCF8574 on the bus with addr addr. |
PCF8574 i2c port expander driver.
Definition in file pcf8574.h.
int pcf8574_get_2 | ( | I2c * | i2c, |
Pcf8574 * | pcf | ||
) |
bool pcf8574_init_3 | ( | I2c * | i2c, |
Pcf8574 * | pcf, | ||
pcf8574_addr | addr | ||
) |