I2CSlave Parameters. More...
#include <I2CSlave.h>
Data Fields | |
I2CSlave_TransferMode | transferMode |
I2CSlave_CallbackFxn | transferCallbackFxn |
void * | 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 |
Custom argument used by driver implementation
void* I2CSlave_Params_::custom |