summaryrefslogtreecommitdiffstats
path: root/src/fig/FIG0structs.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-04-20 05:22:08 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-04-20 05:22:08 +0200
commitf6803b2375d1b21ed4cc035e268f8759d5170491 (patch)
treede666c74444fb024cbe0fc2907636febaf1d53b1 /src/fig/FIG0structs.h
parent2a8e60cd761d1f3728c765d646135b2110eea576 (diff)
downloaddabmux-f6803b2375d1b21ed4cc035e268f8759d5170491.tar.gz
dabmux-f6803b2375d1b21ed4cc035e268f8759d5170491.tar.bz2
dabmux-f6803b2375d1b21ed4cc035e268f8759d5170491.zip
WIP: Rework FIG0/21 definition and get FIC insertion to compile
Diffstat (limited to 'src/fig/FIG0structs.h')
-rw-r--r--src/fig/FIG0structs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fig/FIG0structs.h b/src/fig/FIG0structs.h
index f06cc0e..ac2f233 100644
--- a/src/fig/FIG0structs.h
+++ b/src/fig/FIG0structs.h
@@ -380,6 +380,17 @@ struct FIGtype0_21_fi_list_header {
uint8_t length_freq_list:3;
} PACKED;
+struct FIGtype0_21_fi_dab_entry {
+ uint8_t control_field:5;
+ uint8_t freqHigh:3;
+ uint16_t freqLow;
+
+ void setFreq(uint32_t freq) {
+ freqHigh = (freq >> 16) & 0x7;
+ freqLow = freq & 0xffff;
+ }
+} PACKED;
+
#ifdef _WIN32
# pragma pack(pop)
#endif