![]() |
PU2CLR RDA5807 Arduino Library 1.1.3
Arduino Library for RDA5807 Devices - By Ricardo Lima Caratti
|
Functions | |
void | RDA5807::setRDS (bool value) |
Sets the RDS operation. | |
void | RDA5807::setRBDS (bool value) |
Sets the RBDS operation. | |
bool | RDA5807::getRdsReady () |
Returns true if RDS Ready. | |
uint8_t | RDA5807::getRdsFlagAB (void) |
Returns the current Text Flag A/B | |
uint16_t | RDA5807::getRdsGroupType () |
Return the group type. | |
uint8_t | RDA5807::getRdsVersionCode (void) |
Gets the version code (extracted from the Block B) | |
uint8_t | RDA5807::getRdsProgramType (void) |
Returns the Program Type (extracted from the Block B) | |
void | RDA5807::getNext2Block (char *c) |
Process data received from group 2B. | |
void | RDA5807::getNext4Block (char *c) |
Process data received from group 2A. | |
char * | RDA5807::getRdsText (void) |
Gets the RDS Text when the message is of the Group Type 2 version A. | |
char * | RDA5807::getRdsText0A (void) |
Gets the station name and other messages. | |
char * | RDA5807::getRdsText2A (void) |
Gets the Text processed for the 2A group. | |
char * | RDA5807::getRdsText2B (void) |
Gets the Text processed for the 2B group. | |
char * | RDA5807::getRdsTime () |
Gets the RDS time and date when the Group type is 4. | |
bool | RDA5807::getRdsSync () |
Get the Rds Sync. | |
uint8_t | RDA5807::getBlockId () |
Get the current Block ID. | |
uint8_t | RDA5807::getErrorBlockB () |
Get the current Status of block B. | |
bool | RDA5807::hasRdsInfo () |
Returns true when the RDS system has valid information. | |
void | RDA5807::setRdsFifo (bool value) |
Sets RDS fifo mode enable. | |
void | RDA5807::clearRdsFifo () |
Clear RDS fifo. | |
void RDA5807::setRDS | ( | bool | value | ) |
Sets the RDS operation.
Enable or Disable the RDS
true | = turns the RDS ON; false = turns the RDS OFF |
Definition at line 572 of file RDA5807.cpp.
void RDA5807::setRBDS | ( | bool | value | ) |
Sets the RBDS operation.
Enable or Disable the RDS
true | = turns the RBDS ON; false = turns the RBDS OFF |
Definition at line 586 of file RDA5807.cpp.
bool RDA5807::getRdsReady | ( | ) |
Returns true if RDS Ready.
Read address 0Ah and check the bit RDSR.
When using the polling method, it is best not to poll continuously. The data will appear in intervals.
Definition at line 604 of file RDA5807.cpp.
uint8_t RDA5807::getRdsFlagAB | ( | void | ) |
Returns the current Text Flag A/B
Definition at line 617 of file RDA5807.cpp.
References RDA5807::getStatusRegisters().
uint16_t RDA5807::getRdsGroupType | ( | ) |
Return the group type.
Definition at line 631 of file RDA5807.cpp.
References RDA5807::getStatusRegisters().
uint8_t RDA5807::getRdsVersionCode | ( | void | ) |
Gets the version code (extracted from the Block B)
Definition at line 646 of file RDA5807.cpp.
References RDA5807::getStatusRegisters().
uint8_t RDA5807::getRdsProgramType | ( | void | ) |
Returns the Program Type (extracted from the Block B)
<>
Definition at line 660 of file RDA5807.cpp.
References RDA5807::getStatusRegisters().
void RDA5807::getNext2Block | ( | char * | c | ) |
Process data received from group 2B.
c | char array reference to the "group 2B" text |
Definition at line 674 of file RDA5807.cpp.
Referenced by RDA5807::getRdsText0A(), and RDA5807::getRdsText2B().
void RDA5807::getNext4Block | ( | char * | c | ) |
Process data received from group 2A.
c | char array reference to the "group 2A" text |
Definition at line 711 of file RDA5807.cpp.
Referenced by RDA5807::getRdsText(), and RDA5807::getRdsText2A().
char * RDA5807::getRdsText | ( | void | ) |
Gets the RDS Text when the message is of the Group Type 2 version A.
Definition at line 750 of file RDA5807.cpp.
References RDA5807::getNext4Block(), and RDA5807::getStatusRegisters().
char * RDA5807::getRdsText0A | ( | void | ) |
Gets the station name and other messages.
Definition at line 776 of file RDA5807.cpp.
References RDA5807::getNext2Block(), and RDA5807::getStatusRegisters().
char * RDA5807::getRdsText2A | ( | void | ) |
Gets the Text processed for the 2A group.
@
Definition at line 805 of file RDA5807.cpp.
References RDA5807::getNext4Block(), and RDA5807::getStatusRegisters().
char * RDA5807::getRdsText2B | ( | void | ) |
Gets the Text processed for the 2B group.
Definition at line 834 of file RDA5807.cpp.
References RDA5807::getNext2Block(), and RDA5807::getStatusRegisters().
char * RDA5807::getRdsTime | ( | ) |
Gets the RDS time and date when the Group type is 4.
Definition at line 860 of file RDA5807.cpp.
References RDA5807::getStatusRegisters().
bool RDA5807::getRdsSync | ( | ) |
Get the Rds Sync.
Returns true if RDS currently synchronized.
Definition at line 918 of file RDA5807.cpp.
uint8_t RDA5807::getBlockId | ( | ) |
Get the current Block ID.
1= the block id of register 0cH,0dH,0eH,0fH is E
0= the block id of register 0cH, 0dH, 0eH,0fH is A, B, C, D
Definition at line 931 of file RDA5807.cpp.
uint8_t RDA5807::getErrorBlockB | ( | ) |
Get the current Status of block B.
Block Errors Level of RDS_DATA_1, and is always read as Errors Level of RDS BLOCK B (in RDS mode ) or E (in RBDS mode when ABCD_E flag is 1).
value | description |
---|---|
00 | 0 errors requiring correction |
01 | 1~2 errors requiring correction |
10 | 3~5 errors requiring correction |
11 | 6+ errors or error in checkword, correction not possible |
Available only in RDS Verbose mode
Definition at line 953 of file RDA5807.cpp.
bool RDA5807::hasRdsInfo | ( | ) |
Returns true when the RDS system has valid information.
Returns true if RDS currently synchronized; the information are A, B, C and D blocks; and no errors
Definition at line 965 of file RDA5807.cpp.
void RDA5807::setRdsFifo | ( | bool | value | ) |
Sets RDS fifo mode enable.
value | If true, it makes the the fifo mode enable. |
Definition at line 977 of file RDA5807.cpp.
void RDA5807::clearRdsFifo | ( | ) |
Clear RDS fifo.
value | If true, it makes the the fifo mode enable. |
Definition at line 989 of file RDA5807.cpp.