F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RateGroupDriver.hpp
Go to the documentation of this file.
1 
17 #ifndef SVC_RATEGROUPDRIVER_HPP
18 #define SVC_RATEGROUPDRIVER_HPP
19 
21 #include <FpConfig.hpp>
22 
23 namespace Svc {
24 
31 
33 
34  public:
37 
40  struct Divider{
42  Divider() : divisor(0), offset(0)
43  {}
45  Divider(FwSizeType divisorIn, FwSizeType offsetIn) :
46  divisor(divisorIn), offset(offsetIn)
47  {}
52  };
53 
56  struct DividerSet {
59  };
60 
68  RateGroupDriver(const char* compName);
69 
72 
73  void configure(const DividerSet& dividersSet);
74 
76 
78 
79  PRIVATE:
80 
83  void CycleIn_handler(FwIndexType portNum, Os::RawTime& cycleStart);
84 
87 
89  FwSizeType m_ticks;
90 
92  FwSizeType m_rollover;
93 
95  bool m_configured;
96  };
97 
98 }
99 
100 #endif
Divider()
Initializes divisor and offset to 0 (unused)
PlatformSizeType FwSizeType
Definition: FpConfig.h:35
Divider(FwSizeType divisorIn, FwSizeType offsetIn)
Initializes divisor and offset to passed-in pair.
PlatformIndexType FwIndexType
Definition: FpConfig.h:25
Auto-generated base for RateGroupDriver component.
void configure(const DividerSet &dividersSet)
RateGroupDriver configuration function.
C++-compatible configuration header for fprime configuration.
RateGroupDriver(const char *compName)
RateGroupDriver constructor.
Implementation class for RateGroupDriver.
Struct describing a divider.
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.