cresample: cresample_conversion_example.c File Reference

| cresample Xilinx SDK Drivers API Documentation

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

Macros | Functions | Variables
cresample_conversion_example.c File Reference

## Overview

This file contains an example how CRESAMPLE type conversions will be done on the device.

Note

None

MODIFICATION HISTORY:

    Ver   Who    Date     Changes

    4.0   adk    03/12/14 First release.

## Macros
#define | CRESAMPLE_DEVICE_ID XPAR_CRESAMPLE_0_DEVICE_ID
| CRESAMPLE Device ID. More...

## Functions
int | CresampleTypeConversion (u16 DeviceId)
| This function is to select the type of conversion from menu based on the selection conversion will take place. More...
int | main (void)
| Main function to call the example. More...

## Variables
XCresample | Cresample
| Instance of the Cresample core. More...

## Macro Definition Documentation

#define CRESAMPLE_DEVICE_ID XPAR_CRESAMPLE_0_DEVICE_ID

CRESAMPLE Device ID.

Referenced by main().

## Function Documentation

int CresampleTypeConversion | ( | u16 | DeviceId | ) |

This function is to select the type of conversion from menu based on the selection conversion will take place.

Parameters

  Cresample | is a pointer to the XCresample instance to be worked on.

Returns
  None.

Note
  None.

References XCresample_Config::BaseAddress, XCresample::Config, XHorizontal_Coeffs::HCoeff, XCresample_Config::NumHTaps, XCresample_Config::NumVTaps, XVertical_Coeffs::VCoeff, XCresample_CfgInitialize(), XCresample_Clear_HCoef_Values(), XCresample_Clear_VCoef_Values(), XCresample_LookupConfig(), XCresample_SetHCoefs(), and XCresample_SetVCoefs().

Referenced by main().

int main | ( | void |  | ) |

Main function to call the example.

Returns
  - XST_SUCCESS if successful.
  - XST_FAILURE if failed.

Note
  None.

References CRESAMPLE_DEVICE_ID, and CresampleTypeConversion().

## Variable Documentation

XCresample Cresample

Instance of the Cresample core.