Index: firmware/App/Modes/FPModes/FPOperationModes.c =================================================================== diff -u -r46e6d3bf0ebcc13a0b709c2de317d209119b61be -r0629bf55079c4ad0fa3b44091d5f3618e51b7a2b --- firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision 46e6d3bf0ebcc13a0b709c2de317d209119b61be) +++ firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision 0629bf55079c4ad0fa3b44091d5f3618e51b7a2b) @@ -609,4 +609,25 @@ return result; } +/*********************************************************************//** + * @brief + * The testGetFPBoostPumpInstallStatus function return whether FP is Boost Pump + * is installed or not. + * @details \b Inputs: none + * @details \b Outputs: none + * @details \b Message: \b Sent: MSG_ID_FP_BOOST_PUMP_INSTALL_STATUS_RESPONSE + * @param message request message from Dialin for FP boost pump install status. + * @return TRUE if request is successful, FALSE if not + *************************************************************************/ +BOOL testGetFPBoostPumpInstallStatus( MESSAGE_T *message ) +{ + BOOL result = FALSE; + FP_BOOST_PUMP_INSTALL_STATUS_PAYLOAD_T data; + + data.isFPBoostPumpInstalled = isBoostPumpInstalled(); + result = sendMessage( MSG_ID_FP_BOOST_PUMP_INSTALL_STATUS_RESPONSE, COMM_BUFFER_OUT_DD_CAN_PC, (U08*)&data, sizeof(FP_BOOST_PUMP_INSTALL_STATUS_PAYLOAD_T) ); + + return result; +} + /**@}*/ Index: firmware/App/Modes/FPModes/FPOperationModes.h =================================================================== diff -u -rd18ed8a1064006f220e75096c723077dda62b500 -r0629bf55079c4ad0fa3b44091d5f3618e51b7a2b --- firmware/App/Modes/FPModes/FPOperationModes.h (.../FPOperationModes.h) (revision d18ed8a1064006f220e75096c723077dda62b500) +++ firmware/App/Modes/FPModes/FPOperationModes.h (.../FPOperationModes.h) (revision 0629bf55079c4ad0fa3b44091d5f3618e51b7a2b) @@ -47,6 +47,12 @@ { BOOL isFPDefeatured; ///< FP defeatured status } FP_DEF_STATUS_PAYLOAD_T; + +/// Payload structure for FP boost pump status request +typedef struct +{ + BOOL isFPBoostPumpInstalled; ///< FP boost pump installation status +} FP_BOOST_PUMP_INSTALL_STATUS_PAYLOAD_T; #pragma pack(pop) // ********** public function prototypes ********** @@ -69,6 +75,7 @@ BOOL testSetFPOpModePublishIntervalOverride( MESSAGE_T *message ); // Set operation mode publish interval override BOOL testSetGeneratePermeateSignal( MESSAGE_T *message ); // Set start stop generate permeate. BOOL testGetFPDefeaturedStatus( MESSAGE_T *message ); // Send a response message with FP defeatured status payload +BOOL testGetFPBoostPumpInstallStatus( MESSAGE_T *message ); // Send a response message with FP boost pump installation status payload /**@}*/ Index: firmware/App/Services/Messaging.c =================================================================== diff -u -r48558494898419baa0697009318fb543fe0b8a46 -r0629bf55079c4ad0fa3b44091d5f3618e51b7a2b --- firmware/App/Services/Messaging.c (.../Messaging.c) (revision 48558494898419baa0697009318fb543fe0b8a46) +++ firmware/App/Services/Messaging.c (.../Messaging.c) (revision 0629bf55079c4ad0fa3b44091d5f3618e51b7a2b) @@ -284,6 +284,7 @@ { MSG_ID_FP_DEF_PRE_GEN_PUBLISH_INTERVAL_OVERRIDE_REQUEST, &testPreGenPermeateDefDataPublishIntervalOverride}, { MSG_ID_FP_DEF_GEN_PUBLISH_INTERVAL_OVERRIDE_REQUEST, &testGenPermeateDefDataPublishIntervalOverride}, { MSG_ID_FP_DEF_STATUS_REQUEST, &testGetFPDefeaturedStatus }, + { MSG_ID_FP_BOOST_PUMP_INSTALL_STATUS_REQUEST, &testGetFPBoostPumpInstallStatus }, }; /// Calculation for number of entries in the incoming message function handler look-up table.