fsw/src/sample_app.c
void  SAMPLE_ProcessCC( const SAMPLE_Process_t *Msg )
{
    int32 status;
    SampleTable_t *TblPtr;
    const char *TableName = "SAMPLE_APP.SampleTable";

    /* Sample Use of Table */

    status = CFE_TBL_GetAddress((void *)&TblPtr,
                        Sample_AppData.TblHandles[0]);

    if (status != CFE_SUCCESS)
    {
        CFE_ES_WriteToSysLog("Sample App: Fail to get table address: 0x%08lx",
                (unsigned long)status);
        return;
    }

    CFE_ES_WriteToSysLog("Sample App: Table Value 1: %d  Value 2: %d",
                          TblPtr->Int1,
                          TblPtr->Int2);

    SAMPLE_GetCrc(TableName);

    /* Invoke a function provided by SAMPLE_LIB */
    SAMPLE_Function();

    return;

}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * **/
/*  Name:  SAMPLE_ProcessCC                                                   */
/*                                                                            */
/*  Purpose:                                                                  */
/*         This function Process Ground Station Command                       */
/*                                                                            */
/* * * * * * * * * * * * * * * * * * * * * * * *  * * * * * * *  * *  * * * * */


This function Process Ground Station Command


This function Process Ground Station Command
void  SAMPLE_ProcessCC( const SAMPLE_Process_t *Msg )
{
    int32 status;
    SampleTable_t *TblPtr;
    const char *TableName = "SAMPLE_APP.SampleTable";
    status = CFE_TBL_GetAddress((void *)&TblPtr,
                        Sample_AppData.TblHandles[0]);
    if (status != CFE_SUCCESS)
    {
        CFE_ES_WriteToSysLog("Sample App: Fail to get table address: 0x%08lx",
                (unsigned long)status);
        return;
    }
    CFE_ES_WriteToSysLog("Sample App: Table Value 1: %d  Value 2: %d",
                          TblPtr->Int1,
                          TblPtr->Int2);
    SAMPLE_GetCrc(TableName);
    SAMPLE_Function();
    return;
}
void SAMPLE_ProcessCC ( const SAMPLE_Process_t * Msg ) { int32 status ; SampleTable_t * TblPtr ; const char * TableName = " " ; status = CFE_TBL_GetAddress ( ( void * ) & TblPtr , Sample_AppData . TblHandles [ 0 ] ) ; if ( status != CFE_SUCCESS ) { CFE_ES_WriteToSysLog ( " " , ( unsigned long ) status ) ; return ; } CFE_ES_WriteToSysLog ( " " , TblPtr -> Int1 , TblPtr -> Int2 ) ; SAMPLE_GetCrc ( TableName ) ; SAMPLE_Function ( ) ; return ; }
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
Name:  SAMPLE_ProcessCC
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Name : SAMPLE_ProcessCC
/* Sample Use of Table */ /* Invoke a function provided by SAMPLE_LIB */