7 #ifndef Drv_LinuxSpiDriverComponentAc_HPP 8 #define Drv_LinuxSpiDriverComponentAc_HPP 18 #if FW_ENABLE_TEXT_LOGGING == 1 21 #if !FW_DIRECT_PORT_CALLS 24 #if !FW_DIRECT_PORT_CALLS 101 #if !FW_DIRECT_PORT_CALLS 125 #if !FW_DIRECT_PORT_CALLS 139 #if FW_ENABLE_TEXT_LOGGING == 1 142 void set_LogText_OutputPort(
163 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 174 Fw::InputSerializePort* port
177 #if FW_ENABLE_TEXT_LOGGING == 1 180 void set_LogText_OutputPort(
182 Fw::InputSerializePort* port
190 Fw::InputSerializePort* port
196 Fw::InputSerializePort* port
209 const char* compName =
"" 248 #if FW_ENABLE_TEXT_LOGGING == 1 253 static constexpr
FwIndexType getNum_LogText_OutputPorts() {
286 #if FW_ENABLE_TEXT_LOGGING == 1 291 bool isConnected_LogText_OutputPort(
331 #if FW_DIRECT_PORT_CALLS 481 static void m_p_SpiReadWrite_in(
511 #if FW_ENABLE_TEXT_LOGGING 538 #if !FW_DIRECT_PORT_CALLS 554 #if !FW_DIRECT_PORT_CALLS 565 #if FW_ENABLE_TEXT_LOGGING == 1 587 std::atomic<FwIndexType> m_SPI_WriteErrorThrottle;
void SpiReadWrite_handlerBase(FwIndexType portNum, Fw::Buffer &writeBuffer, Fw::Buffer &readBuffer)
Handler base-class function for input port SpiReadWrite.
void log_WARNING_HI_SPI_ConfigError(I32 device, I32 select, I32 error) const
PlatformSizeType FwSizeType
static constexpr FwIndexType getNum_SpiWriteRead_InputPorts()
virtual void SpiReadWrite_handler(FwIndexType portNum, Fw::Buffer &writeBuffer, Fw::Buffer &readBuffer)=0
Handler for input port SpiReadWrite.
static constexpr FwIndexType getNum_Time_OutputPorts()
bool isConnected_Time_OutputPort(FwIndexType portNum) const
Channel ID for SPI_Bytes.
virtual void lock()
Lock the guarded mutex.
friend class LinuxSpiDriverTester
Friend class tester implementation to support white-box testing.
void log_WARNING_HI_SPI_WriteError(I32 device, I32 select, I32 error)
friend class LinuxSpiDriverTesterBase
Friend class tester to support autocoded test harness.
void log_WARNING_LO_SPI_ConfigMismatch(I32 device, I32 select, const Fw::StringBase ¶meter, U32 write_value, U32 read_value) const
virtual ~LinuxSpiDriverComponentBase()
Destroy LinuxSpiDriverComponentBase object.
virtual Drv::SpiStatus SpiWriteRead_handler(FwIndexType portNum, Fw::Buffer &writeBuffer, Fw::Buffer &readBuffer)=0
Handler for input port SpiWriteRead.
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
void init()
Object initializer.
static constexpr FwIndexType getNum_Tlm_OutputPorts()
void log_WARNING_HI_SPI_WriteError_ThrottleClear()
Reset throttle value for SPI_WriteError.
bool isConnected_Tlm_OutputPort(FwIndexType portNum) const
FwIdType FwEventIdType
The type of an event identifier.
void tlmWrite_SPI_Bytes(FwSizeType arg, Fw::Time _tlmTime=Fw::Time()) const
Drv::InputSpiReadWritePort * get_SpiReadWrite_InputPort(FwIndexType portNum)
Auto-generated base for LinuxSpiDriver component.
Throttle reset count for SPI_WriteError.
LinuxSpiDriverComponentBase(const char *compName="")
Construct LinuxSpiDriverComponentBase object.
FwIdType FwChanIdType
The type of a telemetry channel identifier.
void log_ACTIVITY_HI_SPI_PortOpened(I32 device, I32 select) const
SPI configuration mismatch.
bool isConnected_Log_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_SpiReadWrite_InputPorts()
Enum representing event severity.
void tlmWrite(FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const
virtual void unLock()
Unlock the guarded mutex.
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void log_WARNING_HI_SPI_OpenError(I32 device, I32 select, I32 error) const
static constexpr FwIndexType getNum_Log_OutputPorts()
Drv::SpiStatus SpiWriteRead_handlerBase(FwIndexType portNum, Fw::Buffer &writeBuffer, Fw::Buffer &readBuffer)
Handler base-class function for input port SpiWriteRead.
Drv::InputSpiWriteReadPort * get_SpiWriteRead_InputPort(FwIndexType portNum)
void set_Tlm_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to Tlm[portNum].
PlatformIndexType FwIndexType