Index: firmware/App/Controllers/AirTrap.h =================================================================== diff -u -re5d1d67106a93a6cd1b5692b586625d715732e2f -r8bd1ae47aa13a843aa8abd6321ddc050deacb4a6 --- firmware/App/Controllers/AirTrap.h (.../AirTrap.h) (revision e5d1d67106a93a6cd1b5692b586625d715732e2f) +++ firmware/App/Controllers/AirTrap.h (.../AirTrap.h) (revision 8bd1ae47aa13a843aa8abd6321ddc050deacb4a6) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2021 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 AirTrap.h +* @file AirTrap.h * -* @author (last) Sean Nash -* @date (last) 24-Sep-2020 +* @author (last) Quang Nguyen +* @date (last) 05-May-2021 * -* @author (original) Sean Nash -* @date (original) 16-Sep-2020 +* @author (original) Sean Nash +* @date (original) 16-Sep-2020 * ***************************************************************************/ @@ -48,6 +48,13 @@ NUM_OF_AIR_TRAP_LEVELS ///< Number of air trap level sensor levels } AIR_TRAP_LEVELS_T; +/// Payload record structure for air trap data broadcast message +typedef struct +{ + U32 lowerLevel; ///< Lower air trap level sensor state + U32 upperLevel; ///< Upper air trap level sensor state +} AIR_TRAP_PAYLOAD_T; + // ********** public function prototypes ********** void initAirTrap( void ); @@ -58,7 +65,7 @@ void startAirTrapControl( void ); void endAirTrapControl( void ); -BOOL isAirTrapControlling( void ); +BOOL isAirTrapControlling( void ); AIR_TRAP_LEVELS_T getAirTrapLevel( AIR_TRAP_LEVEL_SENSORS_T sensor );