![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for PrmDb component. More...
#include <Svc/PrmDb/PrmDbComponentAc.hpp>
Protected Member Functions | |
| PrmDbComponentBase (const char *compName="") | |
| Construct PrmDbComponentBase object. More... | |
| virtual | ~PrmDbComponentBase () |
| Destroy PrmDbComponentBase object. More... | |
| bool | isConnected_CmdReg_OutputPort (FwIndexType portNum) |
| bool | isConnected_CmdStatus_OutputPort (FwIndexType portNum) |
| bool | isConnected_Log_OutputPort (FwIndexType portNum) |
| bool | isConnected_Time_OutputPort (FwIndexType portNum) |
| bool | isConnected_pingOut_OutputPort (FwIndexType portNum) |
| virtual Fw::ParamValid | getPrm_handler (FwIndexType portNum, FwPrmIdType id, Fw::ParamBuffer &val)=0 |
| Handler for input port getPrm. More... | |
| virtual void | pingIn_handler (FwIndexType portNum, U32 key)=0 |
| Handler for input port pingIn. More... | |
| virtual void | setPrm_handler (FwIndexType portNum, FwPrmIdType id, Fw::ParamBuffer &val)=0 |
| Handler for input port setPrm. More... | |
| Fw::ParamValid | getPrm_handlerBase (FwIndexType portNum, FwPrmIdType id, Fw::ParamBuffer &val) |
| Handler base-class function for input port getPrm. More... | |
| void | pingIn_handlerBase (FwIndexType portNum, U32 key) |
| Handler base-class function for input port pingIn. More... | |
| void | setPrm_handlerBase (FwIndexType portNum, FwPrmIdType id, Fw::ParamBuffer &val) |
| Handler base-class function for input port setPrm. More... | |
| virtual void | pingIn_preMsgHook (FwIndexType portNum, U32 key) |
| Pre-message hook for async input port pingIn. More... | |
| virtual void | setPrm_preMsgHook (FwIndexType portNum, FwPrmIdType id, Fw::ParamBuffer &val) |
| Pre-message hook for async input port setPrm. More... | |
| void | pingOut_out (FwIndexType portNum, U32 key) |
| Invoke output port pingOut. More... | |
| void | cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response) |
| Emit command response. More... | |
| virtual void | PRM_SAVE_FILE_cmdHandler (FwOpcodeType opCode, U32 cmdSeq)=0 |
| virtual void | PRM_LOAD_FILE_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, Svc::PrmDb_Merge merge)=0 |
| virtual void | PRM_COMMIT_STAGED_cmdHandler (FwOpcodeType opCode, U32 cmdSeq)=0 |
| void | PRM_SAVE_FILE_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | PRM_LOAD_FILE_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | PRM_COMMIT_STAGED_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| virtual void | PRM_SAVE_FILE_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command PRM_SAVE_FILE. More... | |
| virtual void | PRM_LOAD_FILE_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command PRM_LOAD_FILE. More... | |
| virtual void | PRM_COMMIT_STAGED_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command PRM_COMMIT_STAGED. More... | |
| void | log_WARNING_LO_PrmIdNotFound (FwPrmIdType Id) |
| void | log_ACTIVITY_HI_PrmIdUpdated (FwPrmIdType Id) const |
| void | log_WARNING_HI_PrmDbFull (FwPrmIdType Id) const |
| void | log_ACTIVITY_HI_PrmIdAdded (FwPrmIdType Id) const |
| void | log_WARNING_HI_PrmFileWriteError (Svc::PrmDb_PrmWriteError stage, I32 record, I32 error) const |
| void | log_ACTIVITY_HI_PrmFileSaveComplete (U32 records) const |
| void | log_WARNING_HI_PrmFileReadError (Svc::PrmDb_PrmReadError stage, I32 record, I32 error) const |
| void | log_ACTIVITY_HI_PrmFileLoadComplete (const Fw::StringBase &databaseString, U32 recordsTotal, U32 recordsAdded, U32 recordsUpdated) const |
| void | log_ACTIVITY_HI_PrmDbCommitComplete () const |
| void | log_ACTIVITY_HI_PrmDbCopyAllComplete (const Fw::StringBase &databaseStringSrc, const Fw::StringBase &databaseStringDest) const |
| void | log_WARNING_HI_PrmDbFileLoadFailed () const |
| void | log_WARNING_LO_PrmDbFileLoadInvalidAction (Svc::PrmDb_PrmDbFileLoadState currentState, Svc::PrmDb_PrmLoadAction attemptedAction) const |
| void | log_WARNING_LO_PrmIdNotFound_ThrottleClear () |
| Reset throttle value for PrmIdNotFound. More... | |
| Fw::Time | getTime () const |
| virtual void | lock () |
| Lock the guarded mutex. More... | |
| virtual void | unLock () |
| Unlock the guarded mutex. More... | |
Protected Member Functions inherited from Fw::ActiveComponentBase | |
| ActiveComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~ActiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| initialization code More... | |
| virtual void | preamble () |
| A function that will be called before the event loop is entered. More... | |
| MsgDispatchStatus | dispatch () |
| The function that will 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 (FwEnumStoreType instance) |
| initialization function More... | |
| Os::Queue::Status | createQueue (FwSizeType depth, FwSizeType msgSize) |
| FwSizeType | 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 (FwEnumStoreType instance) |
| Initialization function. More... | |
| FwEnumStoreType | 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... | |
Static Protected Member Functions | |
| static constexpr FwIndexType | getNum_CmdDisp_InputPorts () |
| static constexpr FwIndexType | getNum_getPrm_InputPorts () |
| static constexpr FwIndexType | getNum_pingIn_InputPorts () |
| static constexpr FwIndexType | getNum_setPrm_InputPorts () |
| static constexpr FwIndexType | getNum_CmdReg_OutputPorts () |
| static constexpr FwIndexType | getNum_CmdStatus_OutputPorts () |
| static constexpr FwIndexType | getNum_Log_OutputPorts () |
| static constexpr FwIndexType | getNum_Time_OutputPorts () |
| static constexpr FwIndexType | getNum_pingOut_OutputPorts () |
Friends | |
| class | PrmDbTesterBase |
| Friend class tester to support autocoded test harness. More... | |
| class | PrmDbTester |
| Friend class tester implementation to support 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... | |
Auto-generated base for PrmDb component.
A component for storing parameters
Definition at line 43 of file PrmDbComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
| Enumerator | |
|---|---|
| NUM_CMDDISP_INPUT_PORTS | |
Definition at line 63 of file PrmDbComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_GETPRM_INPUT_PORTS | |
| NUM_PINGIN_INPUT_PORTS | |
| NUM_SETPRM_INPUT_PORTS | |
Definition at line 68 of file PrmDbComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
| Enumerator | |
|---|---|
| NUM_CMDREG_OUTPUT_PORTS | |
| NUM_CMDSTATUS_OUTPUT_PORTS | |
| NUM_LOG_OUTPUT_PORTS | |
| NUM_LOGTEXT_OUTPUT_PORTS | |
| NUM_TIME_OUTPUT_PORTS | |
Definition at line 75 of file PrmDbComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
| Enumerator | |
|---|---|
| NUM_PINGOUT_OUTPUT_PORTS | |
Definition at line 84 of file PrmDbComponentAc.hpp.
|
protected |
Command opcodes.
Definition at line 89 of file PrmDbComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 96 of file PrmDbComponentAc.hpp.
|
protected |
Event throttle values: sets initial value of countdown variables.
| Enumerator | |
|---|---|
| EVENTID_PRMIDNOTFOUND_THROTTLE | Throttle reset count for PrmIdNotFound. |
Definition at line 112 of file PrmDbComponentAc.hpp.
|
protected |
Construct PrmDbComponentBase object.
| compName | The component name |
Definition at line 585 of file PrmDbComponentAc.cpp.
|
protectedvirtual |
Destroy PrmDbComponentBase object.
Definition at line 592 of file PrmDbComponentAc.cpp.
|
protected |
Emit command response.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| response | The command response |
Definition at line 883 of file PrmDbComponentAc.cpp.
| Fw::InputCmdPort * Svc::PrmDbComponentBase::get_CmdDisp_InputPort | ( | FwIndexType | portNum | ) |
Get special input port at index
| portNum | The port number |
Definition at line 311 of file PrmDbComponentAc.cpp.
| Fw::InputPrmGetPort * Svc::PrmDbComponentBase::get_getPrm_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 326 of file PrmDbComponentAc.cpp.
| Svc::InputPingPort * Svc::PrmDbComponentBase::get_pingIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 337 of file PrmDbComponentAc.cpp.
| Fw::InputPrmSetPort * Svc::PrmDbComponentBase::get_setPrm_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 348 of file PrmDbComponentAc.cpp.
|
inlinestaticprotected |
Get the number of CmdDisp input ports
Definition at line 314 of file PrmDbComponentAc.hpp.
|
inlinestaticprotected |
Get the number of CmdReg output ports
Definition at line 354 of file PrmDbComponentAc.hpp.
|
inlinestaticprotected |
Get the number of CmdStatus output ports
Definition at line 361 of file PrmDbComponentAc.hpp.
|
inlinestaticprotected |
Get the number of getPrm input ports
Definition at line 327 of file PrmDbComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Log output ports
Definition at line 368 of file PrmDbComponentAc.hpp.
|
inlinestaticprotected |
Get the number of pingIn input ports
Definition at line 334 of file PrmDbComponentAc.hpp.
|
inlinestaticprotected |
Get the number of pingOut output ports
Definition at line 399 of file PrmDbComponentAc.hpp.
|
inlinestaticprotected |
Get the number of setPrm input ports
Definition at line 341 of file PrmDbComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Time output ports
Definition at line 386 of file PrmDbComponentAc.hpp.
|
protectedpure virtual |
Handler for input port getPrm.
| portNum | The port number |
| id | Parameter ID |
| val | Buffer containing serialized parameter value. Unmodified if param not found. |
|
protected |
Handler base-class function for input port getPrm.
| portNum | The port number |
| id | Parameter ID |
| val | Buffer containing serialized parameter value. Unmodified if param not found. |
Definition at line 682 of file PrmDbComponentAc.cpp.
|
protected |
| void Svc::PrmDbComponentBase::init | ( | FwSizeType | queueDepth, |
| FwEnumStoreType | instance = 0 |
||
| ) |
Initialize PrmDbComponentBase object.
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 75 of file PrmDbComponentAc.cpp.
|
protected |
Check whether port CmdReg is connected
| portNum | The port number |
Definition at line 602 of file PrmDbComponentAc.cpp.
|
protected |
Check whether port CmdStatus is connected
| portNum | The port number |
Definition at line 613 of file PrmDbComponentAc.cpp.
|
protected |
Check whether port Log is connected
| portNum | The port number |
Definition at line 624 of file PrmDbComponentAc.cpp.
|
protected |
Check whether port pingOut is connected
| portNum | The port number |
Definition at line 665 of file PrmDbComponentAc.cpp.
|
protected |
Check whether port Time is connected
| portNum | The port number |
Definition at line 650 of file PrmDbComponentAc.cpp.
|
protectedvirtual |
Lock the guarded mutex.
Definition at line 2268 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmDbCommitComplete
Committed staged parameter updates
Definition at line 1914 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmDbCopyAllComplete
All parameters Copied from one DB to another
| databaseStringSrc | The src database string |
| databaseStringDest | The dest database string |
Definition at line 1979 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmFileLoadComplete
Load of parameter file completed
| databaseString | The database string |
| recordsTotal | The number of records total |
| recordsAdded | The number of new records added |
| recordsUpdated | The number of records updated |
Definition at line 1786 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmFileSaveComplete
Save of parameter file completed
| records | The number of records saved |
Definition at line 1581 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmIdAdded
Parameter ID added to database
| Id | The parameter ID |
Definition at line 1376 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmIdUpdated
Parameter ID updated in database
| Id | The parameter ID |
Definition at line 1212 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmDbFileLoadFailed
Parameter file load failed, not staging any update
Definition at line 2061 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmDbFull
Parameter database is full
| Id | The parameter ID |
Definition at line 1294 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmFileReadError
Failed to read parameter file
| stage | The read stage |
| record | The record that had the failure |
| error | The error code |
Definition at line 1663 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmFileWriteError
Failed to write parameter file
| stage | The write stage |
| record | The record that had the failure |
| error | The error code |
Definition at line 1458 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmDbFileLoadInvalidAction
Invalid Action during parameter file load
| currentState | The current state |
| attemptedAction | The invalid action attempted |
Definition at line 2126 of file PrmDbComponentAc.cpp.
|
protected |
Log event PrmIdNotFound
Parameter ID not found in database.
| Id | The parameter ID |
Definition at line 1122 of file PrmDbComponentAc.cpp.
|
protected |
Reset throttle value for PrmIdNotFound.
Definition at line 2237 of file PrmDbComponentAc.cpp.
|
protectedpure virtual |
Handler for input port pingIn.
| portNum | The port number |
| key | Value to return to pinger |
|
protected |
Handler base-class function for input port pingIn.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 713 of file PrmDbComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port pingIn.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 836 of file PrmDbComponentAc.cpp.
|
protected |
Invoke output port pingOut.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 859 of file PrmDbComponentAc.cpp.
|
protectedpure virtual |
Handler for command PRM_COMMIT_STAGED
Commits the backup database to become the prime (active) database
| opCode | The opcode |
| cmdSeq | The command sequence number |
|
protected |
Base-class handler function for command PRM_COMMIT_STAGED
Commits the backup database to become the prime (active) database
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1018 of file PrmDbComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command PRM_COMMIT_STAGED.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1107 of file PrmDbComponentAc.cpp.
|
protectedpure virtual |
Handler for command PRM_LOAD_FILE
Loads a file from storage into the staging database. The file could have selective IDs and not the whole set.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| fileName | The name of the on-board file to set parameters from |
| merge | Whether to merge or fully reset the parameter database from the file contents |
|
protected |
Base-class handler function for command PRM_LOAD_FILE
Loads a file from storage into the staging database. The file could have selective IDs and not the whole set.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 959 of file PrmDbComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command PRM_LOAD_FILE.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1096 of file PrmDbComponentAc.cpp.
|
protectedpure virtual |
Handler for command PRM_SAVE_FILE
Command to save parameter image to file. Uses file name passed to constructor
| opCode | The opcode |
| cmdSeq | The command sequence number |
|
protected |
Base-class handler function for command PRM_SAVE_FILE
Command to save parameter image to file. Uses file name passed to constructor
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 900 of file PrmDbComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command PRM_SAVE_FILE.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1085 of file PrmDbComponentAc.cpp.
| void Svc::PrmDbComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 563 of file PrmDbComponentAc.cpp.
| void Svc::PrmDbComponentBase::set_CmdReg_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdRegPort * | port | ||
| ) |
Connect port to CmdReg[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 363 of file PrmDbComponentAc.cpp.
| void Svc::PrmDbComponentBase::set_CmdStatus_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdResponsePort * | port | ||
| ) |
Connect port to CmdStatus[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 377 of file PrmDbComponentAc.cpp.
| void Svc::PrmDbComponentBase::set_Log_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to Log[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 391 of file PrmDbComponentAc.cpp.
| void Svc::PrmDbComponentBase::set_pingOut_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputPingPort * | port | ||
| ) |
Connect port to pingOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 441 of file PrmDbComponentAc.cpp.
| void Svc::PrmDbComponentBase::set_Time_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to Time[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 423 of file PrmDbComponentAc.cpp.
|
protectedpure virtual |
Handler for input port setPrm.
| portNum | The port number |
| id | Parameter ID |
| val | Buffer containing serialized parameter value |
|
protected |
Handler base-class function for input port setPrm.
| portNum | The port number |
| id | Parameter ID |
| val | Buffer containing serialized parameter value |
Definition at line 766 of file PrmDbComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port setPrm.
| portNum | The port number |
| id | Parameter ID |
| val | Buffer containing serialized parameter value |
Definition at line 845 of file PrmDbComponentAc.cpp.
|
protectedvirtual |
Unlock the guarded mutex.
Definition at line 2274 of file PrmDbComponentAc.cpp.
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 54 of file PrmDbComponentAc.hpp.
|
friend |
Friend class tester to support autocoded test harness.
Definition at line 52 of file PrmDbComponentAc.hpp.