Пример #1
0
unsigned char DMBDrv_GetAntLevel(void)
{
	u8 level = 0;
	unsigned int ber;

	if(!gInitFlag) {
		gBer = 3000;
		return 0;
	}
	
	if(viterbi_rt_ber_read(&ber)) {
		gBer = 3000;
		return 0;
	}

	if(ber <= 10)
		ber = 0;
	
	gBer = ber;
	if(GetSignalLevel(ber, &level))
		return 0;
	
#ifdef FEATURE_FC8050_DEBUG
	DMBDrv_Check_Overrun(1);
#endif
	return level;
}
Пример #2
0
unsigned char dmb_drv_get_ant(void)
{
	u8 level = 0;
	unsigned int ber;

	if (!dmb_initialize) {
		saved_ber = 3000;
		return 0;
	}

	if (viterbi_rt_ber_read(&ber)) {
		saved_ber = 3000;
		return 0;
	}

	if (ber <= 20)
		ber = 0;

	saved_ber = ber;
	if (get_signal_level(ber, &level))
		return 0;

#ifdef FEATURE_FC8050_DEBUG
	dmb_drv_check_overrun(1);
#endif

	return level;
}