23 #ifndef _DEV_I2C_SWITCH_NXP_PCA9548A_H 24 #define _DEV_I2C_SWITCH_NXP_PCA9548A_H 42 int i2c_dev_register_switch_nxp_pca9548a(
48 #define SWITCH_NXP_PCA9548A_GET_CONTROL (I2C_DEV_IO_CONTROL + 0) 50 #define SWITCH_NXP_PCA9548A_SET_CONTROL (I2C_DEV_IO_CONTROL + 1) 52 static inline int switch_nxp_pca9548a_get_control(
int fd, uint8_t *val)
54 return ioctl(fd, SWITCH_NXP_PCA9548A_GET_CONTROL, val);
57 static inline int switch_nxp_pca9548a_set_control(
int fd, uint8_t val)
59 return ioctl(fd, SWITCH_NXP_PCA9548A_SET_CONTROL, (
void *)(uintptr_t) val);
Inter-Integrated Circuit (I2C) Driver API.