Index: firmware/App/Controllers/Bubble.h =================================================================== diff -u -rccfd15568f1e3d304320c2babb2fd4bcf0413304 -r74be223d47ea7bb0ac7d814e74d3627d830a5fac --- firmware/App/Controllers/Bubble.h (.../Bubble.h) (revision ccfd15568f1e3d304320c2babb2fd4bcf0413304) +++ firmware/App/Controllers/Bubble.h (.../Bubble.h) (revision 74be223d47ea7bb0ac7d814e74d3627d830a5fac) @@ -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 );