aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig/FIG0_13.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2022-03-17 19:28:34 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-03-17 19:32:24 +0100
commitd2a4c375f1ef7af7c7bc4f02ad2dc0d919f2c488 (patch)
treee6efc78727f45627d246708661343fcfc9f9d6b8 /src/fig/FIG0_13.cpp
parent75cbae6e7446686ff36fae15016b3f8eb76b1ad6 (diff)
downloaddabmux-d2a4c375f1ef7af7c7bc4f02ad2dc0d919f2c488.tar.gz
dabmux-d2a4c375f1ef7af7c7bc4f02ad2dc0d919f2c488.tar.bz2
dabmux-d2a4c375f1ef7af7c7bc4f02ad2dc0d919f2c488.zip
Setup FIG0/13 for Broadcast Website with profiles 01 FF
Diffstat (limited to 'src/fig/FIG0_13.cpp')
-rw-r--r--src/fig/FIG0_13.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/fig/FIG0_13.cpp b/src/fig/FIG0_13.cpp
index da21cbf..aa0be1e 100644
--- a/src/fig/FIG0_13.cpp
+++ b/src/fig/FIG0_13.cpp
@@ -168,12 +168,18 @@ FillStatus FIG0_13::fill(uint8_t *buf, size_t max_size)
if (ua.uaType == FIG0_13_APPTYPE_SPI) {
app->length += 1;
}
+ else if (ua.uaType == FIG0_13_APPTYPE_WEBSITE) {
+ app->length += 2;
+ }
buf += sizeof(FIG0_13_app);
remaining -= sizeof(FIG0_13_app);
fig0->Length += sizeof(FIG0_13_app);
- if (m_transmit_programme) {
+ if (m_transmit_programme and !ua.xpadAppType_valid) {
+ throw MuxInitException("FIG0/13 combination unsupported");
+ }
+ else if (m_transmit_programme and ua.xpadAppType_valid) {
const uint8_t dscty = 60; // TS 101 756 Table 2b (MOT)
const uint16_t xpadapp = htons((ua.xpadAppType << 8) | dscty);
/* xpad meaning
@@ -198,6 +204,13 @@ FillStatus FIG0_13::fill(uint8_t *buf, size_t max_size)
remaining -= 1;
fig0->Length += 1;
}
+ else if (ua.uaType == FIG0_13_APPTYPE_WEBSITE) {
+ buf[0] = 0x01; // = basic integrated receiver profile
+ buf[1] = 0xFF; // = unrestricted (PC) profile
+ buf += 2;
+ remaining -= 2;
+ fig0->Length += 2;
+ }
}
}
}