KT24-1110_65E-HA-651B/apps/common/device/fm/fm_inside/fm_inside.h

46 lines
1.5 KiB
C
Raw Normal View History

2024-11-10 10:44:17 +00:00
#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_