fsw/src/sample_app.c
void SAMPLE_ReportHousekeeping( const CCSDS_CommandPacket_t *Msg )
{
    int i;

    /*
    ** Get command execution counters...
    */
    Sample_AppData.SAMPLE_HkTelemetryPkt.sample_command_error_count = Sample_AppData.ErrCounter;
    Sample_AppData.SAMPLE_HkTelemetryPkt.sample_command_count = Sample_AppData.CmdCounter;

    /*
    ** Send housekeeping telemetry packet...
    */
    CFE_SB_TimeStampMsg((CFE_SB_Msg_t *) &Sample_AppData.SAMPLE_HkTelemetryPkt);
    CFE_SB_SendMsg((CFE_SB_Msg_t *) &Sample_AppData.SAMPLE_HkTelemetryPkt);

    /*
    ** Manage any pending table loads, validations, etc.
    */
    for (i=0; i<NUMBER_OF_TABLES; i++)
    {
        CFE_TBL_Manage(Sample_AppData.TblHandles[i]);
    }

    return;

}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * **/
/*  Name:  SAMPLE_ReportHousekeeping                                          */
/*                                                                            */
/*  Purpose:                                                                  */
/*         This function is triggered in response to a task telemetry request */
/*         from the housekeeping task. This function will gather the Apps     */
/*         telemetry, packetize it and send it to the housekeeping task via   */
/*         the software bus                                                   */
/* * * * * * * * * * * * * * * * * * * * * * * *  * * * * * * *  * *  * * * * */


This function is triggered in response to a task telemetry request
from the housekeeping task. This function will gather the Apps
telemetry, packetize it and send it to the housekeeping task via
the software bus
This function is triggered in response to a task telemetry request from the housekeeping task . This function will gather the Apps telemetry packetize it and send it to the housekeeping task via the software bus
void SAMPLE_ReportHousekeeping( const CCSDS_CommandPacket_t *Msg )
{
    int i;
    Sample_AppData.SAMPLE_HkTelemetryPkt.sample_command_error_count = Sample_AppData.ErrCounter;
    Sample_AppData.SAMPLE_HkTelemetryPkt.sample_command_count = Sample_AppData.CmdCounter;
    CFE_SB_TimeStampMsg((CFE_SB_Msg_t *) &Sample_AppData.SAMPLE_HkTelemetryPkt);
    CFE_SB_SendMsg((CFE_SB_Msg_t *) &Sample_AppData.SAMPLE_HkTelemetryPkt);
    for (i=0; i<NUMBER_OF_TABLES; i++)
    {
        CFE_TBL_Manage(Sample_AppData.TblHandles[i]);
    }
    return;
}
void SAMPLE_ReportHousekeeping ( const CCSDS_CommandPacket_t * Msg ) { int i ; Sample_AppData . SAMPLE_HkTelemetryPkt . sample_command_error_count = Sample_AppData . ErrCounter ; Sample_AppData . SAMPLE_HkTelemetryPkt . sample_command_count = Sample_AppData . CmdCounter ; CFE_SB_TimeStampMsg ( ( CFE_SB_Msg_t * ) & Sample_AppData . SAMPLE_HkTelemetryPkt ) ; CFE_SB_SendMsg ( ( CFE_SB_Msg_t * ) & Sample_AppData . SAMPLE_HkTelemetryPkt ) ; for ( i = 0 ; i < NUMBER_OF_TABLES ; i ++ ) { CFE_TBL_Manage ( Sample_AppData . TblHandles [ i ] ) ; } return ; }
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
Name:  SAMPLE_ReportHousekeeping
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Name : SAMPLE_ReportHousekeeping
/*
    ** Get command execution counters...
    */ /*
    ** Send housekeeping telemetry packet...
    */ /*
    ** Manage any pending table loads, validations, etc.
    */