Arduino Radio Library  0.9
A set of Arduino libraries to control diverse FM radio receiver chips in Arduino projects.
Public Member Functions | Private Attributes | List of all members
RDSParser Class Reference

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]
 

Detailed Description

Library for parsing RDS data values and extracting information.

Constructor & Destructor Documentation

RDSParser::RDSParser ( )

create a new object from this class.

Setup the RDS object and initialize private variables to 0.

Member Function Documentation

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

Member Data Documentation

uint8_t RDSParser::_last_textAB
private
uint16_t RDSParser::_lastRDSMinutes
private

last RDS time send to callback.

uint8_t RDSParser::_lastTextIDX
private
char RDSParser::_PSName1[10]
private
char RDSParser::_PSName2[10]
private
char RDSParser::_RDSText[64+2]
private
receiveServicenNameFunction RDSParser::_sendServiceName
private

Registered ServiceName function.

receiveTextFunction RDSParser::_sendText
private
receiveTimeFunction RDSParser::_sendTime
private

Registered Time function.

uint8_t RDSParser::_textAB
private
char RDSParser::programServiceName[10]
private
uint8_t RDSParser::rdsGroupType
private
uint8_t RDSParser::rdsPTY
private
uint8_t RDSParser::rdsTP
private

The documentation for this class was generated from the following files: