summaryrefslogtreecommitdiffstats
path: root/src/fig/FIGCarousel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fig/FIGCarousel.h')
-rw-r--r--src/fig/FIGCarousel.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/fig/FIGCarousel.h b/src/fig/FIGCarousel.h
index 5e102ad..ac0574d 100644
--- a/src/fig/FIGCarousel.h
+++ b/src/fig/FIGCarousel.h
@@ -39,13 +39,20 @@
namespace FIC {
-struct FIGCarouselElement {
- IFIG* fig;
- int deadline; // unit: ms
+class FIGCarouselElement {
+ public:
+ IFIG* fig;
+ int deadline; // unit: ms
+
+ void reduce_deadline();
+ void increase_deadline();
- void reduce_deadline(void);
+ /* Returns true if the repetition rate changed and the
+ * deadline was recalculated */
+ bool check_deadline();
- void increase_deadline(void);
+ private:
+ FIG_rate m_last_rate = FIG_rate::A;
};
enum class FIBAllocation {