![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
I2C Parameters. More...
#include <I2C.h>
Data Fields | |
I2C_TransferMode | transferMode |
I2C_CallbackFxn | transferCallbackFxn |
I2C_BitRate | bitRate |
uintptr_t | custom |
I2C Parameters.
I2C parameters are used with the I2C_open() call. Default values for these parameters are set using I2C_Params_init().
If I2C_TransferMode is set to I2C_MODE_BLOCKING then I2C_transfer function calls will block thread execution until the transaction has completed.
If I2C_TransferMode is set to I2C_MODE_CALLBACK then I2C_transfer will not block thread execution and it will call the function specified by transferCallbackFxn. Sequential calls to I2C_transfer in I2C_MODE_CALLBACK mode will put the designated transaction onto an internal queue that automatically starts queued transactions after the previous transaction has completed. This queuing occurs regardless of error state.
I2C_BitRate specifies the I2C bus rate used for I2C communications.
I2C_TransferMode I2C_Params::transferMode |
Blocking or Callback mode
I2C_CallbackFxn I2C_Params::transferCallbackFxn |
Callback function pointer
I2C_BitRate I2C_Params::bitRate |
I2C bus bit rate
uintptr_t I2C_Params::custom |
Custom argument used by driver implementation