diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-04-22 05:18:40 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-04-22 05:18:40 +0200 |
commit | 2009dcd0494a671e2492aa865e690446388c7a5a (patch) | |
tree | 76b2da61393d8f4dbacef2d4474fdee5ea42e056 /src/fig/FIG0_3.cpp | |
parent | dd14214e1ad46b9fa323be7e7e13c55c30085a67 (diff) | |
download | dabmux-2009dcd0494a671e2492aa865e690446388c7a5a.tar.gz dabmux-2009dcd0494a671e2492aa865e690446388c7a5a.tar.bz2 dabmux-2009dcd0494a671e2492aa865e690446388c7a5a.zip |
Move all FIG structures to cpp files, fix FIG0_21 rfa
Diffstat (limited to 'src/fig/FIG0_3.cpp')
-rw-r--r-- | src/fig/FIG0_3.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/fig/FIG0_3.cpp b/src/fig/FIG0_3.cpp index 2e84e20..b85c853 100644 --- a/src/fig/FIG0_3.cpp +++ b/src/fig/FIG0_3.cpp @@ -23,11 +23,38 @@ along with ODR-DabMux. If not, see <http://www.gnu.org/licenses/>. */ +#include "fig/FIG0structs.h" #include "fig/FIG0_3.h" #include "utils.h" namespace FIC { +/* Warning: When bit SCCA_flag is unset(0), the multiplexer R&S does not send + * the SCCA field. But, in the Factum ETI analyzer, if this field is not there, + * it is an error. + */ +struct FIGtype0_3 { + uint8_t SCId_high; + uint8_t SCCA_flag:1; + uint8_t rfa:3; + uint8_t SCId_low:4; + uint8_t DSCTy:6; + uint8_t rfu:1; + uint8_t DG_flag:1; + uint8_t Packet_address_high:2; + uint8_t SubChId:6; + uint8_t Packet_address_low; + uint16_t SCCA; + void setSCId(uint16_t SCId) { + SCId_high = SCId >> 4; + SCId_low = SCId & 0xf; + } + void setPacketAddress(uint16_t address) { + Packet_address_high = address >> 8; + Packet_address_low = address & 0xff; + } +} PACKED; + FIG0_3::FIG0_3(FIGRuntimeInformation *rti) : m_rti(rti), m_initialised(false) |