49#define PCA9554_INPUT_REG 0
55#define PCA9554_OUTPUT_REG 1
61#define PCA9554_POLARITY_REG 2
67#define PCA9554_CFG_REG 3
uint8_t pca9554_write_port(uint8_t chip_id, uint8_t data)
Write all output pins.
Definition pca9554.c:109
uint8_t pca9554_read_pin(uint8_t chip_id, uint8_t pin, uint8_t *status)
Read a pin status.
Definition pca9554.c:96
uint8_t pca9554_get_port_pol(uint8_t chip_id, uint8_t *pol)
Read all pins polarity.
Definition pca9554.c:142
uint8_t pca9554_set_pin_pol(uint8_t chip_id, uint8_t pin, bool pol)
Set pin polarity.
Definition pca9554.c:131
uint8_t pca9554_get_pin_dir(uint8_t chip_id, uint8_t pin, uint8_t *dir)
Read pin direction.
Definition pca9554.c:181
uint8_t pca9554_set_pin_dir(uint8_t chip_id, uint8_t pin, bool dir)
Set pin direction.
Definition pca9554.c:165
uint8_t pca9554_write_pin(uint8_t chip_id, uint8_t pin, bool data)
Write a output pin.
Definition pca9554.c:114
uint8_t pca9554_set_port_dir(uint8_t chip_id, uint8_t dir)
Set all pins direction.
Definition pca9554.c:160
uint8_t pca9554_set_port_pol(uint8_t chip_id, uint8_t pol)
Set all pins polarity.
Definition pca9554.c:126
uint8_t pca9554_read_port(uint8_t chip_id, uint8_t *readout)
Read all pins status.
Definition pca9554.c:91
uint8_t pca9554_get_port_dir(uint8_t chip_id, uint8_t *dir)
Read all pins direction.
Definition pca9554.c:176
uint8_t pca9554_get_pin_pol(uint8_t chip_id, uint8_t pin, uint8_t *pol)
Read pin polarity.
Definition pca9554.c:147