sensor result structure modified

Revision:
65:d91e1d63153d
Parent:
64:e8670e971e22
Child:
70:420fac5132f5
--- a/inc/admw_api.h	Tue Apr 14 07:04:24 2020 +0000
+++ b/inc/admw_api.h	Tue Apr 14 08:40:24 2020 +0000
@@ -156,21 +156,22 @@
 /*! Data sample details retreived from the ADMW device. */
 typedef struct
 {
-    ADMW_DEVICE_STATUS_FLAGS      status;
-    /*!< Device summary status snapshot when the sample was recorded */
-    uint32_t                      channelId;
-    /*!< The measurement channel from which this sample was obtained */
-    uint8_t                      measurementStatus;
-    /*!< The measurement status from the DMZ layer */
-    float32_t                      rawValue;
-    /*!< The raw (unprocessed) value obtained directly from the measurement
-     *   channel, if available
-     */
     float32_t                     processedValue;
     /*!< The processed value obtained from the measurement channel, as a final
      *   measurement value, following calibration and linearisation correction,
      *   and conversion into an appropriate unit of measurement.
      */
+    uint32_t    Channel_ID :  4;    /**< Indicates which channel this result corresponds to */
+    uint32_t    Ch_Error   :  1;    /**< Indicates Error on channel */
+    uint32_t    Ch_Alert   :  1;    /**< Indicates Alert on channel */
+    uint32_t    Ch_Raw     :  1;    /**< Indicates if Raw sensor data field is valid */
+    uint32_t    Ch_Valid   :  1;    /**< Indicates if this Result structure is valid */
+    uint32_t    Status     :  8;    /**< Indicates the Status of this measurement */
+    uint32_t    Reserved   :  16;   /**< Reserved for future use */
+    float32_t   Raw_Sample;
+    /*!< The raw value obtained from the measurement channel, before
+     *   calibration and linearisation correction, and conversion.
+     */
 
 }   ADMW_DATA_SAMPLE;