Data Fields
I2CSlave_Params_ Struct Reference

I2CSlave Parameters. More...

#include <I2CSlave.h>

Collaboration diagram for I2CSlave_Params_:
Collaboration graph
[legend]

Data Fields

I2CSlave_TransferMode transferMode
 
I2CSlave_CallbackFxn transferCallbackFxn
 
void * custom
 

Detailed Description

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).

See also
I2CSlave_Params_init()

Field Documentation

§ transferMode

I2CSlave_TransferMode I2CSlave_Params_::transferMode

Blocking or Callback mode

§ transferCallbackFxn

I2CSlave_CallbackFxn I2CSlave_Params_::transferCallbackFxn

Callback function pointer

§ custom

void* I2CSlave_Params_::custom

Custom argument used by driver implementation


The documentation for this struct was generated from the following file:
© Copyright 1995-2018, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale