karthick B / GR-PEACH_video

Fork of GR-PEACH_video by Renesas

Committer:
dkato
Date:
Fri Jun 26 02:17:53 2015 +0000
Revision:
0:853f5b7408a7
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dkato 0:853f5b7408a7 1 /*******************************************************************************
dkato 0:853f5b7408a7 2 * DISCLAIMER
dkato 0:853f5b7408a7 3 * This software is supplied by Renesas Electronics Corporation and is only
dkato 0:853f5b7408a7 4 * intended for use with Renesas products. No other uses are authorized. This
dkato 0:853f5b7408a7 5 * software is owned by Renesas Electronics Corporation and is protected under
dkato 0:853f5b7408a7 6 * all applicable laws, including copyright laws.
dkato 0:853f5b7408a7 7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
dkato 0:853f5b7408a7 8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
dkato 0:853f5b7408a7 9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
dkato 0:853f5b7408a7 10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
dkato 0:853f5b7408a7 11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
dkato 0:853f5b7408a7 12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
dkato 0:853f5b7408a7 13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
dkato 0:853f5b7408a7 14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
dkato 0:853f5b7408a7 15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
dkato 0:853f5b7408a7 16 * Renesas reserves the right, without notice, to make changes to this software
dkato 0:853f5b7408a7 17 * and to discontinue the availability of this software. By using this software,
dkato 0:853f5b7408a7 18 * you agree to the additional terms and conditions found by accessing the
dkato 0:853f5b7408a7 19 * following link:
dkato 0:853f5b7408a7 20 * http://www.renesas.com/disclaimer
dkato 0:853f5b7408a7 21 * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved.
dkato 0:853f5b7408a7 22 *******************************************************************************/
dkato 0:853f5b7408a7 23 /**************************************************************************//**
dkato 0:853f5b7408a7 24 * @file lvds_pll_calc.h
dkato 0:853f5b7408a7 25 * @version 1.00
dkato 0:853f5b7408a7 26 * $Rev: 199 $
dkato 0:853f5b7408a7 27 * $Date:: 2014-05-23 16:33:52 +0900#$
dkato 0:853f5b7408a7 28 * @brief Debug function header
dkato 0:853f5b7408a7 29 ******************************************************************************/
dkato 0:853f5b7408a7 30
dkato 0:853f5b7408a7 31 #ifndef LVDS_PLL_CALC_H
dkato 0:853f5b7408a7 32 #define LVDS_PLL_CALC_H
dkato 0:853f5b7408a7 33
dkato 0:853f5b7408a7 34 /******************************************************************************
dkato 0:853f5b7408a7 35 Includes <System Includes> , "Project Includes"
dkato 0:853f5b7408a7 36 ******************************************************************************/
dkato 0:853f5b7408a7 37 #include "r_typedefs.h"
dkato 0:853f5b7408a7 38
dkato 0:853f5b7408a7 39
dkato 0:853f5b7408a7 40 /******************************************************************************
dkato 0:853f5b7408a7 41 Macro definitions
dkato 0:853f5b7408a7 42 ******************************************************************************/
dkato 0:853f5b7408a7 43 typedef struct {
dkato 0:853f5b7408a7 44 double comparison_freq;
dkato 0:853f5b7408a7 45 double output_freq;
dkato 0:853f5b7408a7 46 double nidiv;
dkato 0:853f5b7408a7 47 double nrd;
dkato 0:853f5b7408a7 48 double nfd;
dkato 0:853f5b7408a7 49 double nod;
dkato 0:853f5b7408a7 50 double nodiv;
dkato 0:853f5b7408a7 51 } pll_parameter_t;
dkato 0:853f5b7408a7 52
dkato 0:853f5b7408a7 53 /******************************************************************************
dkato 0:853f5b7408a7 54 Typedef definitions
dkato 0:853f5b7408a7 55 ******************************************************************************/
dkato 0:853f5b7408a7 56 #define LVDS_IF_NOT_USE (0u)
dkato 0:853f5b7408a7 57 #define LVDS_IF_USE (1u)
dkato 0:853f5b7408a7 58
dkato 0:853f5b7408a7 59 /******************************************************************************
dkato 0:853f5b7408a7 60 Exported global functions (to be accessed by other files)
dkato 0:853f5b7408a7 61 ******************************************************************************/
dkato 0:853f5b7408a7 62 extern int32_t lvds_pll_calc(
dkato 0:853f5b7408a7 63 const double InClock,
dkato 0:853f5b7408a7 64 const double OuClock,
dkato 0:853f5b7408a7 65 const uint32_t Lvds,
dkato 0:853f5b7408a7 66 pll_parameter_t * result );
dkato 0:853f5b7408a7 67
dkato 0:853f5b7408a7 68 #endif /* LVDS_PLL_CALC_H */
dkato 0:853f5b7408a7 69
dkato 0:853f5b7408a7 70