iic
Vitis Drivers API Documentation
xiic.c File Reference

Functions

int XIic_CfgInitialize (XIic *InstancePtr, XIic_Config *Config, UINTPTR EffectiveAddr)
 Initializes a specific XIic instance. More...
 
int XIic_Start (XIic *InstancePtr)
 This function starts the IIC device and driver by enabling the proper interrupts such that data may be sent and received on the IIC bus. More...
 
int XIic_Stop (XIic *InstancePtr)
 This function stops the IIC device and driver such that data is no longer sent or received on the IIC bus. More...
 
void XIic_Reset (XIic *InstancePtr)
 Resets the IIC device. More...
 
int XIic_SetAddress (XIic *InstancePtr, int AddressType, int Address)
 This function sets the bus addresses. More...
 
u16 XIic_GetAddress (XIic *InstancePtr, int AddressType)
 This function gets the addresses for the IIC device driver. More...
 
int XIic_SetGpOutput (XIic *InstancePtr, u8 OutputValue)
 This function sets the contents of the General Purpose Output register for the IIC device driver. More...
 
int XIic_GetGpOutput (XIic *InstancePtr, u8 *OutputValuePtr)
 This function gets the contents of the General Purpose Output register for the IIC device driver. More...
 
u32 XIic_IsSlave (XIic *InstancePtr)
 A function to determine if the device is currently addressed as a slave. More...
 
void XIic_SetRecvHandler (XIic *InstancePtr, void *CallBackRef, XIic_Handler FuncPtr)
 Sets the receive callback function, the receive handler, which the driver calls when it finishes receiving data. More...
 
void XIic_SetSendHandler (XIic *InstancePtr, void *CallBackRef, XIic_Handler FuncPtr)
 Sets the send callback function, the send handler, which the driver calls when it receives confirmation of sent data. More...
 
void XIic_SetStatusHandler (XIic *InstancePtr, void *CallBackRef, XIic_StatusHandler FuncPtr)
 Sets the status callback function, the status handler, which the driver calls when it encounters conditions which are not data related. More...