![]() |
i3c
Vitis Drivers API Documentation
|
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... | |
| 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.
| DeviceId | is the Device ID of the I3c Device and is the XPAR_<I3C_instance>_DEVICE_ID value from xparameters.h |
< 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.
References I3cMasterPolledExample().