F´ Flight Software - C/C++ Documentation NASA-v1.6.0
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
21#include <Svc/RateGroupDriver/RateGroupDriverComponentAc.hpp>
22#include <FpConfig.hpp>
23
24namespace Svc {
25
32
33 class RateGroupDriver : public RateGroupDriverComponentBase {
34
35 public:
36
44 RateGroupDriver(const char* compName);
45
49
50 void init(NATIVE_INT_TYPE instanceId = 0);
51
55
56 void configure(NATIVE_INT_TYPE dividers[], NATIVE_INT_TYPE numDividers);
57
59
61
62 PRIVATE:
63
66 void CycleIn_handler(NATIVE_INT_TYPE portNum, Svc::TimerVal& cycleStart);
67
69 NATIVE_INT_TYPE m_dividers[NUM_CYCLEOUT_OUTPUT_PORTS];
70
72 NATIVE_INT_TYPE m_numDividers;
73
75 NATIVE_INT_TYPE m_ticks;
77 NATIVE_INT_TYPE m_rollover;
78 public:
80 static const NATIVE_UINT_TYPE DIVIDER_SIZE = NUM_CYCLEOUT_OUTPUT_PORTS;
81 };
82
83}
84
85#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
C++-compatible configuration header for fprime configuration.
Implementation class for RateGroupDriver.
void configure(NATIVE_INT_TYPE dividers[], NATIVE_INT_TYPE numDividers)
RateGroupDriver configuration function.
~RateGroupDriver()
RateGroupDriverImpl destructor.
void init(NATIVE_INT_TYPE instanceId=0)
RateGroupDriver initialization 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