openMMC
Open Source Modular MMC for AMCs
|
Functions | |
bool | i2c_set_mux_bus (uint8_t bus_id, i2c_mux_state_t *i2c_mux, int8_t new_state) |
Change I2C bus mux state. | |
uint8_t | i2c_get_mux_bus (uint8_t bus_id, i2c_mux_state_t *i2c_mux) |
Read I2C bus mux state. | |
Variables | |
i2c_mux_state_t | i2c_mux [I2C_MUX_CNT] |
i2c_bus_mapping_t | i2c_bus_map [I2C_BUS_CNT] |
i2c_chip_mapping_t | i2c_chip_map [I2C_CHIP_CNT] |
uint8_t i2c_get_mux_bus | ( | uint8_t | bus_id, |
i2c_mux_state_t * | i2c_mux ) |
Read I2C bus mux state.
bus_id | Target bus ID |
i2c_mux | Pointer to bus mux structure |
bool i2c_set_mux_bus | ( | uint8_t | bus_id, |
i2c_mux_state_t * | i2c_mux, | ||
int8_t | new_state ) |
Change I2C bus mux state.
bus_id | Target bus ID |
i2c_mux | Pointer to bus mux structure |
new_state | New bus mux state |
true | Bus was successfuly changed to the desired mux setting |
false | Bus could not be changed to the desired mux setting |
i2c_bus_mapping_t i2c_bus_map[I2C_BUS_CNT] |
i2c_chip_mapping_t i2c_chip_map[I2C_CHIP_CNT] |
i2c_mux_state_t i2c_mux[I2C_MUX_CNT] |