PU2CLR RDA5807 Arduino Library 1.1.3
Arduino Library for RDA5807 Devices - By Ricardo Lima Caratti
Loading...
Searching...
No Matches
Basic Functions

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.
 

Detailed Description

Basic

Function Documentation

◆ setDelayAfterCrystalOn()

void RDA5807::setDelayAfterCrystalOn ( uint8_t  ms_value)
inline

Set the Delay After Crystal On (default 500ms)

Parameters
ms_valueValue in milliseconds

Definition at line 620 of file RDA5807.h.

◆ setI2CBusAddrs()

void RDA5807::setI2CBusAddrs ( int  directAccess,
int  fullAccess 
)
inline

Sets alternatives I2C bus address.

You do not need use this function on RDA5807M

Parameters
directAccess
fullAccess

Definition at line 629 of file RDA5807.h.

References RDA5807::deviceAddressDirectAccess, and RDA5807::deviceAddressFullAccess.

◆ getStatusRegisters()

void RDA5807::getStatusRegisters ( )

Gets all current device status and RDS information registers (From 0x0A to 0x0F)

See also
RDA5807M - SINGLE-CHIP BROADCAST FMRADIO TUNER; pages 5, 9, 12 and 13.
rda_reg0a, rda_reg0b, rda_reg0c, rda_reg0d, rda_reg0e, rda_reg0f
shadowStatusRegisters;

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().

◆ getStatus()

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

Returns
rdax_reg0a the reference to current value of the 0x0A register.

Definition at line 85 of file RDA5807.cpp.

◆ setRegister()

void RDA5807::setRegister ( uint8_t  reg,
uint16_t  value 
)

Sets a given value to a specific device register.

See also
RDA5807M - SINGLE-CHIP BROADCAST FMRADIO TUNER; pages 5, 9, 10 and 11.
rda_reg02, rda_reg03, rda_reg04, rda_reg05, rda_reg06, rda_reg07
Parameters
regregister number (valid values is between 0x02 and 0x07)
valuethe unsigned 16 bits word value (see rda_rec0x data types)

Definition at line 115 of file RDA5807.cpp.

◆ waitAndFinishTune()

void RDA5807::waitAndFinishTune ( )

Waits for Seek or Tune finish.

Definition at line 133 of file RDA5807.cpp.

Referenced by RDA5807::seek(), and RDA5807::setChannel().

◆ softReset()

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.

◆ powerUp()

void RDA5807::powerUp ( )

Powers the receiver on.

Definition at line 156 of file RDA5807.cpp.

Referenced by RDA5807::setup().

◆ setNewDemodulateMethod()

void RDA5807::setNewDemodulateMethod ( bool  value)

Sets new demodulate method. It can improve the receiver sensitivity about 1dB.

Parameters
valuetrue or false

Definition at line 188 of file RDA5807.cpp.

◆ powerDown()

void RDA5807::powerDown ( )

Power the receiver off.

Definition at line 197 of file RDA5807.cpp.

◆ setup()

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

Parameters
clock_typeClock used.
oscillator_typeoptional. Sets the Oscillator type used (default: passive Crystal).

Definition at line 214 of file RDA5807.cpp.

References RDA5807::powerUp().