![]() |
PU2CLR BK108X Arduino Library 1.0.2
This is an Arduino Library to control the BK108X device
|
Functions | |
void | BK108X::getRdsStatus () |
Gets the RDS registers information. | |
void | BK108X::setRdsMode (uint8_t rds_mode=0) |
Sets the Rds Mode Standard or Verbose. | |
void | BK108X::setRds (bool value) |
Sets the RDS operation. | |
bool | BK108X::getRdsReady () |
Returns true if RDS Ready. | |
uint8_t | BK108X::getRdsFlagAB (void) |
Returns the current Text Flag A/B | |
uint16_t | BK108X::getRdsGroupType () |
Return the group type. | |
uint8_t | BK108X::getRdsVersionCode (void) |
Gets the version code (extracted from the Block B) | |
uint8_t | BK108X::getRdsProgramType (void) |
Returns the Program Type (extracted from the Block B) | |
void | BK108X::getNext2Block (char *c) |
Process data received from group 2B. | |
void | BK108X::getNext4Block (char *c) |
Process data received from group 2A. | |
char * | BK108X::getRdsText (void) |
Gets the RDS Text when the message is of the Group Type 2 version A. | |
char * | BK108X::getRdsText0A (void) |
Gets the station name and other messages. | |
char * | BK108X::getRdsText2A (void) |
Gets the Text processed for the 2A group. | |
char * | BK108X::getRdsText2B (void) |
Gets the Text processed for the 2B group. | |
char * | BK108X::getRdsTime () |
Gets the RDS time and date when the Group type is 4. | |
bool | BK108X::getRdsSync () |
Get the Rds Sync. | |
void BK108X::getRdsStatus | ( | ) |
Gets the RDS registers information.
Gets the value of the registers from 0x0A to 0x0F
This function also updates the value of shadowRegisters[0];
Definition at line 1058 of file BK108X.cpp.
void BK108X::setRdsMode | ( | uint8_t | rds_mode = 0 | ) |
Sets the Rds Mode Standard or Verbose.
rds_mode | 0 = Standard (default); 1 = Verbose |
Definition at line 1069 of file BK108X.cpp.
void BK108X::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 1081 of file BK108X.cpp.
Referenced by BK108X::setRDS().
bool BK108X::getRdsReady | ( | ) |
Returns true if RDS Ready.
Read address 0Ah and check the bit RDSR.
If in verbose mode, the BLERA bits indicate how many errors were corrected in block A. If BLERA indicates 6 or more errors, the data in RDSA should be discarded.
When using the polling method, it is best not to poll continuously. The data will appear in intervals of ~88 ms and the RDSR indicator will be available for at least 40 ms, so a polling rate of 40 ms or less should be sufficient.
Definition at line 1098 of file BK108X.cpp.
uint8_t BK108X::getRdsFlagAB | ( | void | ) |
Returns the current Text Flag A/B
Definition at line 1111 of file BK108X.cpp.
uint16_t BK108X::getRdsGroupType | ( | ) |
uint8_t BK108X::getRdsVersionCode | ( | void | ) |
Gets the version code (extracted from the Block B)
Definition at line 1133 of file BK108X.cpp.
uint8_t BK108X::getRdsProgramType | ( | void | ) |
Returns the Program Type (extracted from the Block B)
<>
Definition at line 1144 of file BK108X.cpp.
void BK108X::getNext2Block | ( | char * | c | ) |
Process data received from group 2B.
c | char array reference to the "group 2B" text |
Definition at line 1156 of file BK108X.cpp.
References BK108X::rds_buffer2B.
void BK108X::getNext4Block | ( | char * | c | ) |
Process data received from group 2A.
c | char array reference to the "group 2A" text |
Definition at line 1170 of file BK108X.cpp.
References BK108X::rds_buffer2A.
char * BK108X::getRdsText | ( | void | ) |
Gets the RDS Text when the message is of the Group Type 2 version A.
Definition at line 1182 of file BK108X.cpp.
char * BK108X::getRdsText0A | ( | void | ) |
Gets the station name and other messages.
Definition at line 1195 of file BK108X.cpp.
char * BK108X::getRdsText2A | ( | void | ) |
Gets the Text processed for the 2A group.
@
Definition at line 1207 of file BK108X.cpp.
char * BK108X::getRdsText2B | ( | void | ) |
Gets the Text processed for the 2B group.
Definition at line 1217 of file BK108X.cpp.
char * BK108X::getRdsTime | ( | ) |
Gets the RDS time and date when the Group type is 4.
Definition at line 1227 of file BK108X.cpp.
bool BK108X::getRdsSync | ( | ) |
Get the Rds Sync.
Returns true if RDS currently synchronized.
Definition at line 1238 of file BK108X.cpp.