summaryrefslogtreecommitdiffstats
path: root/src/fig/FIG0structs.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-30 17:10:43 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-30 17:10:43 +0200
commitf198d1a2c799c97fe1e4e92e110cc0782f6f7880 (patch)
tree04a5f7599de5310ca73e3bb65a38c321e84de506 /src/fig/FIG0structs.h
parent0360110bfb7320f3310737b6b75da5f8cd96edb9 (diff)
downloaddabmux-f198d1a2c799c97fe1e4e92e110cc0782f6f7880.tar.gz
dabmux-f198d1a2c799c97fe1e4e92e110cc0782f6f7880.tar.bz2
dabmux-f198d1a2c799c97fe1e4e92e110cc0782f6f7880.zip
Add some FIG0/6 structures and skeleton
Diffstat (limited to 'src/fig/FIG0structs.h')
-rw-r--r--src/fig/FIG0structs.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/fig/FIG0structs.h b/src/fig/FIG0structs.h
index a1e79d3..4b9b7e0 100644
--- a/src/fig/FIG0structs.h
+++ b/src/fig/FIG0structs.h
@@ -152,6 +152,25 @@ struct FIGtype0_5_short {
uint8_t language;
} PACKED;
+struct FIGtype0_6 {
+ uint16_t IdListFlag:1;
+ uint16_t LA:1; // Linkage actuator
+ uint16_t SH:1; // 0=Soft link / 1=Hard link
+ uint16_t ILS:1; // 0=national / 1=international
+ uint16_t LSN:12; // Linkage Set Number
+} PACKED;
+
+#define FIG0_6_IDLQ_DAB 0x0
+#define FIG0_6_IDLQ_RDS 0x1
+#define FIG0_6_IDLQ_DRM_AMSS 0x3
+
+struct FIGtype0_6_header {
+ uint8_t rfu:1; // must be 0
+ uint8_t IdLQ:2; // Identifier List Qualifier, see above defines
+ uint8_t rfa:1; // must be 0
+ uint8_t num_ids:4; // number of Ids to follow in the list
+} PACKED;
+
struct FIGtype0_8_short {
uint8_t SCIdS:4;
uint8_t rfa_1:3;