Skip to content
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

Fix #24, Resolve strict cppcheck style warnings #26

Merged
merged 1 commit into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions fsw/src/sc_atsrq.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] AtsId The Ats to begin
* \param[in] AtsIndex The Ats to begin
* \param[in] TimeOffset Where to start in the ATS
*
* \return Boolean execution status
* \retval true ATS was started
* \retval false ATS was NOT started
*/
bool SC_BeginAts(uint16 AtsId, uint16 TimeOffset);
bool SC_BeginAts(uint16 AtsIndex, uint16 TimeOffset);

/**
* \brief Start an ATS Command
Expand All @@ -59,11 +59,11 @@ bool SC_BeginAts(uint16 AtsId, uint16 TimeOffset);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*
* \sa #SC_START_ATS_CC
*/
void SC_StartAtsCmd(const CFE_SB_Buffer_t *CmdPacket);
void SC_StartAtsCmd(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief Stop the executing ATS Command
Expand All @@ -76,11 +76,11 @@ void SC_StartAtsCmd(const CFE_SB_Buffer_t *CmdPacket);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*
* \sa #SC_STOP_ATS_CC
*/
void SC_StopAtsCmd(const CFE_SB_Buffer_t *CmdPacket);
void SC_StopAtsCmd(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief Stops an ATS & clears out data
Expand Down Expand Up @@ -110,11 +110,11 @@ void SC_KillAts(void);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*
* \sa #SC_SWITCH_ATS_CC
*/
void SC_GroundSwitchCmd(const CFE_SB_Buffer_t *CmdPacket);
void SC_GroundSwitchCmd(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief
Expand Down Expand Up @@ -180,11 +180,11 @@ void SC_ServiceSwitchPend(void);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*
* \sa #SC_JUMP_ATS_CC
*/
void SC_JumpAtsCmd(const CFE_SB_Buffer_t *CmdPacket);
void SC_JumpAtsCmd(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief Lets an ATS continue if a command failed the checksum
Expand All @@ -196,11 +196,11 @@ void SC_JumpAtsCmd(const CFE_SB_Buffer_t *CmdPacket);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*
* \sa #SC_CONTINUE_ATS_ON_FAILURE_CC
*/
void SC_ContinueAtsOnFailureCmd(const CFE_SB_Buffer_t *CmdPacket);
void SC_ContinueAtsOnFailureCmd(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief Append to an ATS Command
Expand All @@ -215,10 +215,10 @@ void SC_ContinueAtsOnFailureCmd(const CFE_SB_Buffer_t *CmdPacket);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*
* \sa #SC_APPEND_ATS_CC
*/
void SC_AppendAtsCmd(const CFE_SB_Buffer_t *CmdPacket);
void SC_AppendAtsCmd(const CFE_SB_Buffer_t *BufPtr);

#endif
20 changes: 10 additions & 10 deletions fsw/src/sc_cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*
* \sa #SC_MANAGE_TABLE_CC
*/
void SC_TableManageCmd(const CFE_SB_Buffer_t *CmdPacket);
void SC_TableManageCmd(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief Manage pending update to an RTS table
Expand Down Expand Up @@ -112,9 +112,9 @@ void SC_ManageAppendTable(void);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*/
void SC_ProcessRequest(const CFE_SB_Buffer_t *CmdPacket);
void SC_ProcessRequest(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief Processes commands
Expand All @@ -126,9 +126,9 @@ void SC_ProcessRequest(const CFE_SB_Buffer_t *CmdPacket);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*/
void SC_ProcessCommand(const CFE_SB_Buffer_t *CmdPacket);
void SC_ProcessCommand(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief Sends out an Event message
Expand All @@ -139,11 +139,11 @@ void SC_ProcessCommand(const CFE_SB_Buffer_t *CmdPacket);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*
* \sa #SC_NOOP_CC
*/
void SC_NoOpCmd(const CFE_SB_Buffer_t *CmdPacket);
void SC_NoOpCmd(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief Reset Counters Command
Expand All @@ -154,11 +154,11 @@ void SC_NoOpCmd(const CFE_SB_Buffer_t *CmdPacket);
* \par Assumptions, External Events, and Notes:
* None
*
* \param[in] CmdPacket Pointer to Software Bus buffer
* \param[in] BufPtr Pointer to Software Bus buffer
*
* \sa #SC_RESET_COUNTERS_CC
*/
void SC_ResetCountersCmd(const CFE_SB_Buffer_t *CmdPacket);
void SC_ResetCountersCmd(const CFE_SB_Buffer_t *BufPtr);

/**
* \brief Send Hk Packet to the ground
Expand Down
8 changes: 4 additions & 4 deletions fsw/src/sc_loads.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
* \par Assumptions, External Events, and Notes:
* None
*
* \param [in] Buffer A pointer to the area to validate
* \param [in] Buffer32 Pointer to the area to validate
*
* \return Boolean RTS valid status
* \retval true RTS was valid
* \retval false RTS was NOT valid
*/
bool SC_ParseRts(uint32 Buffer[]);
bool SC_ParseRts(uint32 Buffer32[]);

/**
* \brief Buids the Time index buffer for the ATS
Expand Down Expand Up @@ -107,7 +107,7 @@ void SC_InitAtsTables(uint16 AtsIndex);
* \retval #CFE_SUCCESS Table validation success
* \retval #SC_ERROR Table not valid
*/
int32 SC_VerifyAtsTable(uint32 *Buffer, int32 BufferWords);
int32 SC_VerifyAtsTable(uint32 *Buffer32, int32 BufferWords);

/**
* \brief Validation function for a single ATS or Append ATS table entry
Expand All @@ -123,7 +123,7 @@ int32 SC_VerifyAtsTable(uint32 *Buffer, int32 BufferWords);
* \retval #CFE_SUCCESS Empty entry
* \retval #SC_ERROR Entry is invalid
*/
int32 SC_VerifyAtsEntry(uint32 *Buffer, int32 EntryIndex, int32 BufferWords);
int32 SC_VerifyAtsEntry(uint32 *Buffer32, int32 EntryIndex, int32 BufferWords);

/**
* \brief Loads an ATS into the data structures in SC
Expand Down