F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
GpioReadPortAc.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title GpioReadPortAc.hpp
3// \author Generated by fpp-to-cpp
4// \brief hpp file for GpioRead port
5// ======================================================================
6
7#ifndef Drv_GpioReadPortAc_HPP
8#define Drv_GpioReadPortAc_HPP
9
10#include <cstdio>
11#include <cstring>
12
14#include "FpConfig.hpp"
20
21namespace Drv {
22
26 {
27
28 public:
29
30 // ----------------------------------------------------------------------
31 // Constants
32 // ----------------------------------------------------------------------
33
34 enum {
38 };
39
40 public:
41
42 // ----------------------------------------------------------------------
43 // Types
44 // ----------------------------------------------------------------------
45
49 FwIndexType portNum,
50 Fw::Logic& state
51 );
52
53 public:
54
55 // ----------------------------------------------------------------------
56 // Input Port Member functions
57 // ----------------------------------------------------------------------
58
61
63 void init();
64
66 void addCallComp(
67 Fw::PassiveComponentBase* callComp,
68 CompFuncPtr funcPtr
69 );
70
73
74 private:
75
76#if FW_PORT_SERIALIZATION == 1
77
79 Fw::SerializeStatus invokeSerial(Fw::SerializeBufferBase& _buffer);
80
81#endif
82
83 private:
84
85 // ----------------------------------------------------------------------
86 // Member variables
87 // ----------------------------------------------------------------------
88
90 CompFuncPtr m_func;
91
92 };
93
97 {
98
99 public:
100
101 // ----------------------------------------------------------------------
102 // Output Port Member functions
103 // ----------------------------------------------------------------------
104
107
109 void init();
110
112 void addCallPort(
113 InputGpioReadPort* callPort
114 );
115
117 Drv::GpioStatus invoke(Fw::Logic& state) const;
118
119 private:
120
121 // ----------------------------------------------------------------------
122 // Member variables
123 // ----------------------------------------------------------------------
124
126 InputGpioReadPort* m_port;
127
128 };
129
130}
131
132#endif
PlatformIndexType FwIndexType
Definition FpConfig.h:25
C++-compatible configuration header for fprime configuration.
Input GpioRead port.
Drv::GpioStatus(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, Fw::Logic &state)
The port callback function type.
@ SERIALIZED_SIZE
The size of the serial representations of the port arguments.
Drv::GpioStatus invoke(Fw::Logic &state)
Invoke a port interface.
InputGpioReadPort()
Constructor.
void init()
Initialization function.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Output GpioRead port.
Drv::GpioStatus invoke(Fw::Logic &state) const
Invoke a port interface.
void init()
Initialization function.
void addCallPort(InputGpioReadPort *callPort)
Register an input port.
OutputGpioReadPort()
Constructor.
Logic states.
@ SERIALIZED_SIZE
The size of the serial representation.
SerializeStatus
forward declaration for string