![]() |
iic
Vitis Drivers API Documentation
|
Shows the IIC self-test.
This file contains a example for using the IIC hardware device and XIic driver.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a sv 05/09/05 Initial release for TestApp integration. 2.00a sdm 09/22/09 Updated to use the HAL APIs, replaced call to XIic_Initialize API with XIic_LookupConfig and XIic_CfgInitialize. Minor changes made as per coding guidelines. 3.4 ms 01/23/17 Added xil_printf statement in main function to ensure that "Successfully ran" and "Failed" strings are available in all examples. This is a fix for CR-965028. 3.10 gm 07/09/23 Added SDT support. 3.15 vlt 12/12/25 Update Doxygen comments to include SDT flow details. 3.16 tb 09/22/26 Align Doxygen comments with AMD documentation standards
Macros | |
| #define | XIIC_BASEADDRESS XPAR_XIIC_0_BASEADDR |
| IIC base address. More... | |
Functions | |
| int | IicSelfTestExample (UINTPTR BaseAddress) |
| Runs a selftest on the IIC device and XIic driver as an example. More... | |
| int | main (void) |
| Runs the example. More... | |
Variables | |
| XIic | Iic |
| Declares the example globals. More... | |
| #define XIIC_BASEADDRESS XPAR_XIIC_0_BASEADDR |
IIC base address.
Referenced by main().
| int IicSelfTestExample | ( | UINTPTR | BaseAddress | ) |
Runs a selftest on the IIC device and XIic driver as an example.
This function does a selftest on the IIC device and XIic driver as an example.
| [in] | BaseAddress | The base address of the device. |
References XIic_Config::BaseAddress, XIic_CfgInitialize(), XIic_LookupConfig(), and XIic_SelfTest().
Referenced by main().
| int main | ( | void | ) |
Runs the example.
Main function to call the example. This function is not included if the example is generated from the TestAppGen test tool.
References IicSelfTestExample(), and XIIC_BASEADDRESS.
| XIic Iic |
Declares the example globals.
The following are declared globally so they are zeroed and so they are easily accessible from a debugger.