KT24-1110_65E-HA-651B/apps/common/device/fm/fm_inside/fm_inside.h
2024-11-10 18:44:17 +08:00

46 lines
1.5 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _FM_INSIDE_H_
#define _FM_INSIDE_H_
#if(TCFG_FM_INSIDE_ENABLE == ENABLE)
#if DAC2IIS_EN
#define FM_DAC_OUT_SAMPLERATE 44100L
#else
#define FM_DAC_OUT_SAMPLERATE 44100L
#endif
/************************************************************
* FM调试说明
*真台少: 假台多: 叠台多:
*减小 FMSCAN_CNR(主) 加大 FMSCAN_CNR(主) 减小FMSCAN_AGC
*减小 FMSCAN_P_DIFFER(主) 加大 FMSCAN_P_DIFFER(主)
*加大 FMSCAN_N_DIFFER(次) 减小 FMSCAN_N_DIFFER(次)
*
*注意:不要插串口测试搜台数
*************************************************************/
#define FMSCAN_SEEK_CNT_MIN 400 //最小过零点数 400左右
#define FMSCAN_SEEK_CNT_MAX 600 //最大过零点数 600左右
#define FMSCAN_960_CNR 34 //谐波96M的基础cnr 30~40
#define FMSCAN_1080_CNR 34 //谐波108M的基础cnr 30~40
#define FMSCAN_AGC -1 //AGC阈值 -55左右,默认最大增益
#define FMSCAN_ADD_DIFFER -67 //低于此值增加noise differ, -67左右
#define FMSCAN_CNR 2 //cnr 1以上
#define FMSCAN_P_DIFFER 2 //power differ 1以上
#define FMSCAN_N_DIFFER 8 //noise differ 8左右
#define FM_IF 3 //0,1.875; 1,2.143; 2,1.5; 3,cnr低的中频听台
void fm_inside_init(void *priv);
bool fm_inside_set_fre(void *priv, u16 fre);
bool fm_inside_read_id(void *priv);
void fm_inside_powerdown(void *priv);
void fm_inside_mute(void *priv, u8 flag);
#endif
#endif // _FM_INSIDE_H_