clkrv.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
- /*****************************************************************************
- File Name : clkrv.h
- Description: CLKRV header
- Copyright (C) 2004 STMicroelectronics
- *****************************************************************************/
- /* Define to prevent recursive inclusion */
- #ifndef __CLKRV_H
- #define __CLKRV_H
- /* Includes --------------------------------------------------------------- */
- #include "stddefs.h" /* STAPI includes */
- #include "stclkrv.h"
- /* Exported Types ------------------------------------------------------ */
- /* Exported Constants -------------------------------------------------- */
- #define KB_CLKRV_DEVICE_TYPE STCLKRV_DEVICE_TYPE_5100
- #define KB_CLKRV_INTERRUPT ST5105_DCO_CORRECTION_INTERRUPT
- #define KB_CLKRV_INTERRUPT_LEVEL 5
- #define KB_CLKRV_MIN_SAMPLE_THRES_SAT 10 /* Min Window For Satellite - 10 */
- #define KB_CLKRV_PCR_DRIFT_THRES_SAT 400 /* For Satellite = 200 */
- #define KB_CLKRV_MAX_WINDOW_SIZE_SAT 50
- #define KB_CLKRV_MIN_SAMPLE_THRES_TER 50 /* Min Window For Terrestrial - 50 */
- #define KB_CLKRV_PCR_DRIFT_THRES_TER_8 10000 /* For Terrestrial(1/8 gaurd interval) = 10000 */
- #define KB_CLKRV_PCR_DRIFT_THRES_TER_32 2500 /* For Terrestrial(1/32 gaurd interval) = 2500 */
- #define KB_CLKRV_MAX_WINDOW_SIZE_TER 150 /* Maximum number samples in moving average window */
- #define KB_CLKRV_PCR_MAX_GLITCH 2 /* number of bad PCRs pre re-basing */
- /* threshold for Error */
- /* Exported Variables -------------------------------------------------- */
- extern ST_DeviceName_t g_KBCLKRVDeviceName;
- /* Exported Macros ----------------------------------------------------- */
- #define STC_OFFSET (-40 * 90)
- /* Exported Functions -------------------------------------------------- */
- ST_ErrorCode_t KB_CLKRVSetup(void);
- #endif /* __CLKRV_H */
- /* EOF --------------------------------------------------------------------- */