iicps
Xilinx SDK Drivers API Documentation
xiicps_selftest_example.c File Reference

Overview

This file contains a example for using the IIC hardware device and XIicPs driver.

 MODIFICATION HISTORY:
Ver      Who Date       Changes

1.00a sdm 05/30/11 First release
 

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

◆ IicPsSelfTestExample()

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
DeviceIdis 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().

◆ main()

int main ( void  )

Main function to call the Self Test example.

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

References IicPsSelfTestExample().