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/MuxElements.h | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'src/MuxElements.h') diff --git a/src/MuxElements.h b/src/MuxElements.h index 0eabb69..7f1b828 100644 --- a/src/MuxElements.h +++ b/src/MuxElements.h @@ -191,7 +191,7 @@ class DabService; class DabComponent; class DabSubchannel; class LinkageSet; -struct FrequencyListEntry; +struct FrequencyInformation; class dabEnsemble : public RemoteControllable { public: @@ -231,7 +231,7 @@ class dabEnsemble : public RemoteControllable { std::vector > clusters; std::vector > linkagesets; - std::vector > frequency_information; + std::vector > frequency_information; }; @@ -487,29 +487,33 @@ struct FrequencyInfoDab { disjoint_mode1 = 3}; struct ListElement { + std::string uid; ControlField_e control_field; float frequency; }; + uint16_t eid; std::vector frequencies; }; struct FrequencyInfoDrm { - uint8_t drm_service_id; + uint32_t drm_service_id; std::vector frequencies; }; struct FrequencyInfoFm { + uint16_t pi_code; std::vector frequencies; }; struct FrequencyInfoAmss { - uint8_t amss_service_id; + uint32_t amss_service_id; std::vector frequencies; }; struct FrequencyListEntry { - uint16_t id; + std::string uid; + RangeModulation rm; bool continuity; @@ -521,6 +525,14 @@ struct FrequencyListEntry { FrequencyInfoAmss fi_amss; }; +struct FrequencyInformation { + std::string uid; + + // The latest draft spec does not specify the RegionId anymore, it's + // now a reserved field. + std::vector frequency_information; +}; + std::vector::iterator getSubchannel( std::vector& subchannels, int id); -- cgit v1.2.3