本文整理汇总了C++中TUNER_MODULE::GetRfFreqHz方法的典型用法代码示例。如果您正苦于以下问题:C++ TUNER_MODULE::GetRfFreqHz方法的具体用法?C++ TUNER_MODULE::GetRfFreqHz怎么用?C++ TUNER_MODULE::GetRfFreqHz使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TUNER_MODULE
的用法示例。
在下文中一共展示了TUNER_MODULE::GetRfFreqHz方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/**
@see DVBT_NIM_FP_GET_PARAMETERS
*/
s32
dvbt_nim_default_GetParameters(
DVBT_NIM_MODULE *pNim,
u64 *pRfFreqHz,
s32 *pBandwidthMode
)
{
TUNER_MODULE *pTuner;
DVBT_DEMOD_MODULE *pDemod;
// Get tuner module and demod module.
pTuner = pNim->pTuner;
pDemod = pNim->pDemod;
// Get tuner RF frequency in Hz.
if(pTuner->GetRfFreqHz(pTuner, pRfFreqHz) != FUNCTION_SUCCESS)
goto error_status_execute_function;
// Get demod bandwidth mode.
if(pDemod->GetBandwidthMode(pDemod, pBandwidthMode) != FUNCTION_SUCCESS)
goto error_status_execute_function;
return FUNCTION_SUCCESS;
error_status_execute_function:
return FUNCTION_ERROR;
}
示例2:
/**
@see QAM_NIM_FP_GET_PARAMETERS
*/
int
qam_nim_default_GetParameters(
QAM_NIM_MODULE *pNim,
unsigned long *pRfFreqHz,
int *pQamMode,
unsigned long *pSymbolRateHz,
int *pAlphaMode
)
{
TUNER_MODULE *pTuner;
QAM_DEMOD_MODULE *pDemod;
// Get tuner module and demod module.
pTuner = pNim->pTuner;
pDemod = pNim->pDemod;
// Get tuner RF frequency in Hz.
if(pTuner->GetRfFreqHz(pTuner, pRfFreqHz) != FUNCTION_SUCCESS)
goto error_status_execute_function;
// Get demod QAM mode.
if(pDemod->GetQamMode(pDemod, pQamMode) != FUNCTION_SUCCESS)
goto error_status_execute_function;
// Get demod symbol rate in Hz.
if(pDemod->GetSymbolRateHz(pDemod, pSymbolRateHz) != FUNCTION_SUCCESS)
goto error_status_execute_function;
// Get demod alpha mode.
if(pDemod->GetAlphaMode(pDemod, pAlphaMode) != FUNCTION_SUCCESS)
goto error_status_execute_function;
return FUNCTION_SUCCESS;
error_status_execute_function:
return FUNCTION_ERROR;
}
示例3:
/**
@see DTMB_NIM_FP_GET_PARAMETERS
*/
s32
dtmb_nim_default_GetParameters(
DTMB_NIM_MODULE *pNim,
u64 *pRfFreqHz
)
{
TUNER_MODULE *pTuner;
// Get tuner module.
pTuner = pNim->pTuner;
// Get tuner RF frequency in Hz.
if(pTuner->GetRfFreqHz(pTuner, pRfFreqHz) != FUNCTION_SUCCESS)
goto error_status_execute_function;
return FUNCTION_SUCCESS;
error_status_execute_function:
return FUNCTION_ERROR;
}