I2c_Hal_TargetInstanceType
Module: HAL (AM13E230X) API / I2C HAL API
I2C Target instance. More…
#include <I2c_Hal.h>
Public Attributes
Name |
|
|---|---|
HwRegsPtr |
|
void * |
UserArgsPtr |
CurrentState |
|
const uint8 * |
TxBufferPtr |
TxSizeInBytes |
|
TxRemainingSizeInBytes |
|
TxUnderflowNotify |
|
uint8 * |
RxBufferPtr |
RxSizeInBytes |
|
RxRemainingSizeInBytes |
|
RxOverflowNotify |
|
uint8_t |
TcntA |
Detailed Description
struct I2c_Hal_TargetInstanceType;
I2C Target instance.
This maintain state of the I2C instance in target mode. Application should not dereference and read/write fields in this structure.
Public Attributes Documentation
variable HwRegsPtr
DL_UNICOMM_Inst_Regs * HwRegsPtr;
Pointer to I2C HW registers.
variable UserArgsPtr
void * UserArgsPtr;
Pointer to custom user Argument.
variable CurrentState
I2c_Hal_StateType CurrentState;
Current state of I2C HAL.
variable TxBufferPtr
const uint8 * TxBufferPtr;
Holds pointer to the Transmit buffer.
variable TxSizeInBytes
uint32 TxSizeInBytes;
Size of data that needs to be Transfered.
variable TxRemainingSizeInBytes
uint32 TxRemainingSizeInBytes;
Holds the remaining bytes to be Transfered.
variable TxUnderflowNotify
boolean TxUnderflowNotify;
TX underflow notification enable.
Note: This is set to TRUE initially. When a callback occurs on TX underflow in target mode, the flag is set to FALSE. If buffer is updated in the callback, the transfer continues; otherwise 0x00 bytes are sent. The notification is re-enabled by calling I2c_Hal_TargetSubmitTxBuffer() for the next transfer.
variable RxBufferPtr
uint8 * RxBufferPtr;
Holds pointer to the Receive buffer.
variable RxSizeInBytes
uint32 RxSizeInBytes;
Size of data that needs to be Transfered.
variable RxRemainingSizeInBytes
uint32 RxRemainingSizeInBytes;
Holds the remaining bytes to be Transfered.
variable RxOverflowNotify
boolean RxOverflowNotify;
RX overflow notification enable.
Note: This is set to TRUE initially. When a callback occurs on RX overflow in target mode, the flag is set to FALSE. If buffer is updated in the callback, the transfer continues; otherwise received data is discarded. The notification is re-enabled by calling I2c_Hal_TargetSubmitRxBuffer() for the next transfer.
variable TcntA
uint8_t TcntA;
Timeout Count A value.