Holder of common helper functions for the I2C driver.
============================================================================
Go to the source code of this file.
Functions | |
void | I2CSupport_masterFinish (I2C_HWAttrs const *hwAttrs) |
Function to send a finish command to the master module. More... | |
void | I2CSupport_powerSetConstraint (void) |
Function to set power constraint. More... | |
void | I2CSupport_powerRelConstraint (void) |
Function to release power constraint. More... | |
int_fast16_t | I2CSupport_primeTransfer (I2C_Handle handle, I2C_Transaction *transaction) |
Function to initialize transfers. More... | |
void I2CSupport_masterFinish | ( | I2C_HWAttrs const * | hwAttrs | ) |
Function to send a finish command to the master module.
[in] | hwAttrs | A pointer to an I2C_HWAttrs structure |
void I2CSupport_powerSetConstraint | ( | void | ) |
Function to set power constraint.
void I2CSupport_powerRelConstraint | ( | void | ) |
Function to release power constraint.
int_fast16_t I2CSupport_primeTransfer | ( | I2C_Handle | handle, |
I2C_Transaction * | transaction | ||
) |
Function to initialize transfers.
[in] | handle | An I2C_Handle returned from I2C_open() |
[in] | transaction | A pointer to an I2C_Transaction |
I2C_STATUS_SUCCESS | The transfer was successful |
I2C_STATUS_INCOMPLETE | I2C transaction is in progress or returned without completing |
I2C_STATUS_BUS_BUSY | I2C bus already in use by another I2C Master |