From f6803b2375d1b21ed4cc035e268f8759d5170491 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 20 Apr 2017 05:22:08 +0200 Subject: WIP: Rework FIG0/21 definition and get FIC insertion to compile --- src/fig/FIG0structs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/fig/FIG0structs.h') 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 -- cgit v1.2.3