-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial commit for Svc::CmdSplitter #2081
Conversation
U32 cmdSeq, | ||
const Fw::CmdResponse& response) { | ||
// Forward the command status | ||
this->forwardSeqCmdStatus_out(portNum, opCode, cmdSeq, response); |
Check warning
Code scanning / CodeQL
Unchecked function argument
U32 cmdSeq, | ||
const Fw::CmdResponse& response) { | ||
// Forward the command status | ||
this->forwardSeqCmdStatus_out(portNum, opCode, cmdSeq, response); |
Check warning
Code scanning / CodeQL
Unchecked function argument
U32 cmdSeq, | ||
const Fw::CmdResponse& response) { | ||
// Forward the command status | ||
this->forwardSeqCmdStatus_out(portNum, opCode, cmdSeq, response); |
Check warning
Code scanning / CodeQL
Unchecked function argument
U32 cmdSeq, | ||
const Fw::CmdResponse& response) { | ||
// Forward the command status | ||
this->forwardSeqCmdStatus_out(portNum, opCode, cmdSeq, response); |
Check warning
Code scanning / CodeQL
Unchecked function argument
|
||
void CmdSplitter ::CmdBuff_handler(const NATIVE_INT_TYPE portNum, Fw::ComBuffer& data, U32 context) { | ||
Fw::CmdPacket cmdPkt; | ||
Fw::SerializeStatus stat = cmdPkt.deserialize(data); |
Check warning
Code scanning / CodeQL
Unchecked function argument
|
||
if (stat != Fw::FW_SERIALIZE_OK) { | ||
// Let the local command dispatcher deal with it | ||
this->LocalCmd_out(0, data, context); |
Check warning
Code scanning / CodeQL
Unchecked function argument
} else { | ||
// Check if local or remote | ||
if (cmdPkt.getOpCode() < CMD_SPLITTER_REMOTE_OPCODE_BASE) { | ||
this->LocalCmd_out(0, data, context); |
Check warning
Code scanning / CodeQL
Unchecked function argument
if (cmdPkt.getOpCode() < CMD_SPLITTER_REMOTE_OPCODE_BASE) { | ||
this->LocalCmd_out(0, data, context); | ||
} else { | ||
this->RemoteCmd_out(0, data, context); |
Check warning
Code scanning / CodeQL
Unchecked function argument
// Handler implementations for user-defined typed input ports | ||
// ---------------------------------------------------------------------- | ||
|
||
void CmdSplitter ::CmdBuff_handler(const NATIVE_INT_TYPE portNum, Fw::ComBuffer& data, U32 context) { |
Check notice
Code scanning / CodeQL
Long function without assertion
|
||
CmdSplitter ::CmdSplitter(const char* const compName) : CmdSplitterComponentBase(compName) {} | ||
|
||
CmdSplitter ::~CmdSplitter() {} |
Check notice
Code scanning / CodeQL
More than one statement per line
// Construction, initialization, and destruction | ||
// ---------------------------------------------------------------------- | ||
|
||
CmdSplitter ::CmdSplitter(const char* const compName) : CmdSplitterComponentBase(compName) {} |
Check notice
Code scanning / CodeQL
More than one statement per line
} | ||
} | ||
|
||
void CmdSplitter ::seqCmdStatus_handler(const NATIVE_INT_TYPE portNum, |
Check notice
Code scanning / CodeQL
Use of basic integral type
// Handler implementations for user-defined typed input ports | ||
// ---------------------------------------------------------------------- | ||
|
||
void CmdSplitter ::CmdBuff_handler(const NATIVE_INT_TYPE portNum, Fw::ComBuffer& data, U32 context) { |
Check notice
Code scanning / CodeQL
Use of basic integral type
// Construction, initialization, and destruction | ||
// ---------------------------------------------------------------------- | ||
|
||
CmdSplitter ::CmdSplitter(const char* const compName) : CmdSplitterComponentBase(compName) {} |
Check notice
Code scanning / CodeQL
Use of basic integral type
* Initial commit for Svc::CmdSplitter * sp
* Initial commit for Svc::CmdSplitter * sp
Change Description
Adding a command splitter for use with
Svc::GenericHub
.