iic
Xilinx SDK Drivers API Documentation
Data Structures | Typedefs | Functions
xiic.h File Reference

Data Structures

struct  XIic_Config
 
struct  XIicStats
 
struct  XIic
 

Macros

Configuration options

The following options may be specified or retrieved for the device and enable/disable additional features of the IIC bus.

Each of the options are bit fields such that more than one may be specified.

#define XII_GENERAL_CALL_OPTION   0x00000001
 
Status events

The following status events occur during IIC bus processing and are passed to the status callback.

Each event is only valid during the appropriate processing of the IIC bus. Each of these events are bit fields such that more than one may be specified.

Typedefs

typedef void(* XIic_Handler) (void *CallBackRef, int ByteCount)
 
typedef void(* XIic_StatusHandler) (void *CallBackRef, int StatusEvent)
 

Functions

int XIic_Initialize (XIic *InstancePtr, u16 DeviceId)
 
XIic_ConfigXIic_LookupConfig (u16 DeviceId)
 
int XIic_CfgInitialize (XIic *InstancePtr, XIic_Config *Config, u32 EffectiveAddr)
 
int XIic_Start (XIic *InstancePtr)
 
int XIic_Stop (XIic *InstancePtr)
 
void XIic_Reset (XIic *InstancePtr)
 
int XIic_SetAddress (XIic *InstancePtr, int AddressType, int Address)
 
u16 XIic_GetAddress (XIic *InstancePtr, int AddressType)
 
int XIic_SetGpOutput (XIic *InstancePtr, u8 OutputValue)
 
int XIic_GetGpOutput (XIic *InstancePtr, u8 *OutputValuePtr)
 
u32 XIic_IsSlave (XIic *InstancePtr)
 
void XIic_SetRecvHandler (XIic *InstancePtr, void *CallBackRef, XIic_Handler FuncPtr)
 
void XIic_SetSendHandler (XIic *InstancePtr, void *CallBackRef, XIic_Handler FuncPtr)
 
void XIic_SetStatusHandler (XIic *InstancePtr, void *CallBackRef, XIic_StatusHandler FuncPtr)
 
void XIic_InterruptHandler (void *InstancePtr)
 
int XIic_MasterRecv (XIic *InstancePtr, u8 *RxMsgPtr, int ByteCount)
 
int XIic_MasterSend (XIic *InstancePtr, u8 *TxMsgPtr, int ByteCount)
 
int XIic_DynMasterRecv (XIic *InstancePtr, u8 *RxMsgPtr, u8 ByteCount)
 
int XIic_DynMasterSend (XIic *InstancePtr, u8 *TxMsgPtr, u8 ByteCount)
 
void XIic_SlaveInclude ()
 
int XIic_SlaveRecv (XIic *InstancePtr, u8 *RxMsgPtr, int ByteCount)
 
int XIic_SlaveSend (XIic *InstancePtr, u8 *TxMsgPtr, int ByteCount)
 
void XIic_GetStats (XIic *InstancePtr, XIicStats *StatsPtr)
 
void XIic_ClearStats (XIic *InstancePtr)
 
int XIic_SelfTest (XIic *InstancePtr)
 
void XIic_SetOptions (XIic *InstancePtr, u32 NewOptions)
 
u32 XIic_GetOptions (XIic *InstancePtr)
 
void XIic_MultiMasterInclude ()