| iicps Vitis Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions
xiicps_selftest_example.c File Reference

## Overview

This example runs on zynqmp / versal evaluation boards using the IIC hardware device and XIicPs driver.

     MODIFICATION HISTORY:

    Ver      Who Date       Changes

    1.00a sdm 05/30/11      First release
    3.13  rna 02/05/21   Changed XIicPs global variable name
    3.18  gm  07/14/23   Added SDT support.

## Functions
int | IicPsSelfTestExample (u16 DeviceId)
| This function does a minimal test on the Iic device and driver as a design example. More...
int | main (void)
| Main function to call the Self Test example. More...

## Function Documentation

int IicPsSelfTestExample | ( | u16 | DeviceId | ) |

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

The purpose of this function is to illustrate how to use the XIicPs component.

Parameters

  DeviceId | is the Device ID of the IicPs Device and is the XPAR_<IICPS_instance>_DEVICE_ID value from xparameters.h

Returns
  XST_SUCCESS if successful, otherwise XST_FAILURE.

Note
  None.

References XIicPs_Config::BaseAddress, XIicPs_CfgInitialize(), XIicPs_LookupConfig(), and XIicPs_SelfTest().

Referenced by main().

int main | ( | void |  | ) |

Main function to call the Self Test example.

Returns
  XST_SUCCESS if successful, XST_FAILURE if unsuccessful.

Note
  None.

References IicPsSelfTestExample().