openMMC
Open Source Modular MMC for AMCs
|
Functions | |
void | i2c_init (void) |
Initialize peripheral I2C buses. | |
bool | i2c_take_by_busid (uint8_t bus_id, uint8_t *i2c_interface, TickType_t timeout) |
bool | i2c_take_by_chipid (uint8_t chip_id, uint8_t *i2c_address, uint8_t *i2c_interface, uint32_t timeout) |
void | i2c_give (uint8_t i2c_interface) |
Release the previously gained I2C bus. | |
void i2c_give | ( | uint8_t | i2c_interface | ) |
Release the previously gained I2C bus.
i2c_interface | Physical I2C bus ID |
void i2c_init | ( | void | ) |
Initialize peripheral I2C buses.
This function initializes all buses listed on the i2c_mux table, configuring the controller hardware and creating a binary semaphore for each.
bool i2c_take_by_busid | ( | uint8_t | bus_id, |
uint8_t * | i2c_interface, | ||
TickType_t | timeout ) |
bool i2c_take_by_chipid | ( | uint8_t | chip_id, |
uint8_t * | i2c_address, | ||
uint8_t * | i2c_interface, | ||
uint32_t | timeout ) |