Beispiel #1
0
/**

@see   DVBT_NIM_FP_GET_TPS_INFO

*/
s32
dvbt_nim_default_GetTpsInfo(
	DVBT_NIM_MODULE *pNim,
	s32 *pConstellation,
	s32 *pHierarchy,
	s32 *pCodeRateLp,
	s32 *pCodeRateHp,
	s32 *pGuardInterval,
	s32 *pFftMode
	)
{
	DVBT_DEMOD_MODULE *pDemod;


	// Get demod module.
	pDemod = pNim->pDemod;


	// Get TPS constellation information from demod.
	if(pDemod->GetConstellation(pDemod, pConstellation) != FUNCTION_SUCCESS)
		goto error_status_execute_function;

	// Get TPS hierarchy information from demod.
	if(pDemod->GetHierarchy(pDemod, pHierarchy) != FUNCTION_SUCCESS)
		goto error_status_execute_function;

	// Get TPS low-priority code rate information from demod.
	if(pDemod->GetCodeRateLp(pDemod, pCodeRateLp) != FUNCTION_SUCCESS)
		goto error_status_execute_function;

	// Get TPS high-priority code rate information from demod.
	if(pDemod->GetCodeRateHp(pDemod, pCodeRateHp) != FUNCTION_SUCCESS)
		goto error_status_execute_function;

	// Get TPS guard interval information from demod.
	if(pDemod->GetGuardInterval(pDemod, pGuardInterval) != FUNCTION_SUCCESS)
		goto error_status_execute_function;

	// Get TPS FFT mode information from demod.
	if(pDemod->GetFftMode(pDemod, pFftMode) != FUNCTION_SUCCESS)
		goto error_status_execute_function;


	return FUNCTION_SUCCESS;


error_status_execute_function:
	return FUNCTION_ERROR;
}