![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
I2CSlave Parameters. More...
#include <I2CSlave.h>
Data Fields | |
I2CSlave_TransferMode | transferMode |
I2CSlave_CallbackFxn | transferCallbackFxn |
uint_fast16_t | slaveAddress |
uintptr_t | custom |
I2CSlave Parameters.
I2CSlave parameters are used to with the I2CSlave_open() call. Default values for these parameters are set using I2CSlave_Params_init().
If I2CSlave_TransferMode is set to I2CSLAVE_MODE_BLOCKING then I2CSlave_read or I2CSlave_write function calls will block thread execution until the transaction has completed.
If I2CSlave_TransferMode is set to I2CSLAVE_MODE_CALLBACK then I2CSlave read/write will not block thread execution and it will call the function specified by transferCallbackFxn. (regardless of error state).
I2CSlave_TransferMode I2CSlave_Params::transferMode |
< Blocking or Callback mode Callback function pointer
I2CSlave_CallbackFxn I2CSlave_Params::transferCallbackFxn |
Address associated with current I2CSlave device
uint_fast16_t I2CSlave_Params::slaveAddress |
Custom argument used by driver implementation
uintptr_t I2CSlave_Params::custom |