7 #ifndef Drv_LinuxGpioDriverComponentAc_HPP 8 #define Drv_LinuxGpioDriverComponentAc_HPP 18 #if FW_ENABLE_TEXT_LOGGING == 1 21 #if !FW_DIRECT_PORT_CALLS 24 #if !FW_DIRECT_PORT_CALLS 93 #if !FW_DIRECT_PORT_CALLS 117 #if !FW_DIRECT_PORT_CALLS 131 #if FW_ENABLE_TEXT_LOGGING == 1 134 void set_LogText_OutputPort(
149 #if !FW_DIRECT_PORT_CALLS 165 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 176 Fw::InputSerializePort* port
179 #if FW_ENABLE_TEXT_LOGGING == 1 182 void set_LogText_OutputPort(
184 Fw::InputSerializePort* port
192 Fw::InputSerializePort* port
197 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 208 Fw::InputSerializePort* port
221 const char* compName =
"" 260 #if FW_ENABLE_TEXT_LOGGING == 1 265 static constexpr
FwIndexType getNum_LogText_OutputPorts() {
304 #if FW_ENABLE_TEXT_LOGGING == 1 309 bool isConnected_LogText_OutputPort(
353 #if FW_DIRECT_PORT_CALLS 472 #if FW_ENABLE_TEXT_LOGGING 491 #if !FW_DIRECT_PORT_CALLS 507 #if !FW_DIRECT_PORT_CALLS 518 #if FW_ENABLE_TEXT_LOGGING == 1 530 #if !FW_DIRECT_PORT_CALLS
Drv::InputGpioReadPort * get_gpioRead_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_Time_OutputPorts()
Drv::InputGpioWritePort * get_gpioWrite_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_gpioRead_InputPorts()
void log_WARNING_HI_InterruptReadError(U32 expected, U32 got) const
Log event InterruptReadError.
LinuxGpioDriverComponentBase(const char *compName="")
Construct LinuxGpioDriverComponentBase object.
void gpioInterrupt_out(FwIndexType portNum, Os::RawTime &cycleStart) const
Invoke output port gpioInterrupt.
void set_gpioInterrupt_OutputPort(FwIndexType portNum, Svc::InputCyclePort *port)
Connect port to gpioInterrupt[portNum].
Drv::GpioStatus gpioWrite_handlerBase(FwIndexType portNum, const Fw::Logic &state)
Handler base-class function for input port gpioWrite.
static constexpr FwIndexType getNum_gpioInterrupt_OutputPorts()
virtual Drv::GpioStatus gpioWrite_handler(FwIndexType portNum, const Fw::Logic &state)=0
Handler for input port gpioWrite.
void log_WARNING_HI_OpenPinError(const Fw::StringBase &chip, U32 pin, const Fw::StringBase &pinMessage, Os::FileStatus status) const
Log event OpenPinError.
virtual Drv::GpioStatus gpioRead_handler(FwIndexType portNum, Fw::Logic &state)=0
Handler for input port gpioRead.
void init()
Object initializer.
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
bool isConnected_Log_OutputPort(FwIndexType portNum) const
Drv::GpioStatus gpioRead_handlerBase(FwIndexType portNum, Fw::Logic &state)
Handler base-class function for input port gpioRead.
friend class LinuxGpioDriverTester
Friend class tester implementation to support white-box testing.
static constexpr FwIndexType getNum_gpioWrite_InputPorts()
FwIdType FwEventIdType
The type of an event identifier.
Auto-generated base for LinuxGpioDriver component.
static constexpr FwIndexType getNum_Log_OutputPorts()
void log_WARNING_HI_OpenChipError(const Fw::StringBase &chip, Os::FileStatus status) const
Log event OpenChipError.
void log_DIAGNOSTIC_OpenChip(const Fw::StringBase &chip, const Fw::StringBase &chipLabel, U32 pin, const Fw::StringBase &pinMessage) const
Log event OpenChip.
Enum representing event severity.
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
PlatformIndexType FwIndexType
void log_WARNING_HI_PollingError(I32 error_number) const
Log event PollingError.
bool isConnected_Time_OutputPort(FwIndexType portNum) const
friend class LinuxGpioDriverTesterBase
Friend class tester to support autocoded test harness.
virtual ~LinuxGpioDriverComponentBase()
Destroy LinuxGpioDriverComponentBase object.
FPP shadow-enum representing Os::File::Status.
bool isConnected_gpioInterrupt_OutputPort(FwIndexType portNum) const