Index: firmware/App/Controllers/Bubble.h =================================================================== diff -u -r3d30c9829d316b8c5e632c0201a59c8d14b3486e -r8bd1ae47aa13a843aa8abd6321ddc050deacb4a6 --- firmware/App/Controllers/Bubble.h (.../Bubble.h) (revision 3d30c9829d316b8c5e632c0201a59c8d14b3486e) +++ firmware/App/Controllers/Bubble.h (.../Bubble.h) (revision 8bd1ae47aa13a843aa8abd6321ddc050deacb4a6) @@ -5,13 +5,13 @@ * 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 Bubble.h +* @file Bubble.h * -* @author (last) Peman Montazemi -* @date (last) 30-Apr-2021 +* @author (last) Peman Montazemi +* @date (last) 11-May-2021 * -* @author (original) Peman Montazemi -* @date (original) 30-Apr-2021 +* @author (original) Peman Montazemi +* @date (original) 06-May-2021 * ***************************************************************************/ @@ -37,19 +37,28 @@ /// Enumeration of air bubble detectors status. typedef enum BubblesStatus { - BUBBLE_DETECTED = 0, ///< Air bubble detector senses bubble - BUBBLE_NOT_DETECTED, ///< Air bubble detector does not sense any bubble - NUM_OF_BUBBLE_STATUS ///< Number of air bubble detector status + BUBBLE_DETECTED = 0, ///< Air bubble detector senses bubble + BUBBLE_NOT_DETECTED, ///< Air bubble detector does not sense any bubble + NUM_OF_BUBBLE_STATUS ///< Number of air bubble detector status } BUBBLE_STATUS_T; /// Air bubble detectors names typedef enum bubblesNames { - ADA = 0, ///< Arterial air bubble detector - ADV, ///< Venous air bubble detector - NUM_OF_BUBBLES ///< Number of air bubble detectors + ADA = 0, ///< Arterial air bubble detector + ADV, ///< Venous air bubble detector + NUM_OF_BUBBLES ///< Number of air bubble detectors } BUBBLES_T; +/// Bubble detectors data publish +typedef struct +{ + U32 statusADA; ///< Arterial bubble detector status + U32 stateADA; ///< Arterial bubble detector state + U32 statusADV; ///< Venous bubble detector status + U32 stateADV; ///< Venous bubble detector state +} BUBBLES_DATA_T; + // ********** public function prototypes ********** void initBubbles( void );