F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Svc::BufferLoggerComponentBase Class Referenceabstract

Auto-generated base for BufferLogger component. More...

#include <Svc/BufferLogger/BufferLoggerComponentAc.hpp>

Inheritance diagram for Svc::BufferLoggerComponentBase:
Fw::ActiveComponentBase Fw::QueuedComponentBase Fw::PassiveComponentBase Fw::ObjBase Svc::BufferLogger

Public Member Functions

void init (NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance=0)
 Initialize BufferLoggerComponentBase object. More...
 
Fw::InputCmdPortget_cmdIn_InputPort (NATIVE_INT_TYPE portNum)
 
Fw::InputBufferSendPortget_bufferSendIn_InputPort (NATIVE_INT_TYPE portNum)
 
Fw::InputComPortget_comIn_InputPort (NATIVE_INT_TYPE portNum)
 
Svc::InputPingPortget_pingIn_InputPort (NATIVE_INT_TYPE portNum)
 
Svc::InputSchedPortget_schedIn_InputPort (NATIVE_INT_TYPE portNum)
 
void set_cmdRegOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputCmdRegPort *port)
 Connect port to cmdRegOut[portNum]. More...
 
void set_cmdResponseOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputCmdResponsePort *port)
 Connect port to cmdResponseOut[portNum]. More...
 
void set_eventOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputLogPort *port)
 Connect port to eventOut[portNum]. More...
 
void set_timeCaller_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputTimePort *port)
 Connect port to timeCaller[portNum]. More...
 
void set_tlmOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputTlmPort *port)
 Connect port to tlmOut[portNum]. More...
 
void set_bufferSendOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputBufferSendPort *port)
 Connect port to bufferSendOut[portNum]. More...
 
void set_pingOut_OutputPort (NATIVE_INT_TYPE portNum, Svc::InputPingPort *port)
 Connect port to pingOut[portNum]. More...
 
void regCommands ()
 Register commands with the Command Dispatcher. More...
 
- Public Member Functions inherited from Fw::ActiveComponentBase
void start (NATIVE_UINT_TYPE priority=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE stackSize=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE cpuAffinity=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE identifier=Os::Task::TASK_DEFAULT)
 called by instantiator when task is to be started More...
 
 DEPRECATED (void start(NATIVE_INT_TYPE identifier, NATIVE_INT_TYPE priority, NATIVE_INT_TYPE stackSize, NATIVE_INT_TYPE cpuAffinity=-1), "Please switch to start(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE cpuAffinity, NATIVE_UINT_TYPE identifier)")
 called by instantiator when task is to be started More...
 
void exit ()
 exit task in active component More...
 
Os::Task::TaskStatus join (void **value_ptr)
 provide return value of thread if value_ptr is not NULL More...
 
- Public Member Functions inherited from Fw::PassiveComponentBase
void setIdBase (const U32)
 Set the ID base. More...
 
U32 getIdBase () const
 

Protected Types

enum  { NUM_CMDIN_INPUT_PORTS = 1 }
 Enumerations for numbers of special input ports. More...
 
enum  { NUM_BUFFERSENDIN_INPUT_PORTS = 1 , NUM_COMIN_INPUT_PORTS = 1 , NUM_PINGIN_INPUT_PORTS = 1 , NUM_SCHEDIN_INPUT_PORTS = 1 }
 Enumerations for numbers of typed input ports. More...
 
enum  {
  NUM_CMDREGOUT_OUTPUT_PORTS = 1 , NUM_CMDRESPONSEOUT_OUTPUT_PORTS = 1 , NUM_EVENTOUT_OUTPUT_PORTS = 1 , NUM_EVENTOUTTEXT_OUTPUT_PORTS = 1 ,
  NUM_TIMECALLER_OUTPUT_PORTS = 1 , NUM_TLMOUT_OUTPUT_PORTS = 1
}
 Enumerations for numbers of special output ports. More...
 
enum  { NUM_BUFFERSENDOUT_OUTPUT_PORTS = 1 , NUM_PINGOUT_OUTPUT_PORTS = 1 }
 Enumerations for numbers of typed output ports. More...
 
enum  { OPCODE_BL_OPENFILE = 0x0 , OPCODE_BL_CLOSEFILE = 0x1 , OPCODE_BL_SETLOGGING = 0x2 , OPCODE_BL_FLUSHFILE = 0x3 }
 Command opcodes. More...
 
enum  {
  EVENTID_BL_LOGFILECLOSED = 0x0 , EVENTID_BL_LOGFILEOPENERROR = 0x1 , EVENTID_BL_LOGFILEVALIDATIONERROR = 0x2 , EVENTID_BL_LOGFILEWRITEERROR = 0x3 ,
  EVENTID_BL_ACTIVATED = 0x4 , EVENTID_BL_DEACTIVATED = 0x5 , EVENTID_BL_NOLOGFILEOPENINITERROR = 0x6
}
 Event IDs. More...
 
enum  { CHANNELID_BUFFERLOGGER_NUMLOGGEDBUFFERS = 0x0 }
 Channel IDs. More...
 

Protected Member Functions

 BufferLoggerComponentBase (const char *compName="")
 Construct BufferLoggerComponentBase object. More...
 
virtual ~BufferLoggerComponentBase ()
 Destroy BufferLoggerComponentBase object. More...
 
NATIVE_INT_TYPE getNum_cmdIn_InputPorts () const
 
NATIVE_INT_TYPE getNum_bufferSendIn_InputPorts () const
 
NATIVE_INT_TYPE getNum_comIn_InputPorts () const
 
NATIVE_INT_TYPE getNum_pingIn_InputPorts () const
 
NATIVE_INT_TYPE getNum_schedIn_InputPorts () const
 
NATIVE_INT_TYPE getNum_cmdRegOut_OutputPorts () const
 
NATIVE_INT_TYPE getNum_cmdResponseOut_OutputPorts () const
 
NATIVE_INT_TYPE getNum_eventOut_OutputPorts () const
 
NATIVE_INT_TYPE getNum_timeCaller_OutputPorts () const
 
NATIVE_INT_TYPE getNum_tlmOut_OutputPorts () const
 
NATIVE_INT_TYPE getNum_bufferSendOut_OutputPorts () const
 
NATIVE_INT_TYPE getNum_pingOut_OutputPorts () const
 
bool isConnected_cmdRegOut_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_cmdResponseOut_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_eventOut_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_timeCaller_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_tlmOut_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_bufferSendOut_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_pingOut_OutputPort (NATIVE_INT_TYPE portNum)
 
virtual void bufferSendIn_handler (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)=0
 Handler for input port bufferSendIn. More...
 
virtual void comIn_handler (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context)=0
 Handler for input port comIn. More...
 
virtual void pingIn_handler (NATIVE_INT_TYPE portNum, U32 key)=0
 Handler for input port pingIn. More...
 
virtual void schedIn_handler (NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)=0
 Handler for input port schedIn. More...
 
void bufferSendIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
 Handler base-class function for input port bufferSendIn. More...
 
void comIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context)
 Handler base-class function for input port comIn. More...
 
void pingIn_handlerBase (NATIVE_INT_TYPE portNum, U32 key)
 Handler base-class function for input port pingIn. More...
 
void schedIn_handlerBase (NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)
 Handler base-class function for input port schedIn. More...
 
virtual void bufferSendIn_preMsgHook (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
 Pre-message hook for async input port bufferSendIn. More...
 
virtual void comIn_preMsgHook (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context)
 Pre-message hook for async input port comIn. More...
 
virtual void pingIn_preMsgHook (NATIVE_INT_TYPE portNum, U32 key)
 Pre-message hook for async input port pingIn. More...
 
virtual void schedIn_preMsgHook (NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)
 Pre-message hook for async input port schedIn. More...
 
void bufferSendOut_out (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
 Invoke output port bufferSendOut. More...
 
void pingOut_out (NATIVE_INT_TYPE portNum, U32 key)
 Invoke output port pingOut. More...
 
void cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
 Emit command response. More...
 
virtual void BL_OpenFile_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &file)=0
 
virtual void BL_CloseFile_cmdHandler (FwOpcodeType opCode, U32 cmdSeq)=0
 
virtual void BL_SetLogging_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, Svc::BufferLogger_LogState state)=0
 
virtual void BL_FlushFile_cmdHandler (FwOpcodeType opCode, U32 cmdSeq)=0
 
void BL_OpenFile_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
 
void BL_CloseFile_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
 
void BL_SetLogging_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
 
void BL_FlushFile_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
 
virtual void BL_OpenFile_preMsgHook (FwOpcodeType opCode, U32 cmdSeq)
 Pre-message hook for command BL_OpenFile. More...
 
virtual void BL_CloseFile_preMsgHook (FwOpcodeType opCode, U32 cmdSeq)
 Pre-message hook for command BL_CloseFile. More...
 
virtual void BL_SetLogging_preMsgHook (FwOpcodeType opCode, U32 cmdSeq)
 Pre-message hook for command BL_SetLogging. More...
 
virtual void BL_FlushFile_preMsgHook (FwOpcodeType opCode, U32 cmdSeq)
 Pre-message hook for command BL_FlushFile. More...
 
void log_DIAGNOSTIC_BL_LogFileClosed (const Fw::LogStringArg &file)
 
void log_WARNING_HI_BL_LogFileOpenError (U32 errornum, const Fw::LogStringArg &file)
 
void log_WARNING_HI_BL_LogFileValidationError (const Fw::LogStringArg &validationFile, U32 status)
 
void log_WARNING_HI_BL_LogFileWriteError (U32 errornum, U32 bytesWritten, U32 bytesToWrite, const Fw::LogStringArg &file)
 
void log_ACTIVITY_LO_BL_Activated ()
 
void log_ACTIVITY_LO_BL_Deactivated ()
 
void log_WARNING_HI_BL_NoLogFileOpenInitError ()
 
void tlmWrite_BufferLogger_NumLoggedBuffers (U32 arg, Fw::Time _tlmTime=Fw::Time())
 
Fw::Time getTime ()
 
- Protected Member Functions inherited from Fw::ActiveComponentBase
 ActiveComponentBase (const char *name)
 Constructor. More...
 
virtual ~ActiveComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 initialization code More...
 
virtual void preamble ()
 A function that will be called before the event loop is entered. More...
 
virtual void loop ()
 The function that will loop dispatching messages. More...
 
virtual void finalizer ()
 A function that will be called after exiting the loop. More...
 
- Protected Member Functions inherited from Fw::QueuedComponentBase
 QueuedComponentBase (const char *name)
 Constructor. More...
 
virtual ~QueuedComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 initialization function More...
 
Os::Queue::QueueStatus createQueue (NATIVE_INT_TYPE depth, NATIVE_INT_TYPE msgSize)
 
NATIVE_INT_TYPE getNumMsgsDropped ()
 return number of messages dropped More...
 
void incNumMsgDropped ()
 increment the number of messages dropped More...
 
- Protected Member Functions inherited from Fw::PassiveComponentBase
 PassiveComponentBase (const char *name)
 Named constructor. More...
 
virtual ~PassiveComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 Initialization function. More...
 
NATIVE_INT_TYPE getInstance () const
 
- Protected Member Functions inherited from Fw::ObjBase
 ObjBase (const char *name)
 ObjBase constructor. More...
 
virtual ~ObjBase ()
 Destructor. More...
 
void init ()
 Object initializer. More...
 

Friends

class BufferLoggerComponentBaseFriend
 Friend class for white-box testing. More...
 

Additional Inherited Members

- Public Types inherited from Fw::ActiveComponentBase
enum  { ACTIVE_COMPONENT_EXIT }
 
- Public Types inherited from Fw::QueuedComponentBase
enum  MsgDispatchStatus { MSG_DISPATCH_OK , MSG_DISPATCH_EMPTY , MSG_DISPATCH_ERROR , MSG_DISPATCH_EXIT }
 
- Protected Attributes inherited from Fw::ActiveComponentBase
Os::Task m_task
 task object for active component More...
 
- Protected Attributes inherited from Fw::QueuedComponentBase
Os::Queue m_queue
 queue object for active component More...
 

Detailed Description

Auto-generated base for BufferLogger component.

Definition at line 36 of file BufferLoggerComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of special input ports.

Enumerator
NUM_CMDIN_INPUT_PORTS 

Definition at line 54 of file BufferLoggerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed input ports.

Enumerator
NUM_BUFFERSENDIN_INPUT_PORTS 
NUM_COMIN_INPUT_PORTS 
NUM_PINGIN_INPUT_PORTS 
NUM_SCHEDIN_INPUT_PORTS 

Definition at line 59 of file BufferLoggerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of special output ports.

Enumerator
NUM_CMDREGOUT_OUTPUT_PORTS 
NUM_CMDRESPONSEOUT_OUTPUT_PORTS 
NUM_EVENTOUT_OUTPUT_PORTS 
NUM_EVENTOUTTEXT_OUTPUT_PORTS 
NUM_TIMECALLER_OUTPUT_PORTS 
NUM_TLMOUT_OUTPUT_PORTS 

Definition at line 67 of file BufferLoggerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed output ports.

Enumerator
NUM_BUFFERSENDOUT_OUTPUT_PORTS 
NUM_PINGOUT_OUTPUT_PORTS 

Definition at line 77 of file BufferLoggerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Command opcodes.

Enumerator
OPCODE_BL_OPENFILE 

Open a new log file with specified name; also resets unique file counter to 0.

OPCODE_BL_CLOSEFILE 

Close the currently open log file, if any.

OPCODE_BL_SETLOGGING 

Sets the volatile logging state.

OPCODE_BL_FLUSHFILE 

Flushes the current open log file to disk; a no-op with fprime's unbuffered file I/O, so always returns success.

Definition at line 83 of file BufferLoggerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Event IDs.

Enumerator
EVENTID_BL_LOGFILECLOSED 

The Buffer Logger closed a log file.

EVENTID_BL_LOGFILEOPENERROR 

The Buffer Logger encountered an error opening a log file.

EVENTID_BL_LOGFILEVALIDATIONERROR 

The Buffer Logger encountered an error writing a validation file.

EVENTID_BL_LOGFILEWRITEERROR 

The Buffer Logger encountered an error writing to a log file.

EVENTID_BL_ACTIVATED 

Buffer logger was activated.

EVENTID_BL_DEACTIVATED 

Buffer logger was deactivated.

EVENTID_BL_NOLOGFILEOPENINITERROR 

No log file open command was received by BufferLogger.

Definition at line 91 of file BufferLoggerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Channel IDs.

Enumerator
CHANNELID_BUFFERLOGGER_NUMLOGGEDBUFFERS 

Channel ID for BufferLogger_NumLoggedBuffers.

Definition at line 102 of file BufferLoggerComponentAc.hpp.

Constructor & Destructor Documentation

◆ BufferLoggerComponentBase()

Svc::BufferLoggerComponentBase::BufferLoggerComponentBase ( const char *  compName = "")
protected

Construct BufferLoggerComponentBase object.

Parameters
compNameThe component name

Definition at line 825 of file BufferLoggerComponentAc.cpp.

◆ ~BufferLoggerComponentBase()

Svc::BufferLoggerComponentBase::~BufferLoggerComponentBase ( )
protectedvirtual

Destroy BufferLoggerComponentBase object.

Definition at line 832 of file BufferLoggerComponentAc.cpp.

Member Function Documentation

◆ BL_CloseFile_cmdHandler()

virtual void Svc::BufferLoggerComponentBase::BL_CloseFile_cmdHandler ( FwOpcodeType  opCode,
U32  cmdSeq 
)
protectedpure virtual

Handler for command BL_CloseFile

Close the currently open log file, if any

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

◆ BL_CloseFile_cmdHandlerBase()

void Svc::BufferLoggerComponentBase::BL_CloseFile_cmdHandlerBase ( FwOpcodeType  opCode,
U32  cmdSeq,
Fw::CmdArgBuffer args 
)
protected

Base-class handler function for command BL_CloseFile

Close the currently open log file, if any

Parameters
opCodeThe opcode
cmdSeqThe command sequence number
argsThe command argument buffer

Definition at line 1422 of file BufferLoggerComponentAc.cpp.

◆ BL_CloseFile_preMsgHook()

void Svc::BufferLoggerComponentBase::BL_CloseFile_preMsgHook ( FwOpcodeType  opCode,
U32  cmdSeq 
)
protectedvirtual

Pre-message hook for command BL_CloseFile.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

Definition at line 1618 of file BufferLoggerComponentAc.cpp.

◆ BL_FlushFile_cmdHandler()

virtual void Svc::BufferLoggerComponentBase::BL_FlushFile_cmdHandler ( FwOpcodeType  opCode,
U32  cmdSeq 
)
protectedpure virtual

Handler for command BL_FlushFile

Flushes the current open log file to disk; a no-op with fprime's unbuffered file I/O, so always returns success

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

◆ BL_FlushFile_cmdHandlerBase()

void Svc::BufferLoggerComponentBase::BL_FlushFile_cmdHandlerBase ( FwOpcodeType  opCode,
U32  cmdSeq,
Fw::CmdArgBuffer args 
)
protected

Base-class handler function for command BL_FlushFile

Flushes the current open log file to disk; a no-op with fprime's unbuffered file I/O, so always returns success

Parameters
opCodeThe opcode
cmdSeqThe command sequence number
argsThe command argument buffer

Definition at line 1540 of file BufferLoggerComponentAc.cpp.

◆ BL_FlushFile_preMsgHook()

void Svc::BufferLoggerComponentBase::BL_FlushFile_preMsgHook ( FwOpcodeType  opCode,
U32  cmdSeq 
)
protectedvirtual

Pre-message hook for command BL_FlushFile.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

Definition at line 1640 of file BufferLoggerComponentAc.cpp.

◆ BL_OpenFile_cmdHandler()

virtual void Svc::BufferLoggerComponentBase::BL_OpenFile_cmdHandler ( FwOpcodeType  opCode,
U32  cmdSeq,
const Fw::CmdStringArg file 
)
protectedpure virtual

Handler for command BL_OpenFile

Open a new log file with specified name; also resets unique file counter to 0

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

◆ BL_OpenFile_cmdHandlerBase()

void Svc::BufferLoggerComponentBase::BL_OpenFile_cmdHandlerBase ( FwOpcodeType  opCode,
U32  cmdSeq,
Fw::CmdArgBuffer args 
)
protected

Base-class handler function for command BL_OpenFile

Open a new log file with specified name; also resets unique file counter to 0

Parameters
opCodeThe opcode
cmdSeqThe command sequence number
argsThe command argument buffer

Definition at line 1363 of file BufferLoggerComponentAc.cpp.

◆ BL_OpenFile_preMsgHook()

void Svc::BufferLoggerComponentBase::BL_OpenFile_preMsgHook ( FwOpcodeType  opCode,
U32  cmdSeq 
)
protectedvirtual

Pre-message hook for command BL_OpenFile.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

Definition at line 1607 of file BufferLoggerComponentAc.cpp.

◆ BL_SetLogging_cmdHandler()

virtual void Svc::BufferLoggerComponentBase::BL_SetLogging_cmdHandler ( FwOpcodeType  opCode,
U32  cmdSeq,
Svc::BufferLogger_LogState  state 
)
protectedpure virtual

Handler for command BL_SetLogging

Sets the volatile logging state

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

◆ BL_SetLogging_cmdHandlerBase()

void Svc::BufferLoggerComponentBase::BL_SetLogging_cmdHandlerBase ( FwOpcodeType  opCode,
U32  cmdSeq,
Fw::CmdArgBuffer args 
)
protected

Base-class handler function for command BL_SetLogging

Sets the volatile logging state

Parameters
opCodeThe opcode
cmdSeqThe command sequence number
argsThe command argument buffer

Definition at line 1481 of file BufferLoggerComponentAc.cpp.

◆ BL_SetLogging_preMsgHook()

void Svc::BufferLoggerComponentBase::BL_SetLogging_preMsgHook ( FwOpcodeType  opCode,
U32  cmdSeq 
)
protectedvirtual

Pre-message hook for command BL_SetLogging.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

Definition at line 1629 of file BufferLoggerComponentAc.cpp.

◆ bufferSendIn_handler()

virtual void Svc::BufferLoggerComponentBase::bufferSendIn_handler ( NATIVE_INT_TYPE  portNum,
Fw::Buffer fwBuffer 
)
protectedpure virtual

Handler for input port bufferSendIn.

Parameters
portNumThe port number
fwBufferThe buffer

◆ bufferSendIn_handlerBase()

void Svc::BufferLoggerComponentBase::bufferSendIn_handlerBase ( NATIVE_INT_TYPE  portNum,
Fw::Buffer fwBuffer 
)
protected

Handler base-class function for input port bufferSendIn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1042 of file BufferLoggerComponentAc.cpp.

◆ bufferSendIn_preMsgHook()

void Svc::BufferLoggerComponentBase::bufferSendIn_preMsgHook ( NATIVE_INT_TYPE  portNum,
Fw::Buffer fwBuffer 
)
protectedvirtual

Pre-message hook for async input port bufferSendIn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1271 of file BufferLoggerComponentAc.cpp.

◆ bufferSendOut_out()

void Svc::BufferLoggerComponentBase::bufferSendOut_out ( NATIVE_INT_TYPE  portNum,
Fw::Buffer fwBuffer 
)
protected

Invoke output port bufferSendOut.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1312 of file BufferLoggerComponentAc.cpp.

◆ cmdResponse_out()

void Svc::BufferLoggerComponentBase::cmdResponse_out ( FwOpcodeType  opCode,
U32  cmdSeq,
Fw::CmdResponse  response 
)
protected

Emit command response.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number
responseThe command response

Definition at line 1346 of file BufferLoggerComponentAc.cpp.

◆ comIn_handler()

virtual void Svc::BufferLoggerComponentBase::comIn_handler ( NATIVE_INT_TYPE  portNum,
Fw::ComBuffer data,
U32  context 
)
protectedpure virtual

Handler for input port comIn.

Parameters
portNumThe port number
dataBuffer containing packet data
contextCall context value; meaning chosen by user

◆ comIn_handlerBase()

void Svc::BufferLoggerComponentBase::comIn_handlerBase ( NATIVE_INT_TYPE  portNum,
Fw::ComBuffer data,
U32  context 
)
protected

Handler base-class function for input port comIn.

Parameters
portNumThe port number
dataBuffer containing packet data
contextCall context value; meaning chosen by user

Definition at line 1095 of file BufferLoggerComponentAc.cpp.

◆ comIn_preMsgHook()

void Svc::BufferLoggerComponentBase::comIn_preMsgHook ( NATIVE_INT_TYPE  portNum,
Fw::ComBuffer data,
U32  context 
)
protectedvirtual

Pre-message hook for async input port comIn.

Parameters
portNumThe port number
dataBuffer containing packet data
contextCall context value; meaning chosen by user

Definition at line 1280 of file BufferLoggerComponentAc.cpp.

◆ get_bufferSendIn_InputPort()

Fw::InputBufferSendPort * Svc::BufferLoggerComponentBase::get_bufferSendIn_InputPort ( NATIVE_INT_TYPE  portNum)

Get typed input port at index

Returns
bufferSendIn[portNum]
Parameters
portNumThe port number

Definition at line 495 of file BufferLoggerComponentAc.cpp.

◆ get_cmdIn_InputPort()

Fw::InputCmdPort * Svc::BufferLoggerComponentBase::get_cmdIn_InputPort ( NATIVE_INT_TYPE  portNum)

Get special input port at index

Returns
cmdIn[portNum]
Parameters
portNumThe port number

Definition at line 480 of file BufferLoggerComponentAc.cpp.

◆ get_comIn_InputPort()

Fw::InputComPort * Svc::BufferLoggerComponentBase::get_comIn_InputPort ( NATIVE_INT_TYPE  portNum)

Get typed input port at index

Returns
comIn[portNum]
Parameters
portNumThe port number

Definition at line 506 of file BufferLoggerComponentAc.cpp.

◆ get_pingIn_InputPort()

Svc::InputPingPort * Svc::BufferLoggerComponentBase::get_pingIn_InputPort ( NATIVE_INT_TYPE  portNum)

Get typed input port at index

Returns
pingIn[portNum]
Parameters
portNumThe port number

Definition at line 517 of file BufferLoggerComponentAc.cpp.

◆ get_schedIn_InputPort()

Svc::InputSchedPort * Svc::BufferLoggerComponentBase::get_schedIn_InputPort ( NATIVE_INT_TYPE  portNum)

Get typed input port at index

Returns
schedIn[portNum]
Parameters
portNumThe port number

Definition at line 528 of file BufferLoggerComponentAc.cpp.

◆ getNum_bufferSendIn_InputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_bufferSendIn_InputPorts ( ) const
protected

Get the number of bufferSendIn input ports

Returns
The number of bufferSendIn input ports

Definition at line 852 of file BufferLoggerComponentAc.cpp.

◆ getNum_bufferSendOut_OutputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_bufferSendOut_OutputPorts ( ) const
protected

Get the number of bufferSendOut output ports

Returns
The number of bufferSendOut output ports

Definition at line 924 of file BufferLoggerComponentAc.cpp.

◆ getNum_cmdIn_InputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_cmdIn_InputPorts ( ) const
protected

Get the number of cmdIn input ports

Returns
The number of cmdIn input ports

Definition at line 842 of file BufferLoggerComponentAc.cpp.

◆ getNum_cmdRegOut_OutputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_cmdRegOut_OutputPorts ( ) const
protected

Get the number of cmdRegOut output ports

Returns
The number of cmdRegOut output ports

Definition at line 880 of file BufferLoggerComponentAc.cpp.

◆ getNum_cmdResponseOut_OutputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_cmdResponseOut_OutputPorts ( ) const
protected

Get the number of cmdResponseOut output ports

Returns
The number of cmdResponseOut output ports

Definition at line 886 of file BufferLoggerComponentAc.cpp.

◆ getNum_comIn_InputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_comIn_InputPorts ( ) const
protected

Get the number of comIn input ports

Returns
The number of comIn input ports

Definition at line 858 of file BufferLoggerComponentAc.cpp.

◆ getNum_eventOut_OutputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_eventOut_OutputPorts ( ) const
protected

Get the number of eventOut output ports

Returns
The number of eventOut output ports

Definition at line 892 of file BufferLoggerComponentAc.cpp.

◆ getNum_pingIn_InputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_pingIn_InputPorts ( ) const
protected

Get the number of pingIn input ports

Returns
The number of pingIn input ports

Definition at line 864 of file BufferLoggerComponentAc.cpp.

◆ getNum_pingOut_OutputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_pingOut_OutputPorts ( ) const
protected

Get the number of pingOut output ports

Returns
The number of pingOut output ports

Definition at line 930 of file BufferLoggerComponentAc.cpp.

◆ getNum_schedIn_InputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_schedIn_InputPorts ( ) const
protected

Get the number of schedIn input ports

Returns
The number of schedIn input ports

Definition at line 870 of file BufferLoggerComponentAc.cpp.

◆ getNum_timeCaller_OutputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_timeCaller_OutputPorts ( ) const
protected

Get the number of timeCaller output ports

Returns
The number of timeCaller output ports

Definition at line 908 of file BufferLoggerComponentAc.cpp.

◆ getNum_tlmOut_OutputPorts()

NATIVE_INT_TYPE Svc::BufferLoggerComponentBase::getNum_tlmOut_OutputPorts ( ) const
protected

Get the number of tlmOut output ports

Returns
The number of tlmOut output ports

Definition at line 914 of file BufferLoggerComponentAc.cpp.

◆ getTime()

Fw::Time Svc::BufferLoggerComponentBase::getTime ( )
protected

Get the time

\return The current time

Definition at line 2317 of file BufferLoggerComponentAc.cpp.

◆ init()

void Svc::BufferLoggerComponentBase::init ( NATIVE_INT_TYPE  queueDepth,
NATIVE_INT_TYPE  instance = 0 
)

Initialize BufferLoggerComponentBase object.

Parameters
queueDepthThe queue depth
instanceThe instance number

Definition at line 79 of file BufferLoggerComponentAc.cpp.

◆ isConnected_bufferSendOut_OutputPort()

bool Svc::BufferLoggerComponentBase::isConnected_bufferSendOut_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port bufferSendOut is connected

Returns
Whether port bufferSendOut is connected
Parameters
portNumThe port number

Definition at line 1014 of file BufferLoggerComponentAc.cpp.

◆ isConnected_cmdRegOut_OutputPort()

bool Svc::BufferLoggerComponentBase::isConnected_cmdRegOut_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port cmdRegOut is connected

Returns
Whether port cmdRegOut is connected
Parameters
portNumThe port number

Definition at line 940 of file BufferLoggerComponentAc.cpp.

◆ isConnected_cmdResponseOut_OutputPort()

bool Svc::BufferLoggerComponentBase::isConnected_cmdResponseOut_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port cmdResponseOut is connected

Returns
Whether port cmdResponseOut is connected
Parameters
portNumThe port number

Definition at line 951 of file BufferLoggerComponentAc.cpp.

◆ isConnected_eventOut_OutputPort()

bool Svc::BufferLoggerComponentBase::isConnected_eventOut_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port eventOut is connected

Returns
Whether port eventOut is connected
Parameters
portNumThe port number

Definition at line 962 of file BufferLoggerComponentAc.cpp.

◆ isConnected_pingOut_OutputPort()

bool Svc::BufferLoggerComponentBase::isConnected_pingOut_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port pingOut is connected

Returns
Whether port pingOut is connected
Parameters
portNumThe port number

Definition at line 1025 of file BufferLoggerComponentAc.cpp.

◆ isConnected_timeCaller_OutputPort()

bool Svc::BufferLoggerComponentBase::isConnected_timeCaller_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port timeCaller is connected

Returns
Whether port timeCaller is connected
Parameters
portNumThe port number

Definition at line 988 of file BufferLoggerComponentAc.cpp.

◆ isConnected_tlmOut_OutputPort()

bool Svc::BufferLoggerComponentBase::isConnected_tlmOut_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port tlmOut is connected

Returns
Whether port tlmOut is connected
Parameters
portNumThe port number

Definition at line 999 of file BufferLoggerComponentAc.cpp.

◆ log_ACTIVITY_LO_BL_Activated()

void Svc::BufferLoggerComponentBase::log_ACTIVITY_LO_BL_Activated ( )
protected

Log event BL_Activated

Buffer logger was activated

Definition at line 2063 of file BufferLoggerComponentAc.cpp.

◆ log_ACTIVITY_LO_BL_Deactivated()

void Svc::BufferLoggerComponentBase::log_ACTIVITY_LO_BL_Deactivated ( )
protected

Log event BL_Deactivated

Buffer logger was deactivated

Definition at line 2134 of file BufferLoggerComponentAc.cpp.

◆ log_DIAGNOSTIC_BL_LogFileClosed()

void Svc::BufferLoggerComponentBase::log_DIAGNOSTIC_BL_LogFileClosed ( const Fw::LogStringArg file)
protected

Log event BL_LogFileClosed

The Buffer Logger closed a log file

Parameters
fileThe file

Definition at line 1655 of file BufferLoggerComponentAc.cpp.

◆ log_WARNING_HI_BL_LogFileOpenError()

void Svc::BufferLoggerComponentBase::log_WARNING_HI_BL_LogFileOpenError ( U32  errornum,
const Fw::LogStringArg file 
)
protected

Log event BL_LogFileOpenError

The Buffer Logger encountered an error opening a log file

Parameters
errornumThe error number returned from the open operation
fileThe file

Definition at line 1733 of file BufferLoggerComponentAc.cpp.

◆ log_WARNING_HI_BL_LogFileValidationError()

void Svc::BufferLoggerComponentBase::log_WARNING_HI_BL_LogFileValidationError ( const Fw::LogStringArg validationFile,
U32  status 
)
protected

Log event BL_LogFileValidationError

The Buffer Logger encountered an error writing a validation file

Parameters
validationFileThe validation file
statusThe Os::Validate::Status return

Definition at line 1831 of file BufferLoggerComponentAc.cpp.

◆ log_WARNING_HI_BL_LogFileWriteError()

void Svc::BufferLoggerComponentBase::log_WARNING_HI_BL_LogFileWriteError ( U32  errornum,
U32  bytesWritten,
U32  bytesToWrite,
const Fw::LogStringArg file 
)
protected

Log event BL_LogFileWriteError

The Buffer Logger encountered an error writing to a log file

Parameters
errornumThe error number returned from the write operation
bytesWrittenThe number of bytes successfully written
bytesToWriteThe number of bytes attempted
fileThe file

Definition at line 1929 of file BufferLoggerComponentAc.cpp.

◆ log_WARNING_HI_BL_NoLogFileOpenInitError()

void Svc::BufferLoggerComponentBase::log_WARNING_HI_BL_NoLogFileOpenInitError ( )
protected

Log event BL_NoLogFileOpenInitError

No log file open command was received by BufferLogger

Definition at line 2205 of file BufferLoggerComponentAc.cpp.

◆ pingIn_handler()

virtual void Svc::BufferLoggerComponentBase::pingIn_handler ( NATIVE_INT_TYPE  portNum,
U32  key 
)
protectedpure virtual

Handler for input port pingIn.

Parameters
portNumThe port number
keyValue to return to pinger

◆ pingIn_handlerBase()

void Svc::BufferLoggerComponentBase::pingIn_handlerBase ( NATIVE_INT_TYPE  portNum,
U32  key 
)
protected

Handler base-class function for input port pingIn.

Parameters
portNumThe port number
keyValue to return to pinger

Definition at line 1157 of file BufferLoggerComponentAc.cpp.

◆ pingIn_preMsgHook()

void Svc::BufferLoggerComponentBase::pingIn_preMsgHook ( NATIVE_INT_TYPE  portNum,
U32  key 
)
protectedvirtual

Pre-message hook for async input port pingIn.

Parameters
portNumThe port number
keyValue to return to pinger

Definition at line 1290 of file BufferLoggerComponentAc.cpp.

◆ pingOut_out()

void Svc::BufferLoggerComponentBase::pingOut_out ( NATIVE_INT_TYPE  portNum,
U32  key 
)
protected

Invoke output port pingOut.

Parameters
portNumThe port number
keyValue to return to pinger

Definition at line 1327 of file BufferLoggerComponentAc.cpp.

◆ regCommands()

void Svc::BufferLoggerComponentBase::regCommands ( )

Register commands with the Command Dispatcher.

Connect the dispatcher first

Definition at line 799 of file BufferLoggerComponentAc.cpp.

◆ schedIn_handler()

virtual void Svc::BufferLoggerComponentBase::schedIn_handler ( NATIVE_INT_TYPE  portNum,
NATIVE_UINT_TYPE  context 
)
protectedpure virtual

Handler for input port schedIn.

Parameters
portNumThe port number
contextThe call order

◆ schedIn_handlerBase()

void Svc::BufferLoggerComponentBase::schedIn_handlerBase ( NATIVE_INT_TYPE  portNum,
NATIVE_UINT_TYPE  context 
)
protected

Handler base-class function for input port schedIn.

Parameters
portNumThe port number
contextThe call order

Definition at line 1210 of file BufferLoggerComponentAc.cpp.

◆ schedIn_preMsgHook()

void Svc::BufferLoggerComponentBase::schedIn_preMsgHook ( NATIVE_INT_TYPE  portNum,
NATIVE_UINT_TYPE  context 
)
protectedvirtual

Pre-message hook for async input port schedIn.

Parameters
portNumThe port number
contextThe call order

Definition at line 1299 of file BufferLoggerComponentAc.cpp.

◆ set_bufferSendOut_OutputPort()

void Svc::BufferLoggerComponentBase::set_bufferSendOut_OutputPort ( NATIVE_INT_TYPE  portNum,
Fw::InputBufferSendPort port 
)

Connect port to bufferSendOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 635 of file BufferLoggerComponentAc.cpp.

◆ set_cmdRegOut_OutputPort()

void Svc::BufferLoggerComponentBase::set_cmdRegOut_OutputPort ( NATIVE_INT_TYPE  portNum,
Fw::InputCmdRegPort port 
)

Connect port to cmdRegOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 543 of file BufferLoggerComponentAc.cpp.

◆ set_cmdResponseOut_OutputPort()

void Svc::BufferLoggerComponentBase::set_cmdResponseOut_OutputPort ( NATIVE_INT_TYPE  portNum,
Fw::InputCmdResponsePort port 
)

Connect port to cmdResponseOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 557 of file BufferLoggerComponentAc.cpp.

◆ set_eventOut_OutputPort()

void Svc::BufferLoggerComponentBase::set_eventOut_OutputPort ( NATIVE_INT_TYPE  portNum,
Fw::InputLogPort port 
)

Connect port to eventOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 571 of file BufferLoggerComponentAc.cpp.

◆ set_pingOut_OutputPort()

void Svc::BufferLoggerComponentBase::set_pingOut_OutputPort ( NATIVE_INT_TYPE  portNum,
Svc::InputPingPort port 
)

Connect port to pingOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 649 of file BufferLoggerComponentAc.cpp.

◆ set_timeCaller_OutputPort()

void Svc::BufferLoggerComponentBase::set_timeCaller_OutputPort ( NATIVE_INT_TYPE  portNum,
Fw::InputTimePort port 
)

Connect port to timeCaller[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 603 of file BufferLoggerComponentAc.cpp.

◆ set_tlmOut_OutputPort()

void Svc::BufferLoggerComponentBase::set_tlmOut_OutputPort ( NATIVE_INT_TYPE  portNum,
Fw::InputTlmPort port 
)

Connect port to tlmOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 617 of file BufferLoggerComponentAc.cpp.

◆ tlmWrite_BufferLogger_NumLoggedBuffers()

void Svc::BufferLoggerComponentBase::tlmWrite_BufferLogger_NumLoggedBuffers ( U32  arg,
Fw::Time  _tlmTime = Fw::Time() 
)
protected

Write telemetry channel BufferLogger_NumLoggedBuffers

The number of buffers logged

Parameters
argThe telemetry value
_tlmTimeTimestamp. Default: unspecified, request from getTime port

Definition at line 2280 of file BufferLoggerComponentAc.cpp.

Friends And Related Function Documentation

◆ BufferLoggerComponentBaseFriend

friend class BufferLoggerComponentBaseFriend
friend

Friend class for white-box testing.

Definition at line 45 of file BufferLoggerComponentAc.hpp.


The documentation for this class was generated from the following files: