📄 reg0297.h
字号:
/* CRL_10 */
#define R0297_CRL_10 0x6a
#define F0297_SWEEP_EN 0x6a0001
#define F0297_PH_EN 0x6a0002
#define F0297_DIR_EN 0x6a0004
#define F0297_INT_EN 0x6a0008
#define F0297_DIR_DIS 0x6a0010
#define F0297_INT_DIS 0x6a0020
/* CRL_11 */
#define R0297_CRL_11 0x6b
#define F0297_CRL_SNAPSHOT 0x6b00ff
/* PMFAGC_0 */
#define R0297_PMFAGC_0 0x70
#define F0297_LOCK_THRES_LO 0x7000ff
/* PMFAGC_1 */
#define R0297_PMFAGC_1 0x71
#define F0297_PMFA_F_UNLOCK 0x710080
#define F0297_PMFA_F_LOCK 0x710040
#define F0297_WBAGC_F_LOCK 0x710020
#define F0297_UP_STOP 0x710010
#define F0297_LOCK_THRES_HI 0x71000f
/* PMFAGC_2 */
#define R0297_PMFAGC_2 0x72
#define F0297_PMFA_ACC0 0x7200ff
/* PMFAGC_3 */
#define R0297_PMFAGC_3 0x73
#define F0297_PMFA_ACC1 0x7300ff
/* PMFAGC_4 */
#define R0297_PMFAGC_4 0x74
#define F0297_PMFA_LOCK_STATE 0x740080
#define F0297_PMFA_ACC2 0x74000f
/* CTRL_0 */
#define R0297_CTRL_0 0x80
#define F0297_SOFT_RESET 0x800001
#define F0297_VERSION 0x800070
/* CTRL_1 */
#define R0297_CTRL_1 0x81
#define F0297_RESET_DI 0x810001
/* CTRL_2 */
#define R0297_CTRL_2 0x82
#define F0297_RS_UNCORR 0x820020
#define F0297_CORNER_LOCK 0x820010
#define F0297_EQU_LMS2 0x820008
#define F0297_EQU_LMS1 0x820004
#define F0297_PMFAGC_IT 0x820002
#define F0297_WBAGC_IT 0x820001
/* CTRL_3 */
#define R0297_CTRL_3 0x83
#define F0297_J83C 0x830001
#define F0297_DFS 0x830002
#define F0297_SPEC_INV 0x830008
#define F0297_RESET_RS 0x830010
#define F0297_TEST_SEL 0x8300e0
/* CTRL_4 */
#define R0297_CTRL_4 0x84
#define F0297_RESET_EQL 0x840001
#define F0297_CKX2SEL 0x840002
#define F0297_CKX2DIS 0x840004
#define F0297_INVADCLK 0x840008
#define F0297_M_OEN 0x840010
#define F0297_AGC_OD 0x840020
/* CTRL_5 */
#define R0297_CTRL_5 0x85
#define F0297_LOCKPOL 0x850080
#define F0297_DI_SY_MASK 0x850040
#define F0297_DI_SY_EV 0x850020
#define F0297_DI_SY_DIR 0x850010
#define F0297_SYNC_MSK 0x850004
#define F0297_SYNC_EV 0x850002
#define F0297_SYNC_DIR 0x850001
/* CTRL_6 */
#define R0297_CTRL_6 0x86
#define F0297_I2CT_EN 0x860080
#define F0297_SCLT_OD 0x860040
#define F0297_EXTADCLK_EN 0x860020
#define F0297_ITLOCKSEL 0x860010
#define F0297_ITPWMSEL 0x860008
#define F0297_LOCKSCE 0x860006
#define F0297_TWB_ACT 0x860001
/* CTRL_7 */
#define R0297_CTRL_7 0x87
#define F0297_SOURCESEL 0x870080
#define F0297_PRGCLKDIV 0x870070
#define F0297_AUXCLKSEL 0x870008
#define F0297_ITLOCK_OD 0x870002
#define F0297_ITPWM_OD 0x870001
/* CTRL_8 */
#define R0297_CTRL_8 0x88
#define F0297_AGC12SEL 0x880080
#define F0297_AGC12B_EN 0x880040
#define F0297_SIGMA_INV_1 0x880020
#define F0297_SIGMA_INV_2 0x880010
#define F0297_EN_CORNER_DET 0x880008
/* CTRL_9 */
#define R0297_CTRL_9 0x89
#define F0297_AUTOQAMMODE_SEL 0x890080
#define F0297_AUTOCONSTEL_TIMER 0x890078
#define F0297_AUTOSTOP_CONSTEL 0x890004
#define F0297_AUTOCONSTEL_ON 0x890002
/* DEINT_SYNC_0 */
#define R0297_DEINT_SYNC_0 0x90
#define F0297_DI_UNLOCK 0x900080
#define F0297_DI_FREEZE 0x900040
#define F0297_MISMATCH 0x900030
#define F0297_ACQ_MODE 0x90000c
#define F0297_TRKMODE 0x900003
/* DEINT_SYNC_1 */
#define R0297_DEINT_SYNC_1 0x91
#define F0297_SYNLOST 0x910020
/* BERT_0 */
#define R0297_BERT_0 0xa0
#define F0297_BERT_ON 0xa00080
#define F0297_ERR_SOURCE 0xa00010
#define F0297_ERR_MODE 0xa00008
#define F0297_NBYTE 0xa00007
/* BERT_1 */
#define R0297_BERT_1 0xa1
#define F0297_ERRCOUNT_LO 0xa100ff
/* BERT_2 */
#define R0297_BERT_2 0xa2
#define F0297_ERRCOUNT_HI 0xa200ff
/* DEINT_0 */
#define R0297_DEINT_0 0xb0
#define F0297_USEINT 0xb00080
#define F0297_DAVIC 0xb00040
#define F0297_M 0xb0001f
/* DEINT_1 */
#define R0297_DEINT_1 0xb1
#define F0297_DEPTH 0xb100ff
/* OUTFORMAT_0 */
#define R0297_OUTFORMAT_0 0xc0
#define F0297_REFRESH47 0xc00040
#define F0297_BE_BYPASS 0xc00020
#define F0297_CKOUTPAR 0xc00010
#define F0297_CT_NBST 0xc00008
#define F0297_S_NP 0xc00004
#define F0297_TEI_ENA 0xc00002
#define F0297_DS_ENA 0xc00001
/* OUTFORMAT_1 */
#define R0297_OUTFORMAT_1 0xc1
#define F0297_SYNC_STRIP 0xc10080
#define F0297_CI_EN 0xc10040
#define F0297_CICLK_POL 0xc10020
#define F0297_CICLK_BASE 0xc10010
/* OUTFORMAT_2 */
#define R0297_OUTFORMAT_2 0xc2
#define F0297_CI_DIVRANGE 0xc2003f
/* RS_DESC_0 */
#define R0297_RS_DESC_0 0xd0
#define F0297_BK_CT_LO 0xd000ff
/* RS_DESC_1 */
#define R0297_RS_DESC_1 0xd1
#define F0297_BK_CT_HI 0xd100ff
/* RS_DESC_2 */
#define R0297_RS_DESC_2 0xd2
#define F0297_CORR_CT_LO 0xd200ff
/* RS_DESC_3 */
#define R0297_RS_DESC_3 0xd3
#define F0297_CORR_CT_HI 0xd300ff
/* RS_DESC_4 */
#define R0297_RS_DESC_4 0xd4
#define F0297_UNCORR_CT_LO 0xd400ff
/* RS_DESC_5 */
#define R0297_RS_DESC_5 0xd5
#define F0297_UNCORR_CT_HI 0xd500ff
/* RS_DESC_14 */
#define R0297_RS_DESC_14 0xde
#define F0297_DIS_UNLOCK 0xde0004
#define F0297_MODE 0xde0003
/* RS_DESC_15 */
#define R0297_RS_DESC_15 0xdf
#define F0297_CT_CLEAR 0xdf0001
#define F0297_CT_HOLD 0xdf0002
#define F0297_RS_NOCORR 0xdf0004
#define F0297_SYNCSTATE 0xdf0080
/* defines ----------------------------------------------------------------- */
/* Modulations */
#define D0297_QAM16 0
#define D0297_QAM32 1
#define D0297_QAM64 4
#define D0297_QAM128 2
#define D0297_QAM256 3
/* AGC */
#define D0297_WBAGCOFF 0x60
#define D0297_WBAGCON 0x30
/* MACRO definitions */
#define MAC0297_ABS(X) ((X)<0 ? (-X) : (X))
#define MAC0297_MAX(X,Y) ((X)>=(Y) ? (X) : (Y))
#define MAC0297_MIN(X,Y) ((X)<=(Y) ? (X) : (Y))
#define MAC0297_MAKEWORD(X,Y) ((X<<8)+(Y))
#define MAC0297_B0(X) ((X & 0xFF))
#define MAC0297_B1(Y) ((Y>>8)& 0xFF)
#define MAC0297_B2(Y) ((Y>>16)& 0xFF)
#define MAC0297_B3(Y) ((Y>>24)& 0xFF)
/* public types ------------------------------------------------------------ */
/* functions --------------------------------------------------------------- */
ST_ErrorCode_t Reg0297_Install (STTUNER_IOREG_DeviceMap_t *DeviceMap);
ST_ErrorCode_t Reg0297_Open (STTUNER_IOREG_DeviceMap_t *DeviceMap, U32 ExternalClock);
ST_ErrorCode_t Reg0297_Close (STTUNER_IOREG_DeviceMap_t *DeviceMap);
ST_ErrorCode_t Reg0297_UnInstall (STTUNER_IOREG_DeviceMap_t *DeviceMap);
/******** EQUALIZER ****************************************/
void Reg0297_SetQAMSize (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle, STTUNER_Modulation_t Value);
STTUNER_Modulation_t Reg0297_GetQAMSize (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
/********** WBAGC functions********/
void Reg0297_WBAGCOff (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
void Reg0297_WBAGCOn (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
void Reg0297_SetAGC (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle, U16 Value);
U16 Reg0297_GetAGC (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
/********** STL functions *********/
void Reg0297_SetSymbolRate (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle, unsigned long Value);
unsigned long Reg0297_GetSymbolRate (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
void Reg0297_SetSweepRate (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle, unsigned long Value);
void Reg0297_SetFrequencyOffset (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle, long Value);
long Reg0297_GetFrequencyOffset (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
U8 Reg0297_GetSTV0297Id (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
/********** ERR functions *********/
void Reg0297_StartBlkCounter (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
void Reg0297_StopBlkCounter (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
U16 Reg0297_GetBlkCounter (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
U16 Reg0297_GetCorrBlk (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
U16 Reg0297_GetUncorrBlk (STTUNER_IOREG_DeviceMap_t *DeviceMap, IOARCH_Handle_t IOHandle);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __STTUNER_DEMOD_R0297_H */
/* End of reg0297.h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -