36#ifndef _DEV_I2C_SWITCH_NXP_PCA9548A_H
37#define _DEV_I2C_SWITCH_NXP_PCA9548A_H
55int i2c_dev_register_switch_nxp_pca9548a(
61#define SWITCH_NXP_PCA9548A_GET_CONTROL (I2C_DEV_IO_CONTROL + 0)
63#define SWITCH_NXP_PCA9548A_SET_CONTROL (I2C_DEV_IO_CONTROL + 1)
65static inline int switch_nxp_pca9548a_get_control(
int fd, uint8_t *val)
67 return ioctl(fd, SWITCH_NXP_PCA9548A_GET_CONTROL, val);
70static inline int switch_nxp_pca9548a_set_control(
int fd, uint8_t val)
72 return ioctl(fd, SWITCH_NXP_PCA9548A_SET_CONTROL, (
void *)(uintptr_t) val);
Inter-Integrated Circuit (I2C) Driver API.