📄 mt2063.h
字号:
**** Name: MT2063_ReInit**** Description: Initialize the tuner's register values.**** Parameters: h - Tuner handle (returned by MT2063_Open)**** Returns: status:** MT_OK - No errors** MT_TUNER_ID_ERR - Tuner Part/Rev code mismatch** MT_INV_HANDLE - Invalid tuner handle** MT_COMM_ERR - Serial bus communications error**** Dependencies: MT_ReadSub - Read byte(s) of data from the two-wire bus** MT_WriteSub - Write byte(s) of data to the two-wire bus**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.********************************************************************************/UData_t MT2063_ReInit(Handle_t h);/********************************************************************************** Name: MT2063_SetGPIO**** Description: Modify the MT2063 GPIO value.**** Parameters: h - Open handle to the tuner (from MT2063_Open).** gpio_id - Selects GPIO0, GPIO1, or GPIO2** attr - Selects input readback, I/O direction or** output value** value - value to set GPIO pin**** Usage: status = MT2063_SetGPIO(hMT2063, MT2063_GPIO1, MT2063_GPIO_OUT, 1);**** Returns: status:** MT_OK - No errors** MT_COMM_ERR - Serial bus communications error** MT_INV_HANDLE - Invalid tuner handle**** Dependencies: MT_WriteSub - Write byte(s) of data to the two-wire-bus**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.********************************************************************************/UData_t MT2063_SetGPIO(Handle_t h, MT2063_GPIO_ID gpio_id, MT2063_GPIO_Attr attr, UData_t value);/******************************************************************************** Name: MT2063_SetParam**** Description: Sets a tuning algorithm parameter.**** This function provides access to the internals of the** tuning algorithm. You can override many of the tuning** algorithm defaults using this function.**** Parameters: h - Tuner handle (returned by MT2063_Open)** param - Tuning algorithm parameter** (see enum MT2063_Param)** nValue - value to be set**** param Description** ---------------------- --------------------------------** MT2063_SRO_FREQ crystal frequency** MT2063_STEPSIZE minimum tuning step size** MT2063_LO1_STEPSIZE LO1 minimum step size** MT2063_LO1_FRACN_AVOID LO1 FracN keep-out region** MT2063_IF1_REQUEST Requested 1st IF** MT2063_IF1_CENTER Center of 1st IF SAW filter** MT2063_IF1_BW Bandwidth of 1st IF SAW filter** MT2063_ZIF_BW zero-IF bandwidth** MT2063_LO2_STEPSIZE LO2 minimum step size** MT2063_LO2_FRACN_AVOID LO2 FracN keep-out region** MT2063_OUTPUT_FREQ output center frequency** MT2063_OUTPUT_BW output bandwidth** MT2063_LO_SEPARATION min inter-tuner LO separation** MT2063_MAX_HARM1 max # of intra-tuner harmonics** MT2063_MAX_HARM2 max # of inter-tuner harmonics**** Usage: status |= MT2063_SetParam(hMT2063,** MT2063_STEPSIZE,** 50000);**** Returns: status:** MT_OK - No errors** MT_INV_HANDLE - Invalid tuner handle** MT_ARG_NULL - Null pointer argument passed** MT_ARG_RANGE - Invalid parameter requested** or set value out of range** or non-writable parameter**** Dependencies: USERS MUST CALL MT2063_Open() FIRST!**** See Also: MT2063_GetParam, MT2063_Open**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.******************************************************************************/UData_t MT2063_SetParam(Handle_t h, MT2063_Param param, UData_t nValue);/******************************************************************************** Name: MT2063_SetPowerMaskBits**** Description: Sets the power-down mask bits for various sections of** the MT2063**** Parameters: h - Tuner handle (returned by MT2063_Open)** Bits - Mask bits to be set.**** MT2063_ALL_SD All shutdown bits for this tuner**** MT2063_REG_SD Shutdown regulator** MT2063_SRO_SD Shutdown SRO** MT2063_AFC_SD Shutdown AFC A/D** MT2063_PD_SD Enable power detector shutdown** MT2063_PDADC_SD Enable power detector A/D shutdown** MT2063_VCO_SD Enable VCO shutdown VCO** MT2063_UPC_SD Enable upconverter shutdown** MT2063_DNC_SD Enable downconverter shutdown** MT2063_VGA_SD Enable VGA shutdown**** Returns: status:** MT_OK - No errors** MT_INV_HANDLE - Invalid tuner handle** MT_COMM_ERR - Serial bus communications error**** Dependencies: USERS MUST CALL MT2063_Open() FIRST!**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.******************************************************************************/UData_t MT2063_SetPowerMaskBits(Handle_t h, MT2063_Mask_Bits Bits);/******************************************************************************** Name: MT2063_ClearPowerMaskBits**** Description: Clears the power-down mask bits for various sections of** the MT2063**** Parameters: h - Tuner handle (returned by MT2063_Open)** Bits - Mask bits to be cleared.**** MT2063_ALL_SD All shutdown bits for this tuner**** MT2063_REG_SD Shutdown regulator** MT2063_SRO_SD Shutdown SRO** MT2063_AFC_SD Shutdown AFC A/D** MT2063_PD_SD Enable power detector shutdown** MT2063_PDADC_SD Enable power detector A/D shutdown** MT2063_VCO_SD Enable VCO shutdown VCO** MT2063_UPC_SD Enable upconverter shutdown** MT2063_DNC_SD Enable downconverter shutdown** MT2063_VGA_SD Enable VGA shutdown**** Returns: status:** MT_OK - No errors** MT_INV_HANDLE - Invalid tuner handle** MT_COMM_ERR - Serial bus communications error**** Dependencies: USERS MUST CALL MT2063_Open() FIRST!**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.******************************************************************************/UData_t MT2063_ClearPowerMaskBits(Handle_t h, MT2063_Mask_Bits Bits);/******************************************************************************** Name: MT2063_GetPowerMaskBits**** Description: Returns a mask of the enabled power shutdown bits**** Parameters: h - Tuner handle (returned by MT2063_Open)** Bits - Mask bits to currently set.**** MT2063_REG_SD Shutdown regulator** MT2063_SRO_SD Shutdown SRO** MT2063_AFC_SD Shutdown AFC A/D** MT2063_PD_SD Enable power detector shutdown** MT2063_PDADC_SD Enable power detector A/D shutdown** MT2063_VCO_SD Enable VCO shutdown VCO** MT2063_UPC_SD Enable upconverter shutdown** MT2063_DNC_SD Enable downconverter shutdown** MT2063_VGA_SD Enable VGA shutdown**** Returns: status:** MT_OK - No errors** MT_INV_HANDLE - Invalid tuner handle** MT_ARG_NULL - Output argument is NULL** MT_COMM_ERR - Serial bus communications error**** Dependencies: USERS MUST CALL MT2063_Open() FIRST!**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.******************************************************************************/UData_t MT2063_GetPowerMaskBits(Handle_t h, MT2063_Mask_Bits *Bits);/******************************************************************************** Name: MT2063_EnableExternalShutdown**** Description: Enables or disables the operation of the external** shutdown pin**** Parameters: h - Tuner handle (returned by MT2063_Open)** Enabled - 0 = disable the pin, otherwise enable it**** Returns: status:** MT_OK - No errors** MT_INV_HANDLE - Invalid tuner handle** MT_COMM_ERR - Serial bus communications error**** Dependencies: USERS MUST CALL MT2063_Open() FIRST!**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.******************************************************************************/UData_t MT2063_EnableExternalShutdown(Handle_t h, U8Data Enabled);/******************************************************************************** Name: MT2063_SoftwareShutdown**** Description: Enables or disables software shutdown function. When** Shutdown==1, any section whose power mask is set will be** shutdown.**** Parameters: h - Tuner handle (returned by MT2063_Open)** Shutdown - 1 = shutdown the masked sections, otherwise** power all sections on**** Returns: status:** MT_OK - No errors** MT_INV_HANDLE - Invalid tuner handle** MT_COMM_ERR - Serial bus communications error**** Dependencies: USERS MUST CALL MT2063_Open() FIRST!**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.******************************************************************************/UData_t MT2063_SoftwareShutdown(Handle_t h, U8Data Shutdown);/******************************************************************************** Name: MT2063_SetExtSRO**** Description: Sets the external SRO driver.**** Parameters: h - Tuner handle (returned by MT2063_Open)** Ext_SRO_Setting - external SRO drive setting**** (default) MT2063_EXT_SRO_OFF - ext driver off** MT2063_EXT_SRO_BY_1 - ext driver = SRO frequency** MT2063_EXT_SRO_BY_2 - ext driver = SRO/2 frequency** MT2063_EXT_SRO_BY_4 - ext driver = SRO/4 frequency**** Returns: status:** MT_OK - No errors** MT_COMM_ERR - Serial bus communications error** MT_INV_HANDLE - Invalid tuner handle**** Dependencies: USERS MUST CALL MT2063_Open() FIRST!**** The Ext_SRO_Setting settings default to OFF** Use this function if you need to override the default**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.******************************************************************************/UData_t MT2063_SetExtSRO(Handle_t h, MT2063_Ext_SRO Ext_SRO_Setting);/******************************************************************************** Name: MT2063_SetReg**** Description: Sets an MT2063 register.**** Parameters: h - Tuner handle (returned by MT2063_Open)** reg - MT2063 register/subaddress location** val - MT2063 register/subaddress value**** Returns: status:** MT_OK - No errors** MT_COMM_ERR - Serial bus communications error** MT_INV_HANDLE - Invalid tuner handle** MT_ARG_RANGE - Argument out of range**** Dependencies: USERS MUST CALL MT2063_Open() FIRST!**** Use this function if you need to override a default** register value**** Revision History:**** SCR Date Author Description** -------------------------------------------------------------------------** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.******************************************************************************/UData_t MT2063_SetReg(Handle_t h, U8Data reg, U8Data val);#if defined( __cplusplus )}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -