fsw/src/sample_app.c
int32 SAMPLE_TblValidationFunc( void *TblData )
{
    int32 ReturnCode = CFE_SUCCESS;
    SampleTable_t *TblDataPtr = (SampleTable_t *)TblData;

    /*
    ** Sample Table Validation
    */
    if (TblDataPtr->Int1 > SAMPLE_TBL_ELEMENT_1_MAX)
    {
        /* First element is out of range, return an appropriate error code */
        ReturnCode = SAMPLE_TABLE_OUT_OF_RANGE_ERR_CODE;
    }

    return ReturnCode;

}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*                                                                 */
/* SAMPLE_TblValidationFunc -- Verify contents of First Table      */
/* buffer contents                                                 */
/*                                                                 */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
- Verify contents of First Table
buffer contents


- Verify contents of First Table buffer contents
int32 SAMPLE_TblValidationFunc( void *TblData )
{
    int32 ReturnCode = CFE_SUCCESS;
    SampleTable_t *TblDataPtr = (SampleTable_t *)TblData;
    if (TblDataPtr->Int1 > SAMPLE_TBL_ELEMENT_1_MAX)
    {
        ReturnCode = SAMPLE_TABLE_OUT_OF_RANGE_ERR_CODE;
    }
    return ReturnCode;
}
int32 SAMPLE_TblValidationFunc ( void * TblData ) { int32 ReturnCode = CFE_SUCCESS ; SampleTable_t * TblDataPtr = ( SampleTable_t * ) TblData ; if ( TblDataPtr -> Int1 > SAMPLE_TBL_ELEMENT_1_MAX ) { ReturnCode = SAMPLE_TABLE_OUT_OF_RANGE_ERR_CODE ; } return ReturnCode ; }
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
SAMPLE_TblValidationFunc -- Verify contents of First Table
buffer contents
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * SAMPLE_TblValidationFunc -- Verify contents of First Table buffer contents
/*
    ** Sample Table Validation
    */ /* First element is out of range, return an appropriate error code */