aboutsummaryrefslogtreecommitdiffstats
path: root/src/MuxElements.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-06-17 07:50:31 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-06-17 07:50:31 +0200
commit27e489a4b40a139ace3c679215e44f109f006127 (patch)
tree239a8385c059dc9176270fe993276107adaa537e /src/MuxElements.h
parent02bdb2a0eedbb3ffd4870df0c0e69fd5dbcec856 (diff)
downloaddabmux-27e489a4b40a139ace3c679215e44f109f006127.tar.gz
dabmux-27e489a4b40a139ace3c679215e44f109f006127.tar.bz2
dabmux-27e489a4b40a139ace3c679215e44f109f006127.zip
Use enum for transmission mode
Diffstat (limited to 'src/MuxElements.h')
-rw-r--r--src/MuxElements.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/MuxElements.h b/src/MuxElements.h
index 6a1ca74..c5a8faa 100644
--- a/src/MuxElements.h
+++ b/src/MuxElements.h
@@ -193,6 +193,13 @@ class DabSubchannel;
class LinkageSet;
struct FrequencyInformation;
+enum class TransmissionMode_e {
+ TM_I,
+ TM_II,
+ TM_III,
+ TM_IV
+};
+
class dabEnsemble : public RemoteControllable {
public:
dabEnsemble()
@@ -213,7 +220,7 @@ class dabEnsemble : public RemoteControllable {
uint16_t id = 0;
uint8_t ecc = 0;
DabLabel label;
- uint8_t mode = 0;
+ TransmissionMode_e transmission_mode = TransmissionMode_e::TM_I;
/* Use the local time to calculate the lto */
bool lto_auto = true;