F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RateGroupDriver.hpp
Go to the documentation of this file.
1
18#ifndef SVC_RATEGROUPDRIVER_HPP
19#define SVC_RATEGROUPDRIVER_HPP
20
22#include <FpConfig.hpp>
23
24namespace Svc {
25
32
34
35 public:
38
41 struct Divider{
44 {}
47 divisor(divisorIn), offset(offsetIn)
48 {}
53 };
54
61
69 RateGroupDriver(const char* compName);
70
73
74 void configure(const DividerSet& dividersSet);
75
77
79
80 PRIVATE:
81
84 void CycleIn_handler(NATIVE_INT_TYPE portNum, Svc::TimerVal& cycleStart);
85
88
90 NATIVE_INT_TYPE m_ticks;
91
93 NATIVE_INT_TYPE m_rollover;
94
96 bool m_configured;
97 };
98
99}
100
101#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
C++-compatible configuration header for fprime configuration.
Auto-generated base for RateGroupDriver component.
Implementation class for RateGroupDriver.
~RateGroupDriver()
RateGroupDriverImpl destructor.
RateGroupDriver(const char *compName)
RateGroupDriver constructor.
void configure(const DividerSet &dividersSet)
RateGroupDriver configuration function.
static const NATIVE_UINT_TYPE DIVIDER_SIZE
Size of the divider table, provided as a constants to users passing the table in.
Serializable class for carrying timer values.
Definition TimerVal.hpp:22
Struct describing a divider.
NATIVE_INT_TYPE divisor
Divisor.
Divider()
Initializes divisor and offset to 0 (unused)
NATIVE_INT_TYPE offset
Offset.
Divider(NATIVE_INT_TYPE divisorIn, NATIVE_INT_TYPE offsetIn)
Initializes divisor and offset to passed-in pair.
Struct containing an array of dividers.
Divider dividers[Svc::RateGroupDriver::DIVIDER_SIZE]
Dividers.