Vybhav Kadaba
/
EV-PRO-MW1001_Development_updateFW
Bumped Mbed FW version to 01.20.0080
Diff: inc/admw1001/admw1001_host_comms.h
- Revision:
- 70:420fac5132f5
- Parent:
- 50:d84305e5e1c0
--- a/inc/admw1001/admw1001_host_comms.h Mon Apr 20 06:23:42 2020 +0000 +++ b/inc/admw1001/admw1001_host_comms.h Thu Apr 23 08:30:42 2020 +0000 @@ -37,6 +37,7 @@ #define __ADMW1001_HOST_COMMS_H__ #include "admw_types.h" +#include "ADMW1001_REGISTERS_typedefs.h" /* * The host is expected to transfer a 16-bit command, followed by data bytes, in 2 @@ -83,15 +84,17 @@ /*! ADMW1001 Sensor Result bit field structure */ typedef struct _ADMW1001_Sensor_Result_t { - float32_t Sensor_Result; /**< Linearized and compensated sensor result */ - 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 : 24; /**< Reserved for future use */ - float32_t Raw_Sample; /**< Raw sensor data value */ + float32_t Sensor_Result; /**< Linearized and compensated sensor result */ + uint16_t Channel_ID : 4; /**< Indicates which channel this result corresponds to */ + uint16_t Ch_Error : 1; /**< Indicates Error on channel */ + uint16_t Ch_Alert : 1; /**< Indicates Alert on channel */ + uint16_t Ch_Raw : 1; /**< Indicates if Raw sensor data field is valid */ + uint16_t Ch_Valid : 1; /**< Indicates if this Result structure is valid */ + uint16_t Reserved : 8; /**< Reserved for future use */ + ADMW_CORE_Alert_Detail_Ch_t Status; /**< Indicates Status of this measurement */ + float32_t Raw_Sample; /**< Raw sensor data value */ } ADMW1001_Sensor_Result_t; + #endif /* __ADMW1001_HOST_COMMS_H__ */