iic
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
xiic_i.h File Reference

Overview

Defines IIC internal driver data and macros.

This header file contains internal identifiers, which are those shared between XIic components. The identifiers in this file are not intended for use external to the driver.

MODIFICATION HISTORY:
Ver   Who  Date     Changes


1.01a rfp 10/19/01 release 1.01c ecm 12/05/02 new rev 1.13a wgr 03/22/07 Converted to new coding style. 2.00a sdm 10/22/09 Converted all register accesses to 32 bit access. Removed the macro XIIC_CLEAR_STATS, user has to use the the XIic_ClearStats API in its place. Removed the macro XIic_mEnterCriticalRegion, XIic_IntrGlobalDisable should be used in its place. Removed the macro XIic_mExitCriticalRegion, XIic_IntrGlobalEnable should be used in its place. Removed the _m prefix from all the macros XIic_mSend10BitAddrByte1 is now XIic_Send10BitAddrByte1 XIic_mSend10BitAddrByte2 is now XIic_Send10BitAddrByte2 XIic_mSend7BitAddr is now XIic_Send7BitAddr XIic_mDisableIntr is now XIic_DisableIntr XIic_mEnableIntr is now XIic_EnableIntr XIic_mClearIntr is now XIic_ClearIntr XIic_mClearEnableIntr is now XIic_ClearEnableIntr XIic_mFlushRxFifo is now XIic_FlushRxFifo XIic_mFlushTxFifo is now XIic_FlushTxFifo XIic_mReadRecvByte is now XIic_ReadRecvByte XIic_mWriteSendByte is now XIic_WriteSendByte XIic_mSetControlRegister is now XIic_SetControlRegister 2.07a adk 18/04/13 Updated the code to avoid unused variable warnings when compiling with the -Wextra -Wall flags. Changes done in files xiic.c and xiic_i.h. CR:705001 3.16 tb 09/22/26 Align Doxygen comments with AMD documentation standards

 
#include "xil_types.h"
#include "xil_assert.h"
#include "xstatus.h"
#include "xiic.h"

Macros

#define XIic_Send10BitAddrByte1(SlaveAddress, Operation)
 Sends the first byte of a 10-bit address for reads and writes. More...
 
#define XIic_Send10BitAddrByte2(SlaveAddress)
 Sends the second byte of a 10-bit address for reads and writes. More...
 
#define XIic_Send7BitAddr(SlaveAddress, Operation)
 Sends a 7-bit address for reads and writes. More...
 
#define XIic_DisableIntr(BaseAddress, InterruptMask)
 Disables the specified interrupts in the Interrupt Enable register. More...
 
#define XIic_EnableIntr(BaseAddress, InterruptMask)
 Enables the specified interrupts in the Interrupt Enable register. More...
 
#define XIic_ClearIntr(BaseAddress, InterruptMask)
 Clears the specified interrupt in the Interrupt Status register. More...
 
#define XIic_ClearEnableIntr(BaseAddress, InterruptMask)
 Clears and enables the specified interrupt. More...
 
#define XIic_FlushRxFifo(InstancePtr)
 Flushes the receive FIFO, discarding all bytes in it. More...
 
#define XIic_FlushTxFifo(InstancePtr)
 Flushes the transmit FIFO, discarding all bytes in it. More...
 
#define XIic_ReadRecvByte(InstancePtr)
 Reads the next available received byte from the receive FIFO. More...
 
#define XIic_WriteSendByte(InstancePtr)
 Writes the next byte to be sent to the transmit FIFO. More...
 
#define XIic_SetControlRegister(InstancePtr, ControlRegister, ByteCount)
 Sets up the control register for a master receive operation. More...
 

Functions

void XIic_TransmitFifoFill (XIic *InstancePtr, int Role)
 Fills the FIFO using the occupancy register to find available space. More...
 

Variables

XIic_Config XIic_ConfigTable []
 Holds the IIC configuration table. More...