constants.h
Go to the documentation of this file.
/*
* Copyright 2004 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
/* see page 59, Annex C, table C.1 in the standard
* offset word C' has been put at the end */
static const unsigned int offset_pos[5]={0,1,2,3,2};
static const unsigned int offset_word[5]={252,408,360,436,848};
static const unsigned int syndrome[5]={383,14,303,663,748};
static const char * const offset_name[]={"A","B","C","D","C'"};
/* Annex F of RBDS Standard Table F.1 (North America) and
* Table F.2 (Europe) */
const std::string pty_table[32][2]={
{"Undefined", "Undefined"},
{"News", "News"},
{"Current Affairs", "Information"},
{"Information", "Sports"},
{"Sport", "Talk"},
{"Education", "Rock"},
{"Drama", "Classic Rock"},
{"Culture", "Adult Hits"},
{"Science", "Soft Rock"},
{"Varied", "Top 40"},
{"Pop Music", "Country"},
{"Rock Music", "Oldies"},
{"Easy Listening", "Soft"},
{"Light Classical", "Nostalgia"},
{"Serious Classical", "Jazz"},
{"Other Music", "Classical"},
{"Weather", "Rhythm & Blues"},
{"Finance", "Soft Rhythm & Blues"},
{"Children’s Programmes", "Language"},
{"Social Affairs", "Religious Music"},
{"Religion", "Religious Talk"},
{"Phone-In", "Personality"},
{"Travel", "Public"},
{"Leisure", "College"},
{"Jazz Music", "Spanish Talk"},
{"Country Music", "Spanish Music"},
{"National Music", "Hip Hop"},
{"Oldies Music", "Unassigned"},
{"Folk Music", "Unassigned"},
{"Documentary", "Weather"},
{"Alarm Test", "Emergency Test"},
{"Alarm", "Emergency"}};
/* page 71, Annex D, table D.1 in the standard */
const std::string pi_country_codes[15][5]={
{"DE","GR","MA","__","MD"},
{"DZ","CY","CZ","IE","EE"},
{"AD","SM","PL","TR","__"},
{"IL","CH","VA","MK","__"},
{"IT","JO","SK","__","__"},
{"BE","FI","SY","__","UA"},
{"RU","LU","TN","__","__"},
{"PS","BG","__","NL","PT"},
{"AL","DK","LI","LV","SI"},
{"AT","GI","IS","LB","__"},
{"HU","IQ","MC","__","__"},
{"MT","GB","LT","HR","__"},
{"DE","LY","YU","__","__"},
{"__","RO","ES","SE","__"},
{"EG","FR","NO","BY","BA"}};
/* page 72, Annex D, table D.2 in the standard */
const std::string coverage_area_codes[16]={
"Local",
"International",
"National",
"Supra-regional",
"Regional 1",
"Regional 2",
"Regional 3",
"Regional 4",
"Regional 5",
"Regional 6",
"Regional 7",
"Regional 8",
"Regional 9",
"Regional 10",
"Regional 11",
"Regional 12"};
const std::string rds_group_acronyms[16]={
"BASIC",
"PIN/SL",
"RT",
"AID",
"CT",
"TDC",
"IH",
"RP",
"TMC",
"EWS",
"___",
"___",
"___",
"___",
"EON",
"___"};
/* page 74, Annex E, table E.1 in the standard: that's the ASCII table!!! */
/* see page 84, Annex J in the standard */
const std::string language_codes[44]={
"Unknown/not applicable",
"Albanian",
"Breton",
"Catalan",
"Croatian",
"Welsh",
"Czech",
"Danish",
"German",
"English",
"Spanish",
"Esperanto",
"Estonian",
"Basque",
"Faroese",
"French",
"Frisian",
"Irish",
"Gaelic",
"Galician",
"Icelandic",
"Italian",
"Lappish",
"Latin",
"Latvian",
"Luxembourgian",
"Lithuanian",
"Hungarian",
"Maltese",
"Dutch",
"Norwegian",
"Occitan",
"Polish",
"Portuguese",
"Romanian",
"Romansh",
"Serbian",
"Slovak",
"Slovene",
"Finnish",
"Swedish",
"Turkish",
"Flemish",
"Walloon"};
/* see page 12 in ISO 14819-1 */
const std::string tmc_duration[8][2]={
{"no duration given", "no duration given"},
{"15 minutes", "next few hours"},
{"30 minutes", "rest of the day"},
{"1 hour", "until tomorrow evening"},
{"2 hours", "rest of the week"},
{"3 hours", "end of next week"},
{"4 hours", "end of the month"},
{"rest of the day", "long period"}};
/* optional message content, data field lengths and labels
* see page 15 in ISO 14819-1 */
const int optional_content_lengths[16]={3,3,5,5,5,8,8,8,8,11,16,16,16,16,0,0};
const std::string label_descriptions[16]={
"Duration",
"Control code",
"Length of route affected",
"Speed limit advice",
"Quantifier",
"Quantifier",
"Supplementary information code",
"Explicit start time",
"Explicit stop time",
"Additional event",
"Detailed diversion instructions",
"Destination",
"RFU (Reserved for future use)",
"Cross linkage to source of problem, or another route",
"Separator",
"RFU (Reserved for future use)"};
label_descriptions
const std::string label_descriptions[16]
Definition constants.h:185
offset_pos
static const unsigned int offset_pos[5]
Definition constants.h:25
rds_group_acronyms
const std::string rds_group_acronyms[16]
Definition constants.h:103
syndrome
static const unsigned int syndrome[5]
Definition constants.h:27
pi_country_codes
const std::string pi_country_codes[15][5]
Definition constants.h:67
coverage_area_codes
const std::string coverage_area_codes[16]
Definition constants.h:85
pty_table
const std::string pty_table[32][2]
Definition constants.h:32
offset_name
static const char *const offset_name[]
Definition constants.h:28
offset_word
static const unsigned int offset_word[5]
Definition constants.h:26
language_codes
const std::string language_codes[44]
Definition constants.h:124
tmc_duration
const std::string tmc_duration[8][2]
Definition constants.h:171
optional_content_lengths
const int optional_content_lengths[16]
Definition constants.h:183