![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Minor changes to support ADMW FWv1.17.75
Diff: inc/admw1001/ADMW1001_REGISTERS_typedefs.h
- Revision:
- 43:e1789b7214cf
- Parent:
- 36:54e2418e7620
- Child:
- 44:94bdfaefddac
--- a/inc/admw1001/ADMW1001_REGISTERS_typedefs.h Tue Dec 10 09:00:11 2019 +0000 +++ b/inc/admw1001/ADMW1001_REGISTERS_typedefs.h Tue Jan 07 05:45:58 2020 +0000 @@ -534,6 +534,16 @@ */ /* ========================================================================= + *! \enum ADMW_CORE_Cycle_Control_GND_SW_CTRL + *! \brief Ground Switch Cycle Control (GND_SW_CTRL) Enumerations + * ========================================================================= */ +typedef enum +{ + CORE_CYCLE_CONTROL_CLOSE_SW = 0, /**< Ground Switch Closed */ + CORE_CYCLE_CONTROL_CYCLE_SW = 1 /**< Ground Switch Opens outside of measurement cycle to conserve power */ +} ADMW_CORE_Cycle_Control_GND_SW_CTRL; + +/* ========================================================================= *! \enum ADMW_CORE_Cycle_Control_Vbias *! \brief Voltage Bias Global Enable (Vbias) Enumerations * ========================================================================= */ @@ -554,6 +564,15 @@ CORE_CYCLE_CONTROL_SECONDS = 1 /**< Seconds */ } ADMW_CORE_Cycle_Control_Cycle_Time_Units; +/* ========================================================================= + *! \enum ADMW_CORE_Cycle_Control_PST_MEAS_EXC_CTRL + *! \brief Disable Current Sources After Measurement Completes (PST_MEAS_EXC_CTRL) Enumerations + * ========================================================================= */ +typedef enum +{ + CORE_CYCLE_CONTROL_POWERCYCLE = 0, /**< */ + CORE_CYCLE_CONTROL_ALWAYSON = 1 /**< */ +} ADMW_CORE_Cycle_Control_PST_MEAS_EXC_CTRL; /* ========================================================================== *! \struct ADMW_CORE_Cycle_Control_Struct @@ -563,10 +582,10 @@ union { struct { uint16_t Cycle_Time : 12; /**< Time Between Measurement Cycles */ - uint16_t reserved12 : 1; + uint16_t GND_SW_CTRL : 1; /**< Ground Switch Cycle Control */ uint16_t Vbias : 1; /**< Voltage Bias Global Enable */ uint16_t Cycle_Time_Units : 1; /**< Units for Cycle Time */ - uint16_t reserved15 : 1; + uint16_t PST_MEAS_EXC_CTRL : 1; /**< Disable Current Sources After Measurement Completes */ }; uint16_t VALUE16; }; @@ -741,6 +760,27 @@ } ADMW_CORE_External_Voltage_Reference_t; /*@}*/ + +/** @defgroup AVDD_Voltage AVDD Voltage (AVDD_Voltage) Register + * AVDD Voltage (AVDD_Voltage) Register. + * @{ + */ + +/* ========================================================================== + *! \struct ADMW_CORE_AVDD_Voltage_Struct + *! \brief AVDD Voltage Register bit field structure + * ========================================================================== */ +typedef struct _ADMW_CORE_AVDD_Voltage_t { + union { + struct { + float Avdd_Voltage; /**< AVDD Voltage */ + }; + float VALUE32; + }; +} ADMW_CORE_AVDD_Voltage_t; + +/*@}*/ + /** @defgroup Diagnostics_Control Diagnostic Control (Diagnostics_Control) Register * Diagnostic Control (Diagnostics_Control) Register. * @{ @@ -1204,18 +1244,6 @@ CORE_MEASUREMENT_SETUP_NOTCH_EN = 1 /**< Enable notch 2 filter option. */ } ADMW_CORE_Measurement_Setup_NOTCH_EN_2; - -/* ========================================================================= - *! \enum ADMW_CORE_Measurement_Setup_PST_MEAS_EXC_CTRL - *! \brief Disable Current Sources After Measurement Completes (PST_MEAS_EXC_CTRL) Enumerations - * ========================================================================= */ -typedef enum -{ - CORE_MEASUREMENT_SETUP_POWERCYCLE = 0, /**< */ - CORE_MEASUREMENT_SETUP_ALWAYSON = 1 /**< */ -} ADMW_CORE_Measurement_Setup_PST_MEAS_EXC_CTRL; - - /* ========================================================================= *! \enum ADMW_CORE_Measurement_Setup_Chop_Mode *! \brief Enabled and Disable Chop Mode (Chop_Mode) Enumerations @@ -1241,17 +1269,6 @@ /* ========================================================================= - *! \enum ADMW_CORE_Measurement_Setup_GND_SW - *! \brief Ground Switch Selection (GND_SW) Enumerations - * ========================================================================= */ -typedef enum -{ - CORE_MEASUREMENT_SETUP_GND_SW_OPEN = 0, /**< GND_SW Open. The ground switch is not enabled for the sensor measurement */ - CORE_MEASUREMENT_SETUP_GND_SW_CLOSED = 1 /**< GND_SW Closed. The ground switch is enabled for the sensor measurement, bit wiil Remain Closed After the Measurement */ -} ADMW_CORE_Measurement_Setup_GND_SW; - - -/* ========================================================================= *! \enum ADMW_CORE_Measurement_Setup_Buffer_Bypass *! \brief Disable Buffers (Buffer_Bypass) Enumerations * ========================================================================= */ @@ -1272,12 +1289,12 @@ uint32_t ADC_SF : 7; /**< ADC Digital Filter Speed */ uint32_t reserved7 : 1; uint32_t NOTCH_EN_2 : 1; /**< Enable Notch 2 Filter Mode */ - uint32_t PST_MEAS_EXC_CTRL : 1; /**< Disable Current Sources After Measurement Completes */ - uint32_t Chop_Mode : 2; /**< Enabled and Disable Chop Mode */ - uint32_t ADC_Filter_Type : 1; /**< ADC Digital Filter Type */ - uint32_t GND_SW : 2; /**< Ground Switch Selection */ - uint32_t Buffer_Bypass : 1; /**< Disable Buffers */ - uint32_t reserved16 : 16; + uint32_t reserved9 : 1; + uint32_t Chop_Mode : 2; /**< Enabled and Disable Chop Mode */ + uint32_t ADC_Filter_Type : 1; /**< ADC Digital Filter Type */ + uint32_t reserved13 : 2; + uint32_t Buffer_Bypass : 1; /**< Disable Buffers */ + uint32_t reserved16 : 16; }; uint32_t VALUE32; };