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

Overview

Implements IIC option and GPO helpers.

Contains options functions for the XIic component. This file is not required unless the functions in this file are called.

MODIFICATION HISTORY:
Ver   Who  Date     Changes


1.01b jhl 3/26/02 repartioned the driver 1.01c ecm 12/05/02 new rev 1.13a wgr 03/22/07 Converted to new coding style. 2.00a ktn 10/22/09 Converted all register accesses to 32 bit access. Updated to use the HAL APIs/macros. 3.15 vlt 12/04/25 Add XIic_SetClk API for dynamic clock configuration. 3.16 vn 07/30/26 Fix Doxygen warnings 3.16 tb 09/22/26 Align Doxygen comments with AMD documentation standards

#include "xiic.h"
#include "xiic_i.h"

Macros

#define XIIC_REG_VALUES_100KHZ   0
 Timing table index for 100 kHz. More...
 
#define XIIC_REG_VALUES_400KHZ   1
 Timing table index for 400 kHz. More...
 
#define XIIC_REG_VALUES_1MHZ   2
 Timing table index for 1 MHz. More...
 
#define XIIC_STANDARD_MODE   100000U
 Standard mode SCL rate in Hz. More...
 
#define XIIC_FAST_MODE   400000U
 Fast mode SCL rate in Hz. More...
 
#define XIIC_FAST_MODE_PLUS   1000000U
 Fast mode plus SCL rate in Hz. More...
 
#define XIIC_NANOSEC_TO_SEC_DIVISOR   1000000000U
 Number of nanoseconds in one second. More...
 

Functions

void XIic_SetOptions (XIic *InstancePtr, u32 NewOptions)
 Sets the options for the IIC device driver. More...
 
u32 XIic_GetOptions (XIic *InstancePtr)
 Gets the current options for the IIC device. More...
 
u32 XIic_SetClk (XIic *InstancePtr, u32 FsclHz)
 Sets the serial clock rate for the IIC device. More...