F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
RateGroupDriver.hpp
Go to the documentation of this file.
1 
17 #ifndef SVC_RATEGROUPDRIVER_HPP
18 #define SVC_RATEGROUPDRIVER_HPP
19 
20 #include <Fw/FPrimeBasicTypes.hpp>
22 
23 namespace Svc {
24 
31 
34 
35  public:
38 
41  struct Divider {
43  Divider() : divisor(0), offset(0) {}
45  Divider(FwSizeType divisorIn, FwSizeType offsetIn) : divisor(divisorIn), offset(offsetIn) {}
50  };
51 
54  struct DividerSet {
57  };
58 
66  RateGroupDriver(const char* compName);
67 
70 
71  void configure(const DividerSet& dividersSet);
72 
74 
76 
77  private:
80  void CycleIn_handler(FwIndexType portNum, Os::RawTime& cycleStart);
81 
84 
86  FwSizeType m_ticks;
87 
89  FwSizeType m_rollover;
90 
92  bool m_configured;
93 };
94 
95 } // namespace Svc
96 
97 #endif
friend class RateGroupDriverImplTester
Divider()
Initializes divisor and offset to 0 (unused)
PlatformSizeType FwSizeType
Divider(FwSizeType divisorIn, FwSizeType offsetIn)
Initializes divisor and offset to passed-in pair.
Auto-generated base for RateGroupDriver component.
void configure(const DividerSet &dividersSet)
RateGroupDriver configuration function.
RateGroupDriver(const char *compName)
RateGroupDriver constructor.
Implementation class for RateGroupDriver.
Struct describing a divider.
PlatformIndexType FwIndexType
Divider dividers[Svc::RateGroupDriver::DIVIDER_SIZE]
Dividers.
~RateGroupDriver()
RateGroupDriverImpl destructor.
RateGroupDivider component implementation.
static const FwIndexType DIVIDER_SIZE
Size of the divider table, provided as a constants to users passing the table in. ...
Struct containing an array of dividers.