i3c
Vitis Drivers API Documentation
xi3c_polled_example.c File Reference

Overview

Design example to use the I3C device as master in polled mode.

It makes the slave static address as their dynamic address. It sends and receives data from slave.

 MODIFICATION HISTORY:
Ver   Who Date     Changes


1.00 gm 02/9/24 First release

 

Functions

int I3cMasterPolledExample (u16 DeviceId)
 This function does a minimal test on the I3c device and driver as a design example. More...
 
int main (void)
 Main function to call the polled example. More...
 

Function Documentation

int I3cMasterPolledExample ( u16  DeviceId)

This function does a minimal test on the I3c device and driver as a design example.

The purpose of this function is to illustrate how to use the XI3c driver.

This function sends data and expects to receive the same data through the I3C

This function uses polled driver mode of the I3C.

Parameters
DeviceIdis the Device ID of the I3c Device and is the XPAR_<I3C_instance>_DEVICE_ID value from xparameters.h
Returns
XST_SUCCESS if successful, otherwise XST_FAILURE.
Note

< Disable repeated start

< SDR mode

< Test data

References XI3c_Config::BaseAddress, XI3C_BusInit(), XI3c_CfgInitialize(), XI3c_LookupConfig(), XI3c_MasterRecvPolled(), XI3c_MasterSendPolled(), and XI3c_SendTransferCmd().

Referenced by main().

int main ( void  )

Main function to call the polled example.

Returns
XST_SUCCESS if successful, XST_FAILURE if unsuccessful.
Note
None.

References I3cMasterPolledExample().