avbuf: xavbuf_clk.c File Reference

| avbuf Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List

Functions
xavbuf_clk.c File Reference

## Overview

This file contains PLL configuring functions.

These Functions calculates and configures the PLL depending on desired frequency.

Note
  None.

    MODIFICATION HISTORY:

    Ver   Who  Date     Changes

    1.0   mh  06/24/17 Initial release.
    2.1   tu  12/29/17 LPD and FPD offsets adjusted

## Functions
int | XAVBuf_SetPixelClock (u64 FreqHz)
| This function calls API to calculate and configure PLL with desired frequency for Video. More...
int | XAVBuf_SetAudioClock (u64 FreqHz)
| This function calls API to calculate and configure PLL with desired frequency for Audio. More...

## Function Documentation

int XAVBuf_SetAudioClock | ( | u64 | FreqHz | ) |

This function calls API to calculate and configure PLL with desired frequency for Audio.

Parameters

  FreqHz | is the desired frequency in Hz.

Returns
  XST_SUCCESS if PLL is configured without an error. XST_FAILURE otherwise.

Note
  The Pll used is design specific.

References XAVBUF_AUDIO_REF_CTRL, XAVBUF_CLK_FPD_BASEADDR, XAVBuf_ReadReg, and XAVBUF_VPLL_SRC_SEL.

int XAVBuf_SetPixelClock | ( | u64 | FreqHz | ) |

This function calls API to calculate and configure PLL with desired frequency for Video.

Parameters

  FreqHz | is the desired frequency in Hz.

Returns
  XST_SUCCESS if PLL is configured without an error. XST_FAILURE otherwise.

Note
  The Pll used is design specific.

References XAVBUF_CLK_FPD_BASEADDR, XAVBuf_ReadReg, XAVBUF_VIDEO_REF_CTRL, and XAVBUF_VPLL_SRC_SEL.