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 
21 #include <Fw/FPrimeBasicTypes.hpp>
22 
23 namespace Svc {
24 
31 
33 
35 
36  public:
39 
42  struct Divider{
44  Divider() : divisor(0), offset(0)
45  {}
47  Divider(FwSizeType divisorIn, FwSizeType offsetIn) :
48  divisor(divisorIn), offset(offsetIn)
49  {}
54  };
55 
58  struct DividerSet {
61  };
62 
70  RateGroupDriver(const char* compName);
71 
74 
75  void configure(const DividerSet& dividersSet);
76 
78 
80 
81  private:
82 
85  void CycleIn_handler(FwIndexType portNum, Os::RawTime& cycleStart);
86 
89 
91  FwSizeType m_ticks;
92 
94  FwSizeType m_rollover;
95 
97  bool m_configured;
98  };
99 
100 }
101 
102 #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.