fsw/src/sample_app.c
void SAMPLE_ProcessCommandPacket( CFE_SB_MsgPtr_t Msg )
{
    CFE_SB_MsgId_t  MsgId;

    MsgId = CFE_SB_GetMsgId(Msg);

    switch (MsgId)
    {
        case SAMPLE_APP_CMD_MID:
            SAMPLE_ProcessGroundCommand(Msg);
            break;

        case SAMPLE_APP_SEND_HK_MID:
            SAMPLE_ReportHousekeeping((CCSDS_CommandPacket_t *)Msg);
            break;

        default:
            CFE_EVS_SendEvent(SAMPLE_INVALID_MSGID_ERR_EID,
                              CFE_EVS_ERROR,
         	              "SAMPLE: invalid command packet,MID = 0x%x",
                              MsgId);
            break;
    }

    return;

}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * **/
/*  Name:  SAMPLE_ProcessCommandPacket                                        */
/*                                                                            */
/*  Purpose:                                                                  */
/*     This routine will process any packet that is received on the SAMPLE    */
/*     command pipe.                                                          */
/*                                                                            */
/* * * * * * * * * * * * * * * * * * * * * * * *  * * * * * * *  * *  * * * * */


This routine will process any packet that is received on the SAMPLE
command pipe.


This routine will process any packet that is received on the SAMPLE command pipe .
void SAMPLE_ProcessCommandPacket( CFE_SB_MsgPtr_t Msg )
{
    CFE_SB_MsgId_t  MsgId;
    MsgId = CFE_SB_GetMsgId(Msg);
    switch (MsgId)
    {
        case SAMPLE_APP_CMD_MID:
            SAMPLE_ProcessGroundCommand(Msg);
            break;
        case SAMPLE_APP_SEND_HK_MID:
            SAMPLE_ReportHousekeeping((CCSDS_CommandPacket_t *)Msg);
            break;
        default:
            CFE_EVS_SendEvent(SAMPLE_INVALID_MSGID_ERR_EID,
                              CFE_EVS_ERROR,
         	              "SAMPLE: invalid command packet,MID = 0x%x",
                              MsgId);
            break;
    }
    return;
}
void SAMPLE_ProcessCommandPacket ( CFE_SB_MsgPtr_t Msg ) { CFE_SB_MsgId_t MsgId ; MsgId = CFE_SB_GetMsgId ( Msg ) ; switch ( MsgId ) { case SAMPLE_APP_CMD_MID : SAMPLE_ProcessGroundCommand ( Msg ) ; break ; case SAMPLE_APP_SEND_HK_MID : SAMPLE_ReportHousekeeping ( ( CCSDS_CommandPacket_t * ) Msg ) ; break ; default : CFE_EVS_SendEvent ( SAMPLE_INVALID_MSGID_ERR_EID , CFE_EVS_ERROR , " " , MsgId ) ; break ; } return ; }
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
Name:  SAMPLE_ProcessCommandPacket
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Name : SAMPLE_ProcessCommandPacket