iicps
Vitis Drivers API Documentation
XIicPs Struct Reference

The XIicPs driver instance data. More...

Data Fields

XIicPs_Config Config
 Configuration structure. More...
 
u32 IsReady
 Device is initialized and ready. More...
 
u32 Options
 Options set in the device. More...
 
u8 * SendBufferPtr
 Pointer to send buffer. More...
 
u8 * RecvBufferPtr
 Pointer to recv buffer. More...
 
s32 SendByteCount
 Number of bytes still expected to send. More...
 
s32 RecvByteCount
 Number of bytes still expected to receive. More...
 
s32 CurrByteCount
 No. More...
 
s32 UpdateTxSize
 If tx size register has to be updated. More...
 
s32 IsSend
 Whether master is sending or receiving. More...
 
s32 IsRepeatedStart
 Indicates if user set repeated start. More...
 
s32 Is10BitAddr
 Indicates if user set 10 bit address. More...
 
XIicPs_IntrHandler StatusHandler
 Event handler function. More...
 
void * CallBackRef
 Callback reference for event handler. More...
 

Detailed Description

The XIicPs driver instance data.

The user is required to allocate a variable of this type for each IIC device in the system. A pointer to a variable of this type is then passed to the driver API functions.

Field Documentation

void* XIicPs::CallBackRef
s32 XIicPs::CurrByteCount

No.

of bytes expected in current transfer

Referenced by XIicPs_MasterIntrRead(), XIicPs_MasterRead(), and XIicPs_MasterRecv().

s32 XIicPs::Is10BitAddr

Indicates if user set 10 bit address.

Referenced by XIicPs_ClearOptions(), XIicPs_EnableSlaveMonitor(), XIicPs_SetOptions(), and XIicPs_SetupSlave().

s32 XIicPs::IsSend
u32 XIicPs::Options

Options set in the device.

Referenced by XIicPs_CfgInitialize(), XIicPs_ClearOptions(), and XIicPs_SetOptions().

s32 XIicPs::UpdateTxSize