Index: firmware/App/Services/Messaging.h =================================================================== diff -u -r999e1a2f4e499155d934b3aaa93c0ae02161d3c7 -rb55b4aad2941b470c5652aad5538a1bbb28a76ed --- firmware/App/Services/Messaging.h (.../Messaging.h) (revision 999e1a2f4e499155d934b3aaa93c0ae02161d3c7) +++ firmware/App/Services/Messaging.h (.../Messaging.h) (revision b55b4aad2941b470c5652aad5538a1bbb28a76ed) @@ -7,8 +7,8 @@ * * @file Messaging.h * -* @author (last) Praneeth Bunne -* @date (last) 04-Jun-2026 +* @author (last) suresh +* @date (last) 05-Aug-2026 * * @author (original) Sean Nash * @date (original) 01-Aug-2024 @@ -49,6 +49,7 @@ { U08 userRequest; ///< request to confirm, cancel, or reject off button request } UI_OFF_BUTTON_RESPONSE_PAYLOAD_T; + #pragma pack(pop) /// Payload record structure for UI response. @@ -69,6 +70,19 @@ U32 maxDialRate; ///< Maximum dialysate flow rate (in mL/min) } TREATMENT_PARAM_BROADCAST_PAYLOAD_T; +/// Payload record structure for Pre-Treatment states broadcast. +typedef struct +{ + U32 mSubMode; ///< Current Pre-Treatment state. + U32 mInstallState; ///< Current Tube Set Install state. + U32 mSelfTestDryState; ///< Current Dry Self-Test state. + U32 mPrimeState; ///< Current Prime state. + U32 mRecirculateState; ///< Current Pre-Treatment Recirculate state. + U32 mConfirmRxState; ///< Current Confirm Rx state. + U32 mHeparinState; ///< Current Heparin Setup state. + U32 mPatientConnectionState; ///< Current Patient Connection state. +} PRE_TREATMENT_STATES_DATA_PAYLOAD_T; + /// Institutional record structure containing treatment parameter range limits. typedef struct { @@ -114,6 +128,7 @@ // ACK MSG BOOL sendACKMsg( MESSAGE_T *message ); +BOOL sendAckResponseMsg( MSG_ID_T msgID, COMM_BUFFER_T buffer, BOOL ack ); // Handle version request message BOOL handleVersionRequestMessage( MESSAGE_T *message ); @@ -128,13 +143,16 @@ BOOL handleUICheckIn( MESSAGE_T *message ); BOOL handleTesterLogInRequest( MESSAGE_T *message ); BOOL handleUpdateAvailable( MESSAGE_T *message ); +BOOL handleUIVersionResponse( MESSAGE_T *message ); -BOOL testTDSoftwareResetRequest( MESSAGE_T *message ); - // Test send message helper functions BOOL sendEvent( TD_EVENT_ID_T event, EVENT_DATA_T dat1, EVENT_DATA_T dat2 ); -BOOL sendOffButtonMsgToUI( U08 prompt ); +BOOL sendUIVersionRequest( void ); +BOOL sendRequestForDDResendAlarms( void ); +BOOL sendPOSTTestResult( TD_POST_STATE_T test, BOOL passed ); +BOOL sendPOSTFinalResult( BOOL passed ); +BOOL testTDSoftwareResetRequest( MESSAGE_T *message ); BOOL testSetTestConfiguration( MESSAGE_T *message ); BOOL testGetTestConfiguration( MESSAGE_T *message ); BOOL testResetAllTestConfigurations( MESSAGE_T *message );