![]() |
PU2CLR RDA5807 Arduino Library 1.1.3
Arduino Library for RDA5807 Devices - By Ricardo Lima Caratti
|
Functions | |
void | RDA5807::setDelayAfterCrystalOn (uint8_t ms_value) |
Set the Delay After Crystal On (default 500ms) | |
void | RDA5807::setI2CBusAddrs (int directAccess, int fullAccess) |
Sets alternatives I2C bus address. | |
void | RDA5807::getStatusRegisters () |
Gets all current device status and RDS information registers (From 0x0A to 0x0F) | |
void * | RDA5807::getStatus (uint8_t reg) |
Gets the register content of a given status register (from 0x0A to 0x0F) | |
void | RDA5807::setRegister (uint8_t reg, uint16_t value) |
Sets a given value to a specific device register. | |
void | RDA5807::waitAndFinishTune () |
Waits for Seek or Tune finish. | |
void | RDA5807::softReset () |
Resets the device. | |
void | RDA5807::powerUp () |
Powers the receiver on. | |
void | RDA5807::setNewDemodulateMethod (bool value) |
Sets new demodulate method. It can improve the receiver sensitivity about 1dB. | |
void | RDA5807::powerDown () |
Power the receiver off. | |
void | RDA5807::setup (uint8_t clock_type=CLOCK_32K, uint8_t oscillator_type=OSCILLATOR_TYPE_CRYSTAL) |
Starts the device. | |
|
inline |
|
inline |
Sets alternatives I2C bus address.
You do not need use this function on RDA5807M
directAccess | |
fullAccess |
Definition at line 629 of file RDA5807.h.
References RDA5807::deviceAddressDirectAccess, and RDA5807::deviceAddressFullAccess.
void RDA5807::getStatusRegisters | ( | ) |
Gets all current device status and RDS information registers (From 0x0A to 0x0F)
Definition at line 64 of file RDA5807.cpp.
Referenced by RDA5807::getRdsFlagAB(), RDA5807::getRdsGroupType(), RDA5807::getRdsProgramType(), RDA5807::getRdsText(), RDA5807::getRdsText0A(), RDA5807::getRdsText2A(), RDA5807::getRdsText2B(), RDA5807::getRdsTime(), and RDA5807::getRdsVersionCode().
void * RDA5807::getStatus | ( | uint8_t | reg | ) |
Gets the register content of a given status register (from 0x0A to 0x0F)
Useful when you need just a specific status register content.
This methos update the first element of the shadowStatusRegisters linked to the register
Definition at line 85 of file RDA5807.cpp.
void RDA5807::setRegister | ( | uint8_t | reg, |
uint16_t | value | ||
) |
Sets a given value to a specific device register.
reg | register number (valid values is between 0x02 and 0x07) |
value | the unsigned 16 bits word value (see rda_rec0x data types) |
Definition at line 115 of file RDA5807.cpp.
void RDA5807::waitAndFinishTune | ( | ) |
Waits for Seek or Tune finish.
Definition at line 133 of file RDA5807.cpp.
Referenced by RDA5807::seek(), and RDA5807::setChannel().
void RDA5807::softReset | ( | ) |
Resets the device.
The RDA5807M is RESET itself When VIO is Power up.
Also, it support soft reset by triggering the 0x02 register (rda_reg02) bit 1 from 0 to 1.
Definition at line 146 of file RDA5807.cpp.
void RDA5807::powerUp | ( | ) |
void RDA5807::setNewDemodulateMethod | ( | bool | value | ) |
Sets new demodulate method. It can improve the receiver sensitivity about 1dB.
value | true or false |
Definition at line 188 of file RDA5807.cpp.
void RDA5807::powerDown | ( | ) |
Power the receiver off.
Definition at line 197 of file RDA5807.cpp.
void RDA5807::setup | ( | uint8_t | clock_type = CLOCK_32K , |
uint8_t | oscillator_type = OSCILLATOR_TYPE_CRYSTAL |
||
) |
Starts the device.
You can select the colck type and the frequency
Occilator type: OSCILLATOR_TYPE_CRYSTAL = passive crystal; OSCILLATOR_TYPE_REFCLK = active crystal or signal generator
Clock type: CLOCK_32K, CLOCK_12M, CLOCK_13M, CLOCK_19_2M, CLOCK_24M, CLOCK_26M and CLOCK_38_4M
clock_type | Clock used. |
oscillator_type | optional. Sets the Oscillator type used (default: passive Crystal). |
Definition at line 214 of file RDA5807.cpp.
References RDA5807::powerUp().