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

31 lines
744 B
C

#ifndef _RDA_5807_H_
#define _RDA_5807_H_
#if(TCFG_FM_RDA5807_ENABLE == ENABLE)
u8 rda5807_init(void *priv);
u8 rda5807_set_fre(void *priv, u16 fre);
u8 rda5807_powerdown(void *priv);
u8 rda5807_mute(void *priv, u8 dir);
u8 rda5807_read_id(void *priv);
void rda5807_setch(u8 db);
//extern u8 rda5807_dat[12];
//extern u8 read_dat[10];
//extern u8 fm_type;
#define RDA5807_WR_ADDRESS 0x20 ///<RDA5807 写地址
#define RDA5807_RD_ADDRESS 0x21 ///<RDA5807 读地址
#define RDA5807_RSSI 0x4
#define rda5807_stc() (read_dat[0] & (1 << 6)) ///<锁频结束
#define rda5807_true() (read_dat[2] & (1 << 0)) ///<是否有台
#define rda5807_rssi() ((read_dat[2] >> 1)) ///<接收信号强度
#endif
#endif