📄 hamaro_str.h
字号:
/* cobra_str.h */
/*+++ *******************************************************************\
*
* Copyright and Disclaimer:
*
* ---------------------------------------------------------------
* ALL SOFTWARE, APPLICATIONS, DOCUMENTATION, OR MATERIALS
* FURNISHED HEREIN IS PROVIDED *AS IS*. CONEXANT DOES NOT MAKE
* ANY WARRANTIES, EITHER EXPRESS OR IMPLIED, AND HEREBY EXPRESSLY
* DISCLAIMS ANY AND ALL SUCH WARRANTIES TO THE EXTENT PERMITTED
* BY LAW, INCLUDING, SPECIFICALLY, ANY IMPLIED WARRANTY ARISING
* BY STATUTE OR OTHERWISE IN LAW OR FROM A COURSE OF DEALING OR
* USAGE OF TRADE. CONEXANT DOES NOT MAKE ANY WARRANTIES, EITHER
* EXPRESS OR IMPLIED, AND HEREBY EXPRESSLY DISCLAIMS ANY AND ALL
* SUCH WARRANTIES WITH RESPECT TO ALL SOFTWARE, APPLICATIONS,
* DOCUMENTATION, AND MATERIALS INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY, OR OF MERCHANTABLE QUALITY, OR OF FITNESS
* FOR ANY PURPOSE, PARTICULAR, SPECIFIC OR OTHERWISE, OR OF
* NONINFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OF OTHERS,
* RELATING TO THE SOFTWARE, APPLICATIONS, OPERATION,
* DOCUMENTATION, DATA OR RESULTS GENERATED BY THE OPERATION OR
* USE THEREOF, AND MATERIALS PROVIDED HEREIN. THE ENTIRE RISK AS
* TO THE SUBSTANCE, QUALITY AND PERFORMANCE OF SOFTWARE,
* APPLICATIONS, AND DOCUMENTATION DESCRIBING SUCH SOFTWARE
* REMAINS WITH THE BUYER.
*
* REGARDLESS OF WHETHER ANY REMEDY SET FORTH HEREIN FAILS OF ITS
* ESSENTIAL PURPOSE OR OTHERWISE, CONEXANT SHALL NOT BE LIABLE
* FOR ANY EXEMPLARY, SPECIAL, PUNITIVE, SPECULATIVE, INDIRECT,
* CONSEQUENTIAL OR INCIDENTAL DAMAGES OF ANY KIND (INCLUDING
* WITHOUT LIMITATION LOST PROFITS, LOSS OF INCOME, LOSS OF
* GOODWILL, OR OTHER TANGIBLE OR INTANGIBLE BUSINESS LOSS)
* ARISING OUT OF OR IN CONNECTION WITH, DIRECTLY OR INDIRECTLY,
* SOFTWARE, APPLICATIONS, DOCUMENTATION, OR ANY SERVICES OR
* MATERIALS PROVIDED HEREUNDER, OR USE OR INABILITY TO USE THE
* SOFTWARE, EVEN IF CONEXANT HAS BEEN ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGES.
*
* Copyright (c) 2001 Conexant Systems, Inc.
* All Rights Reserved.
* ---------------------------------------------------------------
*
* Module Revision Id:
*
* $Header: hamaro_str.h, 9, 2006-10-20 7:15:04, Sunbey (VSS Migration)$
*
* Abstract:
*
* Contains various Hamaro structures.
*
\******************************************************************* ---*/
#ifndef HAMARO_STR_H_DEFINED
#define HAMARO_STR_H_DEFINED
#if HAMARO_INCLUDE_ROSIE
#define HAMARO_CX24108_NOPROTO /* include definitions used in the cobra_str.h file */
#include "hamaro_cx24108.h"
#undef HAMARO_CX24108_H_DEFINED
#undef HAMARO_CX24108_NOPROTO
#endif /* HAMARO_INCLUDE_ROSIE */
#if HAMARO_INCLUDE_VIPER
#define HAMARO_CX24128_NOPROTO /* include definitions used in the cobra_str.h file */
#include "hamaro_cx24128.h"
#undef HAMARO_CX24128_H_DEFINED
#undef HAMARO_CX24128_NOPROTO
#endif /* #ifdef HAMARO_INCLUDE_VIPER */
#if HAMARO_INCLUDE_RATTLER
#define HAMARO_CX24113_NOPROTO /* include definitions used in the cobra_str.h file */
#include "hamaro_cx24113.h"
#undef HAMARO_CX24113_H_DEFINED
#undef HAMARO_CX24113_NOPROTO
#endif /* #ifdef HAMARO_INCLUDE_RATTLER */
#if HAMARO_INCLUDE_ROSIE
/*******************************************************************************************************/
/* HAMAROTuner specific */
/*******************************************************************************************************/
typedef struct HAMARO_VCO_EDGE
{ /* vco edges: */
unsigned long lower; /* lower edge of VCO where lock-detect was detected */
unsigned long upperthresh; /* upper edge of VCO where lock-detect was detected */
}HAMARO_VCO_EDGE;
/*******************************************************************************************************/
/* HAMARO_VCO_LEN */
/*******************************************************************************************************/
typedef unsigned long HAMARO_VCO_LEN;
/*******************************************************************************************************/
/*******************************************************************************************************/
typedef struct HAMARO_VCO_LIST
{ /* full array of VCO edges (used in LabView dll) */
HAMARO_VCO_EDGE vco_edge[HAMARO_CX24108_VCOEDGES]; /* added per CR 6606 */
}HAMARO_VCO_LIST;
/*******************************************************************************************************/
/*******************************************************************************************************/
typedef struct HAMARO_VCO_BP
{ /* vco breakpoint struct */
unsigned long percentage; /* break-point percentage */
unsigned long breakpt; /* break point computed by: */
}HAMARO_VCO_BP; /* (vco_edge.upper[n]+vco_edge[n+1].lower)/2 */
/*******************************************************************************************************/
/* HAMAROTuner Gain Structures */
/*******************************************************************************************************/
typedef struct /* tuner slope struct (3 per tuner) see: HAMARO_TUNERPARMS */
{ /* [0] = 1..5msps; [1] = 5..15msps; [2] = 15..45msps */
HAMARO_VCASLOPE VCASlope; /* vca slope */
HAMARO_VCAOFFSET VCAOffset; /* vca offset */
HAMARO_VGA1VALS VGA1Offset; /* vga1 offset */
HAMARO_VGA2VALS VGA2Offset; /* vga2 offset */
}HAMARO_TUNERSLOPE;
/*******************************************************************************************************/
/*******************************************************************************************************/
typedef struct
{ /* Charge-pump currents: */
HAMARO_CPCURRENT high; /* " high */
HAMARO_CPCURRENT mid; /* " mid */
HAMARO_CPCURRENT low; /* " low */
unsigned char LowPercentage; /* Range: HAMAROCpLow_Range */
unsigned char HighPercentage; /* Range: CpHigh_Range */
}HAMARO_TUNERCP;
/*******************************************************************************************************/
/*******************************************************************************************************/
typedef struct HAMARO_TUNERPARMS
{ /* HAMAROTuner parameters: */
HAMARO_TUNERSLOPE SLP[HAMARO_CX24108_SLOPES]; /* slope table */
HAMARO_TUNERCP CPC[HAMARO_CX24108_CPCS]; /* charge-pump table per VCO */
}HAMARO_TUNERPARMS;
/*******************************************************************************************************/
/* HAMAROTuner: HAMARO_ROSIE */
/*******************************************************************************************************/
typedef struct /* structure comprising multi-NIMs */
{ /* Rosie-specifc variables will be stored in this struct */
int N; /* N register */
int A; /* A register */
HAMARO_RDIVVAL R; /* R reference divider */
HAMARO_VCODIV vcodiv; /* vco divider (2 -or- 4) */
HAMARO_VCONO vcono; /* vco number (1..8) */
unsigned long vcofreq; /* vco frequency (~2 -or- 4 * Fr) */
HAMARO_VCO_BP vco_bp[HAMARO_CX24108_BPCNT]; /* structure holding VCO breakpoints for tuner */
HAMARO_VCO_EDGE vco_edge[HAMARO_CX24108_VCOEDGES];/* structure holding VCO upper and lower threshholds */
HAMARO_VCO_LEN vco_len[HAMARO_CX24108_VCOEDGES]; /* array holding est. length of associated VCO */
struct HAMARO_TUNERPARMS tunerparms; /* tuner gain parameters */
int device_temp_met; /* device has met min. elapsed time to op. temp. */
/* tuner current settings ****************************************************************************/
int CPCPolarity; /* default CPC polarity=negative */
int RefDivider; /* last reference divider prog'd to tuner */
int CPCCurrent; /* last charge-pump current setting prog'd to tuner */
int BPPercentage; /* last breakpoint percentage setting (often 50%) */
HAMARO_VCASLOPE VCASlope; /* last vca slope setting */
HAMARO_VCAOFFSET VCAOffset; /* last vca offset setting */
HAMARO_VGA1VALS VGA1Offset; /* last vga1 offset setting */
HAMARO_VGA2VALS VGA2Offset; /* last vga2 offset setting */
unsigned long ulTunerData_shadow[4];/* shadow of last data sent to the tuner */
unsigned long lsba; /* value of A register when incr'd in hz */
/* tuner (RFU) ***************************************************************************************/
int testmode; /* tuner testmode bit (VCO bit 8) s/b 0) */
}HAMARO_ROSIE;
#endif
#if HAMARO_INCLUDE_VIPER
/* HAMARO_INCLUDE_VIPER specificsection - begin */
/*********************************************************************/
/* HAMARO_VIPERPARMS */
/*********************************************************************/
typedef struct HAMAROViperParms{
/* ICP parameters. */
HAMARO_ICPMODE ICPmode; /* ICP auto or manual */
HAMARO_ICPMAN ICPman; /* Man analog ICP level */
HAMARO_ICPAUTO ICPauto_Hi; /* Auto analog ICP levels */
HAMARO_ICPAUTO ICPauto_MedHi;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -