Arduino Radio Library
0.9
A set of Arduino libraries to control diverse FM radio receiver chips in Arduino projects.
|
Implementation for the radio library to control the RDA5807M radio chip. More...
Implementation for the radio library to control the RDA5807M radio chip.
This library enables the use of the radio chip RDA5807M from http://www.rdamicro.com/.
More documentation and source code is available at http://www.mathertel.de/Arduino
#define FREQ_STEPS 10 |
#define I2C_INDX 0x11 |
#define I2C_SEQ 0x10 |
#define RADIO_REG_CHAN 0x03 |
#define RADIO_REG_CHAN_BAND 0x000C |
#define RADIO_REG_CHAN_BAND_FM 0x0000 |
#define RADIO_REG_CHAN_BAND_FMWORLD 0x0008 |
#define RADIO_REG_CHAN_NR 0x7FC0 |
#define RADIO_REG_CHAN_SPACE 0x0003 |
#define RADIO_REG_CHAN_SPACE_100 0x0000 |
#define RADIO_REG_CHAN_TUNE 0x0010 |
#define RADIO_REG_CHIPID 0x00 |
#define RADIO_REG_CTRL 0x02 |
#define RADIO_REG_CTRL_BASS 0x1000 |
#define RADIO_REG_CTRL_ENABLE 0x0001 |
#define RADIO_REG_CTRL_MONO 0x2000 |
#define RADIO_REG_CTRL_NEW 0x0004 |
#define RADIO_REG_CTRL_OUTPUT 0x8000 |
#define RADIO_REG_CTRL_RDS 0x0008 |
#define RADIO_REG_CTRL_RESET 0x0002 |
#define RADIO_REG_CTRL_SEEK 0x0100 |
#define RADIO_REG_CTRL_SEEKUP 0x0200 |
#define RADIO_REG_CTRL_UNMUTE 0x4000 |
#define RADIO_REG_R4 0x04 |
#define RADIO_REG_R4_AFC 0x0100 |
#define RADIO_REG_R4_EM50 0x0800 |
#define RADIO_REG_R4_SOFTMUTE 0x0200 |
#define RADIO_REG_RA 0x0A |
#define RADIO_REG_RA_NR 0x03FF |
#define RADIO_REG_RA_RDS 0x8000 |
#define RADIO_REG_RA_RDSBLOCK 0x0800 |
#define RADIO_REG_RA_STEREO 0x0400 |
#define RADIO_REG_RB 0x0B |
#define RADIO_REG_RB_FMREADY 0x0080 |
#define RADIO_REG_RB_FMTRUE 0x0100 |
#define RADIO_REG_RDSA 0x0C |
#define RADIO_REG_RDSB 0x0D |
#define RADIO_REG_RDSC 0x0E |
#define RADIO_REG_RDSD 0x0F |
#define RADIO_REG_VOL 0x05 |
#define RADIO_REG_VOL_VOL 0x000F |