Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -rd9c2c8e146f20a2acefb9ac1f6497536fb2c404e -rdef06013312d270b1704787a4473caf5612dd6ac --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision d9c2c8e146f20a2acefb9ac1f6497536fb2c404e) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision def06013312d270b1704787a4473caf5612dd6ac) @@ -1815,6 +1815,19 @@ /*********************************************************************//** * @brief + * The setTesterStatusToLoggedOut function sets the status of the tester to + * logged out. + * @details Inputs: testerLoggedIn + * @details Outputs: none + * @return none + *************************************************************************/ +void setTesterStatusToLoggedOut( void ) +{ + testerLoggedIn = FALSE; +} + +/*********************************************************************//** + * @brief * The sendTestAckResponseMsg function constructs a simple response message for * a handled test message and queues it for transmit on the appropriate UART channel. * @details Inputs: none @@ -4559,16 +4572,81 @@ if ( TRUE == payload.reset ) { - status = resetTestConfig( payload.config ); + status = resetTestConfig( (TEST_CONFIG_T)payload.config ); } else { - status = setTestConfig( payload.config ); + status = setTestConfig( (TEST_CONFIG_T)payload.config ); } } // Respond to request sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, status ); } +/*********************************************************************//** + * @brief + * The handleTestDGGetTestConfig function handles a request to get the + * test configuration per request. + * @details Inputs: none + * @details Outputs: message handled + * @param message a pointer to the message to handle + * @return none + *************************************************************************/ +void handleTestDGGetTestConfig( MESSAGE_T* message ) +{ + BOOL result = FALSE; + + // verify payload length + if ( ( 0 == message->hdr.payloadLen ) && ( TRUE == isTestingActivated() ) ) + { + result = sendTestConfigStatusToDialin(); + } + + // respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); +} + +/*********************************************************************//** + * @brief + * The handleTestDGResetAllTestConfigs function handles a request to reset + * all of the test configurations. + * @details Inputs: none + * @details Outputs: message handled + * @param message a pointer to the message to handle + * @return none + *************************************************************************/ +void handleTestDGResetAllTestConfigs( MESSAGE_T* message ) +{ + BOOL result = FALSE; + + // verify payload length + if ( ( 0 == message->hdr.payloadLen ) && ( TRUE == isTestingActivated() ) ) + { + result = resetAllTestConfigs(); + } + + // respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); +} + +/*********************************************************************//** + * @brief + * The handleTestDGDialinCheckIn function handles check in from Dialin. + * @details Inputs: none + * @details Outputs: message handled + * @param message a pointer to the message to handle + * @return none + *************************************************************************/ +void handleTestDGDialinCheckIn( MESSAGE_T* message ) +{ + if ( 0 == message->hdr.payloadLen ) + { + setDialinCheckInTimeStamp(); + } + + // respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, TRUE ); +} + /**@}*/