Index: firmware/App/Controllers/AirPump.h =================================================================== diff -u -reffc2a8283d6528109b2401bbad70dc554db4e53 -re24a98a344ba13ceb0663b415268a7e1dd5ce99e --- firmware/App/Controllers/AirPump.h (.../AirPump.h) (revision effc2a8283d6528109b2401bbad70dc554db4e53) +++ firmware/App/Controllers/AirPump.h (.../AirPump.h) (revision e24a98a344ba13ceb0663b415268a7e1dd5ce99e) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2024-2024 Diality Inc. - All Rights Reserved. +* Copyright (c) 2024-2025 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file AirPump.h * -* @author (last) Sean -* @date (last) 17-Sep-2024 +* @author (last) Sean Nash +* @date (last) 23-Jun-2025 * -* @author (original) Sean -* @date (original) 17-Sep-2024 +* @author (original) Sean Nash +* @date (original) 19-Sep-2024 * ***************************************************************************/ @@ -33,11 +33,14 @@ // ********** public definitions ********** +#pragma pack(push, 1) /// Payload record structure for air pump data broadcast message typedef struct { - U32 h12State; ///< Air Pump state status + U32 h12State; ///< Air pump state status + U32 h12Power; ///< Air pump power level setting } AIR_PUMP_PAYLOAD_T; +#pragma pack(pop) /// Enumeration of air pump states. typedef enum AirPumpControllerStates @@ -52,10 +55,11 @@ void initAirPump(void); void execAirPumpController(void); -void setAirPumpState( AIR_PUMP_STATE_T state ); +void setAirPumpState( AIR_PUMP_STATE_T state, U08 power ); AIR_PUMP_STATE_T getAirPumpState( void ); BOOL testAirPumpDataPublishIntervalOverride( MESSAGE_T *message ); +BOOL testSetAirPump( MESSAGE_T *message ); /**@}*/