![]() |
Arduino Radio Library
0.9
A set of Arduino libraries to control diverse FM radio receiver chips in Arduino projects.
|
Library for parsing RDS data values and extracting information. More...
#include <RDSParser.h>
Public Member Functions | |
| RDSParser () | |
| create a new object from this class. More... | |
| void | init () |
| Initialize internal variables before starting or after a change to another channel. More... | |
| void | processData (uint16_t block1, uint16_t block2, uint16_t block3, uint16_t block4) |
| Pass all available RDS data through this function. More... | |
| void | attachServicenNameCallback (receiveServicenNameFunction newFunction) |
| Register function for displaying a new Service Name. More... | |
| void | attachTextCallback (receiveTextFunction newFunction) |
| Register the function for displaying a rds text. More... | |
| void | attachTimeCallback (receiveTimeFunction newFunction) |
| Register function for displaying a new time. More... | |
Private Attributes | |
| uint8_t | rdsGroupType |
| uint8_t | rdsTP |
| uint8_t | rdsPTY |
| uint8_t | _textAB |
| uint8_t | _last_textAB |
| uint8_t | _lastTextIDX |
| char | _PSName1 [10] |
| char | _PSName2 [10] |
| char | programServiceName [10] |
| receiveServicenNameFunction | _sendServiceName |
| Registered ServiceName function. More... | |
| receiveTimeFunction | _sendTime |
| Registered Time function. More... | |
| receiveTextFunction | _sendText |
| uint16_t | _lastRDSMinutes |
| last RDS time send to callback. More... | |
| char | _RDSText [64+2] |
Library for parsing RDS data values and extracting information.
| RDSParser::RDSParser | ( | ) |
create a new object from this class.
Setup the RDS object and initialize private variables to 0.
| void RDSParser::attachServicenNameCallback | ( | receiveServicenNameFunction | newFunction | ) |
Register function for displaying a new Service Name.
| void RDSParser::attachTextCallback | ( | receiveTextFunction | newFunction | ) |
Register the function for displaying a rds text.
| void RDSParser::attachTimeCallback | ( | receiveTimeFunction | newFunction | ) |
Register function for displaying a new time.
| void RDSParser::init | ( | ) |
Initialize internal variables before starting or after a change to another channel.
| void RDSParser::processData | ( | uint16_t | block1, |
| uint16_t | block2, | ||
| uint16_t | block3, | ||
| uint16_t | block4 | ||
| ) |
Pass all available RDS data through this function.
< RDS time in minutes
< RDS time offset and sign
|
private |
|
private |
last RDS time send to callback.
|
private |
|
private |
|
private |
|
private |
|
private |
Registered ServiceName function.
|
private |
|
private |
Registered Time function.
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.8