![]() |
PU2CLR SI470X Arduino Library
1.0.1
Arduino Library for Si470X Devices - By Ricardo Lima Caratti
|
Functions | |
void | SI470X::getRdsStatus () |
Gets the RDS registers information. More... | |
void | SI470X::setRdsMode (uint8_t rds_mode=0) |
Sets the Rds Mode Standard or Verbose. More... | |
void | SI470X::setRds (bool value) |
Sets the RDS operation. More... | |
bool | SI470X::getRdsReady () |
Returns true if RDS Ready. More... | |
uint8_t | SI470X::getRdsFlagAB (void) |
Returns the current Text Flag A/B More... | |
uint16_t | SI470X::getRdsGroupType () |
Return the group type. More... | |
uint8_t | SI470X::getRdsVersionCode (void) |
Gets the version code (extracted from the Block B) More... | |
uint8_t | SI470X::getRdsProgramType (void) |
Returns the Program Type (extracted from the Block B) More... | |
void | SI470X::getNext2Block (char *c) |
Process data received from group 2B. More... | |
void | SI470X::getNext4Block (char *c) |
Process data received from group 2A. More... | |
char * | SI470X::getRdsText (void) |
Gets the RDS Text when the message is of the Group Type 2 version A. More... | |
char * | SI470X::getRdsText0A (void) |
Gets the station name and other messages. More... | |
char * | SI470X::getRdsText2A (void) |
Gets the Text processed for the 2A group. More... | |
char * | SI470X::getRdsText2B (void) |
Gets the Text processed for the 2B group. More... | |
char * | SI470X::getRdsTime () |
Gets the RDS time and date when the Group type is 4. More... | |
bool | SI470X::getRdsSync () |
Get the Rds Sync. More... | |
void SI470X::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];
Referenced by SI470X::getRdsGroupType(), SI470X::getRdsText(), SI470X::getRdsText0A(), SI470X::getRdsText2A(), SI470X::getRdsText2B(), and SI470X::getRdsTime().
void SI470X::setRdsMode | ( | uint8_t | rds_mode = 0 | ) |
Sets the Rds Mode Standard or Verbose.
rds_mode | 0 = Standard (default); 1 = Verbose |
void SI470X::setRds | ( | bool | value | ) |
Sets the RDS operation.
Enable or Disable the RDS
true | = turns the RDS ON; false = turns the RDS OFF |
bool SI470X::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.
References SI470X::getStatus().
uint8_t SI470X::getRdsFlagAB | ( | void | ) |
Returns the current Text Flag A/B
uint16_t SI470X::getRdsGroupType | ( | ) |
uint8_t SI470X::getRdsVersionCode | ( | void | ) |
Gets the version code (extracted from the Block B)
uint8_t SI470X::getRdsProgramType | ( | void | ) |
Returns the Program Type (extracted from the Block B)
void SI470X::getNext2Block | ( | char * | c | ) |
Process data received from group 2B.
c | char array reference to the "group 2B" text |
Referenced by SI470X::getRdsText0A(), and SI470X::getRdsText2B().
void SI470X::getNext4Block | ( | char * | c | ) |
Process data received from group 2A.
c | char array reference to the "group 2A" text |
Referenced by SI470X::getRdsText(), and SI470X::getRdsText2A().
char * SI470X::getRdsText | ( | void | ) |
Gets the RDS Text when the message is of the Group Type 2 version A.
References SI470X::getNext4Block(), SI470X::getRdsStatus(), and SI470X::rds_buffer2A.
char * SI470X::getRdsText0A | ( | void | ) |
Gets the station name and other messages.
References SI470X::getNext2Block(), SI470X::getRdsStatus(), and SI470X::rds_buffer0A.
char * SI470X::getRdsText2A | ( | void | ) |
Gets the Text processed for the 2A group.
@
References SI470X::getNext4Block(), SI470X::getRdsStatus(), and SI470X::rds_buffer2A.
char * SI470X::getRdsText2B | ( | void | ) |
Gets the Text processed for the 2B group.
References SI470X::getNext2Block(), SI470X::getRdsStatus(), and SI470X::rds_buffer2B.
char * SI470X::getRdsTime | ( | ) |
Gets the RDS time and date when the Group type is 4.
References SI470X::getRdsStatus(), and SI470X::rds_time.
bool SI470X::getRdsSync | ( | ) |
Get the Rds Sync.
Returns true if RDS currently synchronized.
References SI470X::getStatus().