csi: xcsi_example_selftest.c File Reference

| csi Xilinx SDK Drivers API Documentation

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

Functions
xcsi_example_selftest.c File Reference

## Overview

This file contains an example using the XCsi driver to do self test on the device.

Note

None

MODIFICATION HISTORY:

    Ver     Who     Date    Changes

    1.1   ms  01/23/17 Modified 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.
          ms  04/05/17 Modified Comment lines in functions to
                       recognize it as documentation block for doxygen
                       generation of examples.

## Functions
u32 | CsiSelfTestExample (u32 DeviceId)
| This function checks if the Max Lane count from the generated file matches the value present in the protocol configuration register. More...
int | main ()
| The entry point for this example. More...

## Function Documentation

u32 CsiSelfTestExample | ( | u32 | DeviceId | ) |

This function checks if the Max Lane count from the generated file matches the value present in the protocol configuration register.

Parameters

  DeviceId | is the CSI Controller Device id.

Returns
  - XST_SUCCESS if Lane Count match

- XST_FAILURE if Lane Count don't match.

Note
  None.

References XCsi_Config::BaseAddr, XCsi_CfgInitialize(), XCsi_LookupConfig(), and XCsi_SelfTest().

Referenced by main().

int main | ( |  | ) |

The entry point for this example.

It invokes the example function, and reports the execution status.

Parameters

  None. |

Returns
  - XST_SUCCESS if example finishes successfully
  - XST_FAILURE if example fails.

Note
  None.

References CsiSelfTestExample().