aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-07 10:54:59 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-07 10:54:59 +0200
commit477345c3411cbf25ac6a1011845eca067f6e75bf (patch)
tree0c66c966bc4edf22766e959709ab71a247b0f1b3
parentf5828b83d39757d24c8fe18eeac99fdd6e711fba (diff)
downloaddabmux-477345c3411cbf25ac6a1011845eca067f6e75bf.tar.gz
dabmux-477345c3411cbf25ac6a1011845eca067f6e75bf.tar.bz2
dabmux-477345c3411cbf25ac6a1011845eca067f6e75bf.zip
Move FIG0/17 to rate A_B
-rw-r--r--src/fig/FIG.h12
-rw-r--r--src/fig/FIG0.h2
2 files changed, 8 insertions, 6 deletions
diff --git a/src/fig/FIG.h b/src/fig/FIG.h
index 6bcb42b..207b299 100644
--- a/src/fig/FIG.h
+++ b/src/fig/FIG.h
@@ -54,11 +54,12 @@ enum class FIG_rate {
every fourth transmission frame. In transmission mode IV, this should be the
first FIB (of the three) associated with the first CIF (of the two) in every
alternate transmission frame (see clause 5.1). */
- A, // at least 10 times per second
- B, // once per second
- C, // once every 10 seconds
- D, // less than once every 10 seconds
- E, // all in two minutes
+ A, // at least 10 times per second
+ A_B, // between 10 times and once per second
+ B, // once per second
+ C, // once every 10 seconds
+ D, // less than once every 10 seconds
+ E, // all in two minutes
};
/* Helper function to calculate the deadline for the next transmission, in milliseconds */
@@ -67,6 +68,7 @@ inline int rate_increment_ms(FIG_rate rate)
switch (rate) {
case FIG_rate::FIG0_0: return 96; // Is a special case
case FIG_rate::A: return 100;
+ case FIG_rate::A_B: return 200;
case FIG_rate::B: return 1000;
case FIG_rate::C: return 10000;
case FIG_rate::D: return 30000;
diff --git a/src/fig/FIG0.h b/src/fig/FIG0.h
index 1ba59df..8797931 100644
--- a/src/fig/FIG0.h
+++ b/src/fig/FIG0.h
@@ -108,7 +108,7 @@ class FIG0_17 : public IFIG
public:
FIG0_17(FIGRuntimeInformation* rti);
virtual FillStatus fill(uint8_t *buf, size_t max_size);
- virtual FIG_rate repetition_rate(void) { return FIG_rate::A; }
+ virtual FIG_rate repetition_rate(void) { return FIG_rate::A_B; }
virtual const int figtype(void) const { return 0; }
virtual const int figextension(void) const { return 17; }