File: rds_encoder.block.yml

package info (click to toggle)
gr-rds 3.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,648 kB
  • sloc: cpp: 18,916; python: 9,650; ansic: 26; makefile: 10
file content (117 lines) | stat: -rw-r--r-- 3,895 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# auto-generated by grc.converter

id: rds_encoder
label: RDS Encoder
category: '[RDS]'

parameters:
-   id: pty_locale
    label: PTY Locale
    dtype: int
    default: '0'
    options: ['0', '1']
    option_labels: [Europe, North America]
-   id: pty
    label: PTY
    dtype: int
    default: '14'
    options: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12',
        '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25',
        '26', '27', '28', '29', '30', '31']
    option_labels: [Undefined, 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\u2019s 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]
-   id: ms
    label: MS
    dtype: bool
    default: 'True'
    options: ['True', 'False']
    option_labels: [Music, Speech]
-   id: ps
    label: PS
    dtype: string
    default: WDR 3
-   id: af1
    label: AF1
    dtype: float
    default: 89.8e6
-   id: tp
    label: TP
    dtype: bool
    default: 'True'
    options: ['True', 'False']
-   id: ta
    label: TA
    dtype: bool
    default: 'False'
    options: ['True', 'False']
-   id: pi_country_code
    label: PI Country Code
    dtype: int
    default: '13'
    options: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13',
        '15']
    option_labels: [Other, DE, DZ, AD, IL, IT, BE, RU, PS, AL, AT, HU, MT, DE, EG]
-   id: pi_coverage_area
    label: PI Coverage Area
    dtype: int
    default: '3'
    options: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12',
        '13', '14', '15']
    option_labels: [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]
    hide: ${ ('all' if str(pi_country_code) == '0' else 'none') }
-   id: pi_reference_number
    label: ${ ('PI Code' if str(pi_country_code) == '0' else 'PI Program Reference Number') }
    dtype: int
    default: '147'
-   id: radiotext
    label: Radiotext
    dtype: string
    default: GNU Radio <3
-   id: max_latency
    label: Max. latency (bits)
    dtype: int
    default: '-1'

inputs:
-   domain: message
    id: rds in
    optional: true
-   domain: message
    id: strobe
    optional: true

outputs:
-   domain: stream
    dtype: byte

templates:
    imports: import rds
    make: "rds.encoder(${pty_locale}, ${pty}, ${ms}, ${ps}, ${af1},\n\t\t\t${tp},\
        \ ${ta}, ${pi_country_code}, ${pi_coverage_area},\n\t\t\t${pi_reference_number},\
        \ ${radiotext}, ${max_latency})\n\t"
    callbacks:
    - set_ps(${ps})

documentation: |-
    PTY: Program Type (depending on PTY locale)
    MS: Speech/Music
    PS: Program Service Name
    AF: Alternate Frequency
    TP: Traffic Program
    TA: Traffic Announcment
    PI: Program Identification (country code, coverage area, reference number)
    Radiotext: Radiotext (obviously)
    Max. latency: Maximum number of bits that will be sent by the RDS Encoder before receiving an acknowledgement message from the downstream "Latency Tag to Message" block; use -1 for unlimited

file_format: 1