Index: firmware/App/Controllers/Bubble.h =================================================================== diff -u -r3d30c9829d316b8c5e632c0201a59c8d14b3486e -r24b2fe72608344e67ef37234085d15ad5e4fcc37 --- firmware/App/Controllers/Bubble.h (.../Bubble.h) (revision 3d30c9829d316b8c5e632c0201a59c8d14b3486e) +++ firmware/App/Controllers/Bubble.h (.../Bubble.h) (revision 24b2fe72608344e67ef37234085d15ad5e4fcc37) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2022 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 Bubble.h +* @file Bubble.h * -* @author (last) Peman Montazemi -* @date (last) 30-Apr-2021 +* @author (last) Sean Nash +* @date (last) 12-Nov-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 );