![]() |
EVE 1.0
|
Driver for I2C in nRF52 uC. More...
Go to the source code of this file.
Data Structures | |
struct | i2c_state_t |
struct | i2c_t |
Typedefs | |
typedef void(* | i2c_completion_callback_t) (const struct i2c_t *I2c, uint8_t ErrorMask, void *Data) |
Functions | |
Functions called from application programs | |
void | I2cMasterInit (const struct i2c_t *I2cMaster) |
Name: I2cMasterInit Initialize the driver. Function must be called before driver use. More... | |
void | I2cBusReset (const struct i2c_t *I2cMaster) |
Name: I2cBusReset Reset the bus (clock through a bus hung) More... | |
bool | I2cMasterAsync (const struct i2c_t *I2cMaster, uint8_t SlaveAddress, const void *SrcBuffer, uint8_t SrcCount, void *DstBuffer, uint8_t DstCount, i2c_completion_callback_t Callback, void *CallbackData) |
Name: I2cMasterAsync Setup the microcontroller to I2C master based on the i2c_t structure (slave not supported). Then the driver does: More... | |
void | I2cMasterSchedule (const struct i2c_t *I2cMaster, struct work_t *Work) |
Name: I2cMasterSchedule Schedule work when I2C bus becomes available. In case the bus is already free, the work is scheduled immediately. More... | |
bool | I2cMasterAsyncWait (const struct i2c_t *I2cMaster, uint8_t SlaveAddress, const void *SrcBuffer, uint8_t SrcCount, void *DstBuffer, uint8_t DstCount, i2c_completion_callback_t Callback, void *CallbackData, struct work_t *Work) |
Name: I2cMasterAsyncWait Setup the microcontroller to I2C master based on the i2c_t structure (slave not supported). Then the driver does: More... | |
bool | I2cMaster (const struct i2c_t *I2cMaster, uint8_t SlaveAddress, const void *SrcBuffer, uint16_t SrcCount, void *DstBuffer, uint16_t DstCount) |
Name: I2cMaster Setup the microcontroller to I2C master based on the i2c_t structure (slave not supported). Then the driver does: More... | |
void | I2cMasterInterruptHandler (const struct i2c_t *I2cMaster) |
Name: I2cInterruptHandler I2C master interrupt handler Called from board.c at hardware interrupt context. More... | |
Driver for I2C in nRF52 uC.
Definition in file i2c-master.h.