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 <Fw/Types/BasicTypes.hpp>
23 
24 namespace 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
Svc::RateGroupDriver::DIVIDER_SIZE
static const NATIVE_UINT_TYPE DIVIDER_SIZE
Size of the divider table, provided as a constants to users passing the table in.
Definition: RateGroupDriver.hpp:80
Svc::RateGroupDriver::init
void init(NATIVE_INT_TYPE instanceId=0)
RateGroupDriver initialization function.
Definition: RateGroupDriver.cpp:47
Svc::RateGroupDriver::RateGroupDriver
RateGroupDriver(const char *compName)
RateGroupDriver constructor.
Definition: RateGroupDriver.cpp:9
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition: BasicTypes.hpp:28
Svc::RateGroupDriver::~RateGroupDriver
~RateGroupDriver()
RateGroupDriverImpl destructor.
Definition: RateGroupDriver.cpp:43
Svc::TimerVal
Serializable class for carrying timer values.
Definition: TimerVal.hpp:22
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition: BasicTypes.hpp:27
Svc::RateGroupDriver
Implementation class for RateGroupDriver.
Definition: RateGroupDriver.hpp:33
Svc::RateGroupDriver::configure
void configure(NATIVE_INT_TYPE dividers[], NATIVE_INT_TYPE numDividers)
RateGroupDriver configuration function.
Definition: RateGroupDriver.cpp:15
Svc
Definition: ActiveRateGroupCfg.hpp:18