![](/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:
- 32:52445bef314d
- Parent:
- 18:cbf514cce921
- Child:
- 36:54e2418e7620
--- a/inc/admw1001/ADMW1001_REGISTERS_typedefs.h Wed Oct 23 16:18:50 2019 +0000 +++ b/inc/admw1001/ADMW1001_REGISTERS_typedefs.h Fri Oct 25 05:08:19 2019 +0000 @@ -1,16 +1,24 @@ /* ================================================================================ + + Created by : + Created on : 2019 Oct 08, 09:43 GMT Daylight Time Project : ADMW1001_REGISTERS File : ADMW1001_REGISTERS_typedefs.h Description : C Register Structures - Date : Jun 19, 2019 + !! ADI Confidential !! + INTERNAL USE ONLY Copyright (c) 2019 Analog Devices, Inc. All Rights Reserved. This software is proprietary and confidential to Analog Devices, Inc. and its licensors. This file was auto-generated. Do not make local changes to this file. + + Auto generation script information: + Script: C:\Program Files (x86)\Yoda-19.05.01\generators\inc\genHeaders + Last modified: 26-SEP-2017 ================================================================================ */ @@ -50,12 +58,12 @@ typedef struct _ADMW_SPI_Interface_Config_A_t { union { struct { - uint8_t SW_ResetX : 1; /**< Second of Two of SW_RESET Bits. */ + uint8_t SW_ResetX : 1; /**< Second of Two of the SW_RESET Bits. */ uint8_t reserved1 : 3; - uint8_t SDO_Enable : 1; /**< SDO Pin Enable */ + uint8_t SDO_Enable : 1; /**< Serial Data Output Pin Enable */ uint8_t Addr_Ascension : 1; /**< Determines Sequential Addressing Behavior */ uint8_t reserved6 : 1; - uint8_t SW_Reset : 1; /**< First of Two of SW_RESET Bits. */ + uint8_t SW_Reset : 1; /**< First of Two of the SW_RESET Bits. */ }; uint8_t VALUE8; }; @@ -95,38 +103,6 @@ /*@}*/ -/** @defgroup Device_Config Device Configuration (Device_Config) Register - * Device Configuration (Device_Config) Register. - * @{ - */ - -/* ========================================================================= - *! \enum ADMW_SPI_Device_Config_Operating_Modes - *! \brief Power Modes (Operating_Modes) Enumerations - * ========================================================================= */ -typedef enum -{ - SPI_DEVICE_CONFIG_NORMAL = 0, /**< Normal Operating Mode */ - SPI_DEVICE_CONFIG_SLEEP = 3 /**< Low Power Mode */ -} ADMW_SPI_Device_Config_Operating_Modes; - - -/* ========================================================================== - *! \struct ADMW_SPI_Device_Config_Struct - *! \brief Device Configuration Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_SPI_Device_Config_t { - union { - struct { - uint8_t Operating_Modes : 2; /**< Power Modes */ - uint8_t reserved2 : 6; - }; - uint8_t VALUE8; - }; -} ADMW_SPI_Device_Config_t; - -/*@}*/ - /** @defgroup Chip_Type Chip Type (Chip_Type) Register * Chip Type (Chip_Type) Register. * @{ @@ -160,7 +136,8 @@ typedef struct _ADMW_SPI_Product_ID_L_t { union { struct { - uint8_t Product_ID : 8; /**< Product_ID[7:0] This is Device Chip Type/Family */ + uint8_t Product_ID_Trim_Bits : 4; /**< These Bits Vary on Die Configured for Multiple Generics */ + uint8_t Product_ID_Fixed_Bits : 4; /**< Product_ID_Fixed_Bits[3:0] These Bits are Fixed on Die Configured for Multiple Generics */ }; uint8_t VALUE8; }; @@ -180,7 +157,7 @@ typedef struct _ADMW_SPI_Product_ID_H_t { union { struct { - uint8_t Product_ID : 8; /**< Product_ID[15:8] This is Device Chip Type/Family */ + uint8_t Product_ID_Fixed_Bits : 8; /**< Product_ID_Fixed_Bits[11:4] These Bits are Fixed on Die Configured for Multiple Generics */ }; uint8_t VALUE8; }; @@ -200,8 +177,8 @@ typedef struct _ADMW_SPI_Chip_Grade_t { union { struct { - uint8_t Device_Revision : 4; /**< This is the Device Hardware Revision */ - uint8_t Grade : 4; /**< This is the Device Performance Grade */ + uint8_t Device_Revision : 4; /**< Device Hardware Revision */ + uint8_t Grade : 4; /**< Device Performance Grade */ }; uint8_t VALUE8; }; @@ -250,8 +227,8 @@ * ========================================================================= */ typedef enum { - SPI_SPI_REVISION_ADI_SPI = 0, /**< */ - SPI_SPI_REVISION_LPT_SPI = 2 /**< */ + SPI_SPI_REVISION_ADI_SPI = 0, /**< ADI_SPI */ + SPI_SPI_REVISION_LPT_SPI = 2 /**< LPT_SPI */ } ADMW_SPI_SPI_Revision_SPI_Type; @@ -323,7 +300,7 @@ typedef struct _ADMW_SPI_Stream_Mode_t { union { struct { - uint8_t Loop_Count : 8; /**< Sets the Data Byte Count Before Looping to Start Address */ + uint8_t Loop_Count : 8; /**< Set the Data Byte Count Before Looping to Start Address */ }; uint8_t VALUE8; }; @@ -338,7 +315,7 @@ /* ========================================================================= *! \enum ADMW_SPI_Transfer_Config_Stream_Mode - *! \brief When Streaming, Controls Master-Slave Transfer (Stream_Mode) Enumerations + *! \brief When Streaming, Control Master to Slave Transfer (Stream_Mode) Enumerations * ========================================================================= */ typedef enum { @@ -355,7 +332,7 @@ union { struct { uint8_t reserved0 : 1; - uint8_t Stream_Mode : 1; /**< When Streaming, Controls Master-Slave Transfer */ + uint8_t Stream_Mode : 1; /**< When Streaming, Control Master to Slave Transfer */ uint8_t reserved2 : 6; }; uint8_t VALUE8; @@ -371,7 +348,7 @@ /* ========================================================================= *! \enum ADMW_SPI_Interface_Config_C_Strict_Register_Access - *! \brief Multi-byte Registers Must Be Read/Written in Full (Strict_Register_Access) Enumerations + *! \brief Multibyte Registers Must Be Read or Written in Full (Strict_Register_Access) Enumerations * ========================================================================= */ typedef enum { @@ -400,8 +377,8 @@ struct { uint8_t CRC_EnableB : 2; /**< Inverted CRC Enable */ uint8_t reserved2 : 2; - uint8_t Send_Status : 1; /**< Enables Sending of Status in 4-wire Mode */ - uint8_t Strict_Register_Access : 1; /**< Multi-byte Registers Must Be Read/Written in Full */ + uint8_t Send_Status : 1; /**< Sends Status in 4-Wire Mode When Enabled */ + uint8_t Strict_Register_Access : 1; /**< Multibyte Registers Must Be Read or Written in Full */ uint8_t CRC_Enable : 2; /**< CRC Enable */ }; uint8_t VALUE8; @@ -422,9 +399,9 @@ typedef struct _ADMW_SPI_Interface_Status_A_t { union { struct { - uint8_t Address_Invalid_Error : 1; /**< Attempt to Read/Write Non-existent Register Address */ + uint8_t Address_Invalid_Error : 1; /**< Attempt to Read/Write Nonexistent Register Address */ uint8_t Register_Partial_Access_Error : 1; /**< Set When Fewer Than Expected Number of Bytes Read/Written */ - uint8_t Wr_To_Rd_Only_Reg_Error : 1; /**< Write to Read-Only Register Attempted */ + uint8_t Wr_To_Rd_Only_Reg_Error : 1; /**< Write to Read Only Register Attempted */ uint8_t CRC_Error : 1; /**< Invalid/No CRC Received */ uint8_t Clock_Count_Error : 1; /**< Incorrect Number of Clocks Detected in a Transaction */ uint8_t reserved5 : 2; @@ -436,8 +413,8 @@ /*@}*/ -/** @defgroup Command Special Command (Command) Register - * Special Command (Command) Register. +/** @defgroup Command Special Command Register (Command) Register + * Special Command Register (Command) Register. * @{ */ @@ -447,15 +424,15 @@ * ========================================================================= */ typedef enum { - CORE_COMMAND_NOP = 0, /**< No Command */ - CORE_COMMAND_CONVERT = 1, /**< Start ADC Conversions */ - CORE_COMMAND_CONVERT_WITH_RAW = 2, /**< Start Conversions with Added RAW ADC Data */ - CORE_COMMAND_LATCH_CONFIG = 7, /**< Latch Configuration. */ - CORE_COMMAND_LOAD_LUT = 8, /**< Load LUT from FLASH */ - CORE_COMMAND_SAVE_LUT = 9, /**< Save LUT to FLASH */ - CORE_COMMAND_POWER_DOWN = 20, /**< Enter Low Power State */ - CORE_COMMAND_LOAD_CONFIG_1 = 24, /**< Load Registers with Configuration#1 from FLASH */ - CORE_COMMAND_SAVE_CONFIG_1 = 25 /**< Store Current Registers to FLASH Configuration#1 */ + CORE_COMMAND_NOP = 0, /**< No command */ + CORE_COMMAND_CONVERT = 1, /**< Start ADC conversions */ + CORE_COMMAND_CONVERT_WITH_RAW = 2, /**< Start conversions with added raw ADC data */ + CORE_COMMAND_LATCH_CONFIG = 7, /**< Latch configuration. */ + CORE_COMMAND_LOAD_LUT = 8, /**< Load LUT from flash */ + CORE_COMMAND_SAVE_LUT = 9, /**< Save LUT to flash */ + CORE_COMMAND_POWER_DOWN = 20, /**< Enter Low Power State */ + CORE_COMMAND_LOAD_CONFIG_1 = 24, /**< Load registers with configuration from flash */ + CORE_COMMAND_SAVE_CONFIG_1 = 25 /**< Store current registers to flash configuration */ } ADMW_CORE_Command_Special_Command; @@ -485,19 +462,20 @@ * ========================================================================= */ typedef enum { - CORE_MODE_SINGLECYCLE = 0, /**< Single Cycle */ - CORE_MODE_CONTINUOUS = 2 /**< Continuous Conversion */ + CORE_MODE_SINGLECYCLE = 0, /**< Single cycle conversion mode. A cycle is completed every time a convert command is issued */ + CORE_MODE_RESERVED = 1, /**< Reserved for future use */ + CORE_MODE_CONTINUOUS = 2 /**< Continuous conversion mode. A cycle is started repeatedly at time specified in cycle time */ } ADMW_CORE_Mode_Conversion_Mode; /* ========================================================================= *! \enum ADMW_CORE_Mode_Drdy_Mode - *! \brief Indicates Behavior of DRDY with Respect to FIFO State (Drdy_Mode) Enumerations + *! \brief Indicates Behavior of DRDY Pin (Drdy_Mode) Enumerations * ========================================================================= */ typedef enum { - CORE_MODE_DRDY_PER_CONVERSION = 0, /**< Data Ready Per Conversion */ - CORE_MODE_DRDY_PER_CYCLE = 1 /**< Data Ready Per Cycle */ + CORE_MODE_DRDY_PER_CONVERSION = 0, /**< Data ready per conversion */ + CORE_MODE_DRDY_PER_CYCLE = 1 /**< Data ready per cycle */ } ADMW_CORE_Mode_Drdy_Mode; @@ -509,7 +487,7 @@ union { struct { uint8_t Conversion_Mode : 2; /**< Conversion Mode */ - uint8_t Drdy_Mode : 2; /**< Indicates Behavior of DRDY with Respect to FIFO State */ + uint8_t Drdy_Mode : 2; /**< Indicates Behavior of DRDY Pin */ uint8_t reserved4 : 4; }; uint8_t VALUE8; @@ -518,8 +496,8 @@ /*@}*/ -/** @defgroup Power_Config General Configuration (Power_Config) Register - * General Configuration (Power_Config) Register. +/** @defgroup Power_Config Power Configuration (Power_Config) Register + * Power Configuration (Power_Config) Register. * @{ */ @@ -529,14 +507,14 @@ * ========================================================================= */ typedef enum { - CORE_POWER_CONFIG_ACTIVE_MODE = 0, /**< Part is fully powered up and either cycling through a sequence or awaiting a configuration */ - CORE_POWER_CONFIG_HIBERNATION = 1 /**< module has entede hibernation mode. All analog circuitry is disabled. All peripherals disabled apart from the Wake-up pin functionality. */ + CORE_POWER_CONFIG_ACTIVE_MODE = 0, /**< ADMW1001 is fully power up and ready to convert */ + CORE_POWER_CONFIG_HIBERNATION = 1 /**< Lowest power mode. wakeup pin required to enter active mode. SPI powered down */ } ADMW_CORE_Power_Config_Power_Mode_MCU; /* ========================================================================== *! \struct ADMW_CORE_Power_Config_Struct - *! \brief General Configuration Register bit field structure + *! \brief Power Configuration Register bit field structure * ========================================================================== */ typedef struct _ADMW_CORE_Power_Config_t { union { @@ -556,24 +534,13 @@ */ /* ========================================================================= - *! \enum ADMW_CORE_Cycle_Control_Cycle_Type - *! \brief Type of Measurement Cycle (Cycle_Type) Enumerations - * ========================================================================= */ -typedef enum -{ - CORE_CYCLE_CONTROL_SWITCH = 0, /**< Switch Channels After Every Conversion */ - CORE_CYCLE_CONTROL_FULL = 1 /**< Perform Full Number Of Conversions On A Channel Consecutively */ -} ADMW_CORE_Cycle_Control_Cycle_Type; - - -/* ========================================================================= *! \enum ADMW_CORE_Cycle_Control_Vbias *! \brief Voltage Bias Global Enable (Vbias) Enumerations * ========================================================================= */ typedef enum { - CORE_CYCLE_CONTROL_VBIAS_DISABLE = 0, /**< Vbias Disabled */ - CORE_CYCLE_CONTROL_VBIAS_ENABLE = 1 /**< Enable Vbias Output For the Duration of a Cycle */ + CORE_CYCLE_CONTROL_VBIAS_DISABLE = 0, /**< Vbias disabled */ + CORE_CYCLE_CONTROL_VBIAS_ENABLE = 1 /**< Enable Vbias output for the duration of a cycle */ } ADMW_CORE_Cycle_Control_Vbias; @@ -583,7 +550,7 @@ * ========================================================================= */ typedef enum { - CORE_CYCLE_CONTROL_MILLISECONDS = 0, /**< Milli-Seconds */ + CORE_CYCLE_CONTROL_MILLISECONDS = 0, /**< Milli-seconds */ CORE_CYCLE_CONTROL_SECONDS = 1 /**< Seconds */ } ADMW_CORE_Cycle_Control_Cycle_Time_Units; @@ -595,10 +562,11 @@ typedef struct _ADMW_CORE_Cycle_Control_t { union { struct { - uint16_t Cycle_Time : 12; /**< Duration of a Full Measurement Cycle */ - uint16_t Cycle_Type : 1; /**< Type of Measurement Cycle */ + uint16_t Cycle_Time : 12; /**< Time Between Measurement Cycles */ + uint16_t reserved12 : 1; uint16_t Vbias : 1; /**< Voltage Bias Global Enable */ - uint16_t Cycle_Time_Units : 2; /**< Units for Cycle Time */ + uint16_t Cycle_Time_Units : 1; /**< Units for Cycle Time */ + uint16_t reserved15 : 1; }; uint16_t VALUE16; }; @@ -606,6 +574,26 @@ /*@}*/ +/** @defgroup Fifo_Num_Cycles Number of Measurement Cycles to Store in FIFO (Fifo_Num_Cycles) Register + * Number of Measurement Cycles to Store in FIFO (Fifo_Num_Cycles) Register. + * @{ + */ + +/* ========================================================================== + *! \struct ADMW_CORE_Fifo_Num_Cycles_Struct + *! \brief Number of Measurement Cycles to Store in FIFO Register bit field structure + * ========================================================================== */ +typedef struct _ADMW_CORE_Fifo_Num_Cycles_t { + union { + struct { + uint8_t Fifo_Num_Cycles : 8; /**< Number of Cycles to Fill the FIFO */ + }; + uint8_t VALUE8; + }; +} ADMW_CORE_Fifo_Num_Cycles_t; + +/*@}*/ + /** @defgroup Status General Status (Status) Register * General Status (Status) Register. * @{ @@ -618,13 +606,14 @@ typedef struct _ADMW_CORE_Status_t { union { struct { - uint8_t reserved0 : 1; - uint8_t Alert_Active : 1; /**< Indicates One or More Sensors Alerts are Active */ - uint8_t Error : 1; /**< Indicates an Error */ - uint8_t Drdy : 1; /**< Indicates a New Sensor Result is Available to Be Read */ - uint8_t Cmd_Running : 1; /**< Indicates a Special Command is Active */ - uint8_t FIFO_Error : 1; /**< Indicates Error with FIFO */ - uint8_t reserved6 : 2; + uint8_t Configuration_Error : 1; /**< Indicates Error with Programmed Configuration */ + uint8_t Alert_Active : 1; /**< Indicates One or More Sensor Alerts Active */ + uint8_t Error : 1; /**< Indicates an Error */ + uint8_t Drdy : 1; /**< Indicates New Sensor Result Available to Read */ + uint8_t Cmd_Running : 1; /**< Indicates Special Command Active */ + uint8_t FIFO_Error : 1; /**< Indicates Error with FIFO */ + uint8_t Diag_Checksum_Error : 1; /**< Indicates Error on Internal Checksum Calculations */ + uint8_t LUT_Error : 1; /**< Indicates Error with One or More Lookup Tables */ }; uint8_t VALUE8; }; @@ -632,34 +621,6 @@ /*@}*/ -/** @defgroup Diagnostics_Status Diagnostics Status (Diagnostics_Status) Register - * Diagnostics Status (Diagnostics_Status) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Diagnostics_Status_Struct - *! \brief Diagnostics Status Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Diagnostics_Status_t { - union { - struct { - uint16_t Diag_Checksum_Error : 1; /**< Indicates Error on Internal Checksum Calculations */ - uint16_t reserved1 : 7; - uint16_t Diag_Ainm_UV_Error : 1; /**< Indicates Under-Voltage Error on Negative Analog Input */ - uint16_t Diag_Ainm_OV_Error : 1; /**< Indicates Over-Voltage Error on Negative Analog Input */ - uint16_t Diag_Ainp_UV_Error : 1; /**< Indicates Under-Voltage Error on Positive Analog Input */ - uint16_t Diag_Ainp_OV_Error : 1; /**< Indicates Over-Voltage Error on Positive Analog Input */ - uint16_t Diag_Conversion_Error : 1; /**< Indicates Error During Internal ADC Conversions */ - uint16_t Diag_Calibration_Error : 1; /**< Indicates Error During Internal Device Calibrations */ - uint16_t reserved14 : 2; - }; - uint16_t VALUE16; - }; -} ADMW_CORE_Diagnostics_Status_t; - -/*@}*/ - /** @defgroup Channel_Alert_Status Alert Status Summary (Channel_Alert_Status) Register * Alert Status Summary (Channel_Alert_Status) Register. * @{ @@ -672,19 +633,20 @@ typedef struct _ADMW_CORE_Channel_Alert_Status_t { union { struct { - uint16_t Alert_Ch0 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch1 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch2 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch3 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch4 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch5 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch6 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch7 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch8 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch9 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch10 : 1; /**< Indicates Channel Alert is Active */ - uint16_t Alert_Ch11 : 1; /**< Indicates Channel Alert is Active */ - uint16_t reserved12 : 4; + uint16_t Alert_Ch0 : 1; /**< Indicates Channel 0 Alert Active */ + uint16_t Alert_Ch1 : 1; /**< Indicates Channel 1 Alert Active */ + uint16_t Alert_Ch2 : 1; /**< Indicates Channel 2 Alert Active */ + uint16_t Alert_Ch3 : 1; /**< Indicates Channel 3 Alert Active */ + uint16_t Alert_Ch4 : 1; /**< Indicates Channel 4 Alert Active */ + uint16_t Alert_Ch5 : 1; /**< Indicates Channel 5Alert Active */ + uint16_t Alert_Ch6 : 1; /**< Indicates Channel 6 Alert Active */ + uint16_t Alert_Ch7 : 1; /**< Indicates Channel 7 Alert Active */ + uint16_t Alert_Ch8 : 1; /**< Indicates Channel 8 Alert Active */ + uint16_t Alert_Ch9 : 1; /**< Indicates Channel 9 Alert Active */ + uint16_t Alert_Ch10 : 1; /**< Indicates Channel 10 Alert Active */ + uint16_t Alert_Ch11 : 1; /**< Indicates Channel 11 Alert Active */ + uint16_t Alert_Ch12 : 1; /**< Indicates Channel 12 Alert Active */ + uint16_t reserved13 : 3; }; uint16_t VALUE16; }; @@ -692,57 +654,27 @@ /*@}*/ -/** @defgroup Alert_Status_2 Additional Alert Status Information (Alert_Status_2) Register - * Additional Alert Status Information (Alert_Status_2) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Alert_Status_2_Struct - *! \brief Additional Alert Status Information Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Alert_Status_2_t { - union { - struct { - uint16_t reserved0 : 1; - uint16_t LUT_Error : 1; /**< Indicates Error with One or More Look-Up-Tables */ - uint16_t Configuration_Error : 1; /**< Indicates Error with Programmed Configuration */ - uint16_t reserved3 : 13; - }; - uint16_t VALUE16; - }; -} ADMW_CORE_Alert_Status_2_t; - -/*@}*/ - -/** @defgroup Alert_Detail_Ch Detailed Error Information (Alert_Detail_Ch) Register - * Detailed Error Information (Alert_Detail_Ch) Register. +/** @defgroup Alert_Detail_Ch Detailed Channel Error Information (Alert_Detail_Ch) Register + * Detailed Channel Error Information (Alert_Detail_Ch) Register. * @{ */ /* ========================================================================== *! \struct ADMW_CORE_Alert_Detail_Ch_Struct - *! \brief Detailed Error Information Register bit field structure + *! \brief Detailed Channel Error Information Register bit field structure * ========================================================================== */ typedef struct _ADMW_CORE_Alert_Detail_Ch_t { union { struct { - uint16_t Time_Out : 1; /**< Indicates Time-Out Error from Digital Sensor */ - uint16_t Under_Range : 1; /**< Indicates Channel Under-Range */ - uint16_t Over_Range : 1; /**< Indicates Channel Over-Range */ - uint16_t Low_Limit : 1; /**< Indicates Sensor Result is Less Than Low Limit */ - uint16_t High_Limit : 1; /**< Indicates Sensor Result is Greater Than High Limit */ - uint16_t Sensor_Open : 1; /**< Indicates Sensor Input is Open Circuit */ - uint16_t Ref_Detect : 1; /**< Indicates Whether ADC Reference is Valid */ - uint16_t Calibration_Invalid : 1; /**< Indicates Problem During Calibration of Channel */ - uint16_t Config_Err : 1; /**< Indicates Configuration Error on Channel */ - uint16_t LUT_Error_Ch : 1; /**< Indicates Error with Channel Look-Up-Table */ - uint16_t Under_Voltage : 1; /**< Indicates Channel Under-Voltage */ - uint16_t Over_Voltage : 1; /**< Indicates Channel Over-Voltage */ - uint16_t Correction_UnderRange : 1; /**< Indicates Result Less Than LUT/Equation Range */ - uint16_t Correction_OverRange : 1; /**< Indicates Result Larger Than LUT/Equation Range */ - uint16_t Sensor_Not_Ready : 1; /**< Indicates Digital Sensor Not Ready When Read */ - uint16_t Comp_Not_Ready : 1; /**< Indicates Compensation Channel Not Ready When Required */ + uint16_t Result_Valid : 1; /**< Set If a Result is Valid */ + uint16_t ADC_Near_Overrange : 1; /**< Indicates If the ADC is Near Overrange */ + uint16_t Sensor_UnderRange : 1; /**< Indicates If the Sensor is Underrange */ + uint16_t Sensor_OverRange : 1; /**< Indicates If the Sensor is Overrange */ + uint16_t CJ_Soft_Fault : 1; /**< Cold Junction Soft Fault */ + uint16_t CJ_Hard_Fault : 1; /**< Cold Junction Hard Fault */ + uint16_t ADC_Input_OverRange : 1; /**< Indicates the ADC Input is Overrange */ + uint16_t Sensor_HardFault : 1; /**< Indicates Sensor Hard Fault */ + uint16_t reserved8 : 8; }; uint16_t VALUE16; }; @@ -770,39 +702,19 @@ /*@}*/ -/** @defgroup Alert_Code Code Indicating Source of Alert (Alert_Code) Register - * Code Indicating Source of Alert (Alert_Code) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Alert_Code_Struct - *! \brief Code Indicating Source of Alert Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Alert_Code_t { - union { - struct { - uint16_t Alert_Code : 16; /**< Code Indicating Type of Alert */ - }; - uint16_t VALUE16; - }; -} ADMW_CORE_Alert_Code_t; - -/*@}*/ - -/** @defgroup External_Reference_Resistor External Reference Information (External_Reference_Resistor) Register - * External Reference Information (External_Reference_Resistor) Register. +/** @defgroup External_Reference_Resistor External Reference Resistor Value (External_Reference_Resistor) Register + * External Reference Resistor Value (External_Reference_Resistor) Register. * @{ */ /* ========================================================================== *! \struct ADMW_CORE_External_Reference_Resistor_Struct - *! \brief External Reference Information Register bit field structure + *! \brief External Reference Resistor Value Register bit field structure * ========================================================================== */ typedef struct _ADMW_CORE_External_Reference_Resistor_t { union { struct { - float Ext_Refin1_Value; /**< Refin1 Value */ + float Ext_Refin1_Value; /**< External Reference Resistor Value */ }; float VALUE32; }; @@ -810,26 +722,6 @@ /*@}*/ -/** @defgroup External_Voltage_Reference External Reference Information (External_Voltage_Reference) Register - * External Reference Information (External_Voltage_Reference) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_External_Voltage_Reference_Struct - *! \brief External Reference Information Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_External_Voltage_Reference_t { - union { - struct { - float Ext_Refin2_Value; /**< Refin2 Value */ - }; - float VALUE32; - }; -} ADMW_CORE_External_Voltage_Reference_t; - -/*@}*/ - /** @defgroup Diagnostics_Control Diagnostic Control (Diagnostics_Control) Register * Diagnostic Control (Diagnostics_Control) Register. * @{ @@ -841,10 +733,10 @@ * ========================================================================= */ typedef enum { - CORE_DIAGNOSTICS_CONTROL_OCD_OFF = 0, /**< No Open-Circuit Detection During Measurement */ - CORE_DIAGNOSTICS_CONTROL_OCD_PER_1_CYCLE = 1, /**< Open-Circuit Detection Performed Once Per Measurement Cycle */ - CORE_DIAGNOSTICS_CONTROL_OCD_PER_100_CYCLES = 2, /**< Open-Circuit Detection Performed Once Per Hundred Measurement Cycles */ - CORE_DIAGNOSTICS_CONTROL_OCD_PER_1000_CYCLES = 3 /**< Open-Circuit Detection Performed Once Per Thousand Measurement Cycles */ + CORE_DIAGNOSTICS_CONTROL_OCD_OFF = 0, /**< No Open-Circuit Detection During Measurement */ + CORE_DIAGNOSTICS_CONTROL_OCD_PER_1_CYCLE = 1, /**< Open-Circuit Detection Performed Once Per Measurement Cycle */ + CORE_DIAGNOSTICS_CONTROL_OCD_PER_10_CYCLES = 2, /**< Open-Circuit Detection Performed Once Per Ten Measurement Cycles */ + CORE_DIAGNOSTICS_CONTROL_OCD_PER_100_CYCLES = 3 /**< Open-Circuit Detection Performed Once Per Hundred Measurement Cycles */ } ADMW_CORE_Diagnostics_Control_Diag_OSD_Freq; @@ -855,12 +747,11 @@ typedef struct _ADMW_CORE_Diagnostics_Control_t { union { struct { - uint16_t Diag_Global_En : 1; /**< Diagnostics Global Enable */ - uint16_t Diag_Meas_En : 1; /**< Diagnostics Measure Enable */ - uint16_t Diag_OSD_Freq : 2; /**< Diagnostics Open Sensor Detect Frequency */ - uint16_t reserved4 : 12; + uint8_t Diag_Meas_En : 1; /**< Diagnostics Measure Enable */ + uint8_t Diag_OSD_Freq : 2; /**< Diagnostics Open Sensor Detect Frequency */ + uint8_t reserved3 : 5; }; - uint16_t VALUE16; + uint8_t VALUE8; }; } ADMW_CORE_Diagnostics_Control_t; @@ -878,7 +769,7 @@ typedef struct _ADMW_CORE_Data_FIFO_t { union { struct { - uint8_t Data_Fifo : 8; /**< Fifo Buffer of Sensor Results */ + uint8_t Data_Fifo : 8; /**< FIFO Buffer of Sensor Results */ }; uint8_t VALUE8; }; @@ -906,28 +797,28 @@ /*@}*/ -/** @defgroup Advanced_Sensor_Access Enables Access to Advanced Sensor Configuration (Advanced_Sensor_Access) Register - * Enables Access to Advanced Sensor Configuration (Advanced_Sensor_Access) Register. +/** @defgroup Test_Reg_Access Allows Access to Test (Hidden) Registers and Features (Test_Reg_Access) Register + * Allows Access to Test (Hidden) Registers and Features (Test_Reg_Access) Register. * @{ */ /* ========================================================================== - *! \struct ADMW_CORE_Advanced_Sensor_Access_Struct - *! \brief Enables Access to Advanced Sensor Configuration Register bit field structure + *! \struct ADMW_CORE_Test_Reg_Access_Struct + *! \brief Allows Access to Test (Hidden) Registers and Features Register bit field structure * ========================================================================== */ -typedef struct _ADMW_CORE_Advanced_Sensor_Access_t { +typedef struct _ADMW_CORE_Test_Reg_Access_t { union { struct { - uint16_t Advanced_Sensor_Access : 16; /**< Write Specific Key Value to Access Advanced Sensors */ + uint16_t Test_Access : 16; /**< Test Register Access. Specific Write Sequence Required */ }; uint16_t VALUE16; }; -} ADMW_CORE_Advanced_Sensor_Access_t; +} ADMW_CORE_Test_Reg_Access_t; /*@}*/ -/** @defgroup LUT_Select Read/Write Strobe (LUT_Select) Register - * Read/Write Strobe (LUT_Select) Register. +/** @defgroup LUT_Select LUT Read/Write Strobe (LUT_Select) Register + * LUT Read/Write Strobe (LUT_Select) Register. * @{ */ @@ -937,14 +828,14 @@ * ========================================================================= */ typedef enum { - CORE_LUT_SELECT_LUT_READ = 0, /**< Read Addressed LUT Data */ - CORE_LUT_SELECT_LUT_WRITE = 1 /**< Write Addressed LUT Data */ + CORE_LUT_SELECT_LUT_READ = 0, /**< Read addressed LUT data */ + CORE_LUT_SELECT_LUT_WRITE = 1 /**< Write addressed LUT data */ } ADMW_CORE_LUT_Select_LUT_RW; /* ========================================================================== *! \struct ADMW_CORE_LUT_Select_Struct - *! \brief Read/Write Strobe Register bit field structure + *! \brief LUT Read/Write Strobe Register bit field structure * ========================================================================== */ typedef struct _ADMW_CORE_LUT_Select_t { union { @@ -970,7 +861,7 @@ typedef struct _ADMW_CORE_LUT_Offset_t { union { struct { - uint16_t LUT_Offset : 14; /**< Offset into Look-Up-Table */ + uint16_t LUT_Offset : 14; /**< Offset into the Lookup Table */ uint16_t reserved14 : 2; }; uint16_t VALUE16; @@ -991,7 +882,7 @@ typedef struct _ADMW_CORE_LUT_Data_t { union { struct { - uint8_t LUT_Data : 8; /**< Data Byte to Write to / Read from Look-Up-Table */ + uint8_t LUT_Data : 8; /**< Data Byte to Write to and Read from the Lookup Table */ }; uint8_t VALUE8; }; @@ -1033,7 +924,7 @@ typedef struct _ADMW_CORE_Channel_Count_t { union { struct { - uint8_t Channel_Count : 7; /**< How Many Times Channel Should Appear in One Cycle */ + uint8_t Channel_Count : 7; /**< How Many Times Channel Appears in One Cycle */ uint8_t Channel_Enable : 1; /**< Enable Channel in Measurement Cycle */ }; uint8_t VALUE8; @@ -1042,14 +933,14 @@ /*@}*/ -/** @defgroup Channel_Options Position of Channel Within Sequence and Enable for FFT (Channel_Options) Register - * Position of Channel Within Sequence and Enable for FFT (Channel_Options) Register. +/** @defgroup Channel_Options Position of Channel Within Sequence (Channel_Options) Register + * Position of Channel Within Sequence (Channel_Options) Register. * @{ */ /* ========================================================================== *! \struct ADMW_CORE_Channel_Options_Struct - *! \brief Position of Channel Within Sequence and Enable for FFT Register bit field structure + *! \brief Position of Channel Within Sequence Register bit field structure * ========================================================================== */ typedef struct _ADMW_CORE_Channel_Options_t { union { @@ -1074,35 +965,20 @@ * ========================================================================= */ typedef enum { - CORE_SENSOR_TYPE_THERMOCOUPLE_T = 0, /**< Thermocouple T-Type Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_THERMOCOUPLE_J = 1, /**< Thermocouple J-Type Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_THERMOCOUPLE_K = 2, /**< Thermocouple K-Type Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_RTD_2W_PT100 = 32, /**< RTD 2 Wire PT100 Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_RTD_2W_PT1000 = 33, /**< RTD 2 Wire PT1000 Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_RTD_3W_PT100 = 64, /**< RTD 3 Wire PT100 Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_RTD_3W_PT1000 = 65, /**< RTD 3 Wire PT1000 Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_RTD_4W_PT100 = 96, /**< RTD 4 Wire PT100 Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_RTD_4W_PT1000 = 97, /**< RTD 4 Wire PT1000 Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_THERMISTOR_A_10K = 128, /**< Thermistor Type A 10kOhm Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_THERMISTOR_B_10K = 129, /**< Thermistor Type B 10kOhm Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_BRIDGE_4W_2 = 169, /**< Bridge 4 Wire Sensor 2 Defined Level 2 */ - CORE_SENSOR_TYPE_BRIDGE_6W_1 = 200, /**< Bridge 6 Wire Sensor 1 Defined Level 2 */ - CORE_SENSOR_TYPE_BRIDGE_6W_2 = 201, /**< Bridge 6 Wire Sensor 2 Defined Level 2 */ - CORE_SENSOR_TYPE_DIODE_2C_TYPEA = 224, /**< Diode 2 Current Type A Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_DIODE_3C_TYPEA = 225, /**< Diode 3 Current Type A Sensor Defined Level 1 */ - CORE_SENSOR_TYPE_DIODE_2C_1 = 232, /**< Diode 2 Current Sensor 1 Defined Level 2 */ - CORE_SENSOR_TYPE_DIODE_3C_1 = 233, /**< Diode 3 Current Sensor 1 Defined Level 2 */ - CORE_SENSOR_TYPE_VOLTAGE = 512, /**< Voltage Input */ - CORE_SENSOR_TYPE_VOLTAGE_PRESSURE_A = 544, /**< Voltage Output Pressure Sensor A Defined Level 1 */ - CORE_SENSOR_TYPE_VOLTAGE_PRESSURE_B = 545, /**< Voltage Output Pressure Sensor B Defined Level 1 */ - CORE_SENSOR_TYPE_CURRENT = 768, /**< Current Input */ - CORE_SENSOR_TYPE_I2C_PRESSURE_A = 2048, /**< I2C Pressure Sensor A Defined Level 1 */ - CORE_SENSOR_TYPE_I2C_PRESSURE_B = 2049, /**< I2C Pressure Sensor B Defined Level 1 */ - CORE_SENSOR_TYPE_I2C_HUMIDITY_A = 2112, /**< I2C Humidity Sensor A Defined Level 1 */ - CORE_SENSOR_TYPE_I2C_HUMIDITY_B = 2113, /**< I2C Humidity Sensor B Defined Level 1 */ - CORE_SENSOR_TYPE_SPI_ACCELEROMETER_A = 3200, /**< SPI Accelerometer Sensor A 3-Axis Defined Level 1 */ - CORE_SENSOR_TYPE_SPI_ACCELEROMETER_B = 3201, /**< SPI Accelerometer Sensor B 3-Axis Defined Level 1 */ - CORE_SENSOR_TYPE_CO2_A_DEF = 3584 /**< CO2 Sensor A Defined Level 1 */ + CORE_SENSOR_TYPE_THERMOCOUPLE_T = 0, /**< Thermocouple T-Type sensor */ + CORE_SENSOR_TYPE_THERMOCOUPLE_J = 1, /**< Thermocouple J-Type Sensor */ + CORE_SENSOR_TYPE_THERMOCOUPLE_K = 2, /**< Thermocouple K-Type Sensor */ + CORE_SENSOR_TYPE_RTD_2W_PT100 = 32, /**< RTD 2 wire PT100 sensor */ + CORE_SENSOR_TYPE_RTD_2W_PT1000 = 33, /**< RTD 2 wire PT1000 sensor */ + CORE_SENSOR_TYPE_RTD_3W_PT100 = 64, /**< RTD 3 wire PT100 sensor */ + CORE_SENSOR_TYPE_RTD_3W_PT1000 = 65, /**< RTD 3 wire PT1000 sensor */ + CORE_SENSOR_TYPE_RTD_4W_PT100 = 96, /**< RTD 4 wire PT100 sensor */ + CORE_SENSOR_TYPE_RTD_4W_PT1000 = 97, /**< RTD 4 wire PT1000 sensor */ + CORE_SENSOR_TYPE_BRIDGE_4W = 169, /**< Bridge 4 wire sensor */ + CORE_SENSOR_TYPE_CUSTOM1 = 1024, /**< Custom1 */ + CORE_SENSOR_TYPE_I2C_HUMIDITY_B = 2113, /**< I2C humidity sensor B */ + CORE_SENSOR_TYPE_SENSOR_RESERVED_1 = 4064, /**< RESERVED. NOT TO BE USED */ + CORE_SENSOR_TYPE_SENSOR_RESERVED_2 = 4095 /**< RESERVED. NOT TO BE USED */ } ADMW_CORE_Sensor_Type_Sensor_Type; @@ -1146,9 +1022,9 @@ * ========================================================================= */ typedef enum { - CORE_SENSOR_DETAILS_LUT_DEFAULT = 0, /**< Default Lookup Table for Selected Sensor Type */ - CORE_SENSOR_DETAILS_LUT_UNITY = 1, /**< Unity Lookup Table. 1:1 Mapping From Input to Output */ - CORE_SENSOR_DETAILS_LUT_CUSTOM = 2, /**< User Defined Custom Lookup Table. */ + CORE_SENSOR_DETAILS_LUT_DEFAULT = 0, /**< Default lookup table for selected sensor type */ + CORE_SENSOR_DETAILS_LUT_UNITY = 1, /**< Unity lookup table. 1:1 mapping from input to output */ + CORE_SENSOR_DETAILS_LUT_CUSTOM = 2, /**< User defined custom lookup table. */ CORE_SENSOR_DETAILS_LUT_RESERVED = 3 /**< Reserved */ } ADMW_CORE_Sensor_Details_LUT_Select; @@ -1159,11 +1035,9 @@ * ========================================================================= */ typedef enum { - CORE_SENSOR_DETAILS_REF_VINT = 0, /**< Internal voltage reference (1.2V) */ - CORE_SENSOR_DETAILS_REF_VEXT1 = 1, /**< External Voltage reference applied to VERF+ and VREF- */ - CORE_SENSOR_DETAILS_REF_VRESERVED = 2, /**< ExReserved for future use. */ - CORE_SENSOR_DETAILS_REF_AVDD = 3, /**< AVDD Supply Used as Excitation and Internally applied as Reference */ - CORE_SENSOR_DETAILS_REF_NUM /**< Number of reference options. */ + CORE_SENSOR_DETAILS_REF_VINT = 0, /**< Internal voltage reference (1.2V) */ + CORE_SENSOR_DETAILS_REF_VEXT1 = 1, /**< External voltage reference applied to VERF+ and VREF- */ + CORE_SENSOR_DETAILS_REF_AVDD = 3 /**< AVDD supply internally used as reference */ } ADMW_CORE_Sensor_Details_Reference_Select; @@ -1186,14 +1060,14 @@ /* ========================================================================= *! \enum ADMW_CORE_Sensor_Details_RTD_Curve - *! \brief Select RTD Curve for Linearisation (RTD_Curve) Enumerations + *! \brief Select RTD Curve for Linearization (RTD_Curve) Enumerations * ========================================================================= */ typedef enum { - CORE_SENSOR_DETAILS_EUROPEAN_CURVE = 0, /**< European Curve */ - CORE_SENSOR_DETAILS_AMERICAN_CURVE = 1, /**< American Curve */ - CORE_SENSOR_DETAILS_JAPANESE_CURVE = 2, /**< Japanese Curve */ - CORE_SENSOR_DETAILS_ITS90_CURVE = 3 /**< ITS-90 Curve */ + CORE_SENSOR_DETAILS_EUROPEAN_CURVE = 0, /**< European curve */ + CORE_SENSOR_DETAILS_AMERICAN_CURVE = 1, /**< American curve */ + CORE_SENSOR_DETAILS_JAPANESE_CURVE = 2, /**< Japanese curve */ + CORE_SENSOR_DETAILS_ITS90_CURVE = 3 /**< ITS-90 curve */ } ADMW_CORE_Sensor_Details_RTD_Curve; @@ -1205,16 +1079,16 @@ union { struct { uint32_t Measurement_Units : 4; /**< Units of Sensor Measurement */ - uint32_t Compensation_Channel : 4; /**< Indicates Which Channel is Used to Compensate Sensor Result */ + uint32_t Compensation_Channel : 4; /**< Indicates Which Channel Used to Compensate the Sensor Result */ uint32_t reserved8 : 7; uint32_t LUT_Select : 2; /**< Lookup Table Select */ uint32_t Do_Not_Publish : 1; /**< Do Not Publish Channel Result */ uint32_t reserved18 : 2; uint32_t Reference_Select : 4; /**< Reference Selection */ uint32_t PGA_Gain : 3; /**< PGA Gain */ - uint32_t RTD_Curve : 2; /**< Select RTD Curve for Linearisation */ + uint32_t RTD_Curve : 2; /**< Select RTD Curve for Linearization */ uint32_t reserved29 : 2; - uint32_t Compensation_Disable : 1; /**< Indicates Compensation Data Should Not Be Used */ + uint32_t Compensation_Disable : 1; /**< This Bit Indicates Compensation Data Must Not Be Used */ }; uint32_t VALUE32; }; @@ -1233,36 +1107,19 @@ * ========================================================================= */ typedef enum { - CORE_CHANNEL_EXCITATION_NONE =-1, /**< No External urrent Source */ - CORE_CHANNEL_EXCITATION_EXTERNAL = 0, /**< External Current Sourced */ - CORE_CHANNEL_EXCITATION_RESERVED = 1, /**< Reserved */ - CORE_CHANNEL_EXCITATION_IEXC_10UA = 2, /**< 10 \mu;A */ - CORE_CHANNEL_EXCITATION_RESERVED2 = 3, /**< Reserved */ - CORE_CHANNEL_EXCITATION_IEXC_50UA = 4, /**< 50 \mu;A */ - CORE_CHANNEL_EXCITATION_IEXC_100UA = 5, /**< 100 \mu;A */ - CORE_CHANNEL_EXCITATION_IEXC_250UA = 6, /**< 250 \mu;A */ - CORE_CHANNEL_EXCITATION_IEXC_500UA = 7, /**< 500 \mu;A */ - CORE_CHANNEL_EXCITATION_IEXC_1000UA = 8 /**< 1000 \mu;A */ + CORE_CHANNEL_EXCITATION_NONE = 0, /**< Excitation Current Disabled */ + CORE_CHANNEL_EXCITATION_RESERVED = 1, /**< Reserved */ + CORE_CHANNEL_EXCITATION_IEXC_10UA = 2, /**< 10 \mu;A */ + CORE_CHANNEL_EXCITATION_RESERVED2 = 3, /**< Reserved */ + CORE_CHANNEL_EXCITATION_IEXC_50UA = 4, /**< 50 \mu;A */ + CORE_CHANNEL_EXCITATION_IEXC_100UA = 5, /**< 100 \mu;A */ + CORE_CHANNEL_EXCITATION_IEXC_250UA = 6, /**< 250 \mu;A */ + CORE_CHANNEL_EXCITATION_IEXC_500UA = 7, /**< 500 \mu;A */ + CORE_CHANNEL_EXCITATION_IEXC_1000UA = 8, /**< 1000 \mu;A */ + CORE_CHANNEL_EXCITATION_EXTERNAL = 15 /**< External current sourced */ } ADMW_CORE_Channel_Excitation_IOUT_Excitation_Current; -/* ========================================================================= - *! \enum ADMW_CORE_Channel_Excitation_IOUT_Diode_Ratio - *! \brief Modify Current Ratios Used for Diode Sensor (IOUT_Diode_Ratio) Enumerations - * ========================================================================= */ -typedef enum -{ - CORE_CHANNEL_EXCITATION_DIODE_2PT_10UA_100UA = 0, /**< 2 Current measurement 10uA 100uA */ - CORE_CHANNEL_EXCITATION_DIODE_2PT_20UA_160UA = 1, /**< 2 Current measurement 20uA 160uA */ - CORE_CHANNEL_EXCITATION_DIODE_2PT_50UA_300UA = 2, /**< 2 Current measurement 50uA 300uA */ - CORE_CHANNEL_EXCITATION_DIODE_2PT_100UA_600UA = 3, /**< 2 Current measurement 100uA 600uA */ - CORE_CHANNEL_EXCITATION_DIODE_3PT_10UA_50UA_100UA = 4, /**< 3 current measuremet 10uA 50uA 100uA */ - CORE_CHANNEL_EXCITATION_DIODE_3PT_20UA_100UA_160UA = 5, /**< 3 current measuremet 20uA 100uA 160uA */ - CORE_CHANNEL_EXCITATION_DIODE_3PT_50UA_150UA_300UA = 6, /**< 3 current measuremet 50uA 150uA 300uA */ - CORE_CHANNEL_EXCITATION_DIODE_3PT_100UA_300UA_600UA = 7 /**< 3 current measuremet 100uA 300uA 600uA */ -} ADMW_CORE_Channel_Excitation_IOUT_Diode_Ratio; - - /* ========================================================================== *! \struct ADMW_CORE_Channel_Excitation_Struct *! \brief Excitation Current Register bit field structure @@ -1271,9 +1128,7 @@ union { struct { uint16_t IOUT_Excitation_Current : 4; /**< Current Source Value */ - uint16_t reserved4 : 2; - uint16_t IOUT_Diode_Ratio : 3; /**< Modify Current Ratios Used for Diode Sensor */ - uint16_t reserved9 : 7; + uint16_t reserved4 : 12; }; uint16_t VALUE16; }; @@ -1292,9 +1147,10 @@ * ========================================================================= */ typedef enum { - CORE_SETTLING_TIME_MICROSECONDS = 0, /**< Micro-Seconds */ - CORE_SETTLING_TIME_MILLISECONDS = 1, /**< Milli-Seconds */ - CORE_SETTLING_TIME_SECONDS = 2 /**< Seconds */ + CORE_SETTLING_TIME_MICROSECONDS = 0, /**< Micro-seconds */ + CORE_SETTLING_TIME_MILLISECONDS = 1, /**< Milli-seconds */ + CORE_SETTLING_TIME_SECONDS = 2, /**< Seconds */ + CORE_SETTLING_TIME_UNDEFINED = 3 /**< Undefined */ } ADMW_CORE_Settling_Time_Settling_Time_Units; @@ -1314,36 +1170,25 @@ /*@}*/ -/** @defgroup Measurement_Setup ADC Digital Filter Selection (Measurement_Setup) Register - * ADC Digital Filter Selection (Measurement_Setup) Register. +/** @defgroup Measurement_Setup ADC Measurement Setup (Measurement_Setup) Register + * ADC Measurement Setup (Measurement_Setup) Register. * @{ */ /* ========================================================================= - *! \enum ADMW_CORE_Measurement_Setup_Custom_Calibration - *! \brief Enables Custom Calibration for Selected Sensor (Custom_Calibration) Enumerations - * ========================================================================= */ -typedef enum -{ - CORE_MEASUREMENT_SETUP_INTERNAL_CALIBRATION = 0, /**< */ - CORE_MEASUREMENT_SETUP_CUSTOM_CALIBRATION = 1 /**< */ -} ADMW_CORE_Measurement_Setup_Custom_Calibration; - - -/* ========================================================================= *! \enum ADMW_CORE_Measurement_Setup_NOTCH_EN_2 *! \brief Enable Notch 2 Filter Mode (NOTCH_EN_2) Enumerations * ========================================================================= */ typedef enum { - CORE_MEASUREMENT_SETUP_NOTCH_DIS = 0, /**< Disable Notch Filter */ - CORE_MEASUREMENT_SETUP_NOTCH_EN = 1 /**< Enable Notch 2 Filter option. Places a addtional notch at 1.2X ODR. Can be used for 50 and 60Hz rejection simultaneously */ + CORE_MEASUREMENT_SETUP_NOTCH_DIS = 0, /**< Disable notch filter */ + 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 Disabled Current Sources After Measurement Has Been Complete (PST_MEAS_EXC_CTRL) Enumerations + *! \brief Disable Current Sources After Measurement Completes (PST_MEAS_EXC_CTRL) Enumerations * ========================================================================= */ typedef enum { @@ -1358,10 +1203,10 @@ * ========================================================================= */ typedef enum { - CORE_MEASUREMENT_SETUP_DISABLE_CHOP = 0, /**< Chop Mode Disabled */ - CORE_MEASUREMENT_SETUP_HW_CHOP = 1, /**< Chop Mode Enabled */ - CORE_MEASUREMENT_SETUP_ENABLE_CHOP = 2, /**< Chop Mode Enabled */ - CORE_MEASUREMENT_SETUP_HW_SW_CHOP = 3 /**< Chop Mode Enabled */ + CORE_MEASUREMENT_SETUP_DISABLE_CHOP = 0, /**< ADC front end chopping disabled */ + CORE_MEASUREMENT_SETUP_HW_CHOP = 1, /**< Hardware chopping enabled */ + CORE_MEASUREMENT_SETUP_SW_CHOP = 2, /**< SW chop enabled */ + CORE_MEASUREMENT_SETUP_HW_SW_CHOP = 3 /**< Hardware and software chop enabled */ } ADMW_CORE_Measurement_Setup_Chop_Mode; @@ -1371,19 +1216,19 @@ * ========================================================================= */ typedef enum { - CORE_MEASUREMENT_SETUP_ENABLE_SINC4 = 0, /**< Enabled SINC4 Filter */ - CORE_MEASUREMENT_SETUP_ENABLE_SINC3 = 1 /**< Enabled SINC3 Filter */ + CORE_MEASUREMENT_SETUP_ENABLE_SINC4 = 0, /**< Enabled SINC4 filter */ + CORE_MEASUREMENT_SETUP_ENABLE_SINC3 = 1 /**< Enabled SINC3 filter */ } ADMW_CORE_Measurement_Setup_ADC_Filter_Type; /* ========================================================================= *! \enum ADMW_CORE_Measurement_Setup_GND_SW - *! \brief GND_SW (GND_SW) Enumerations + *! \brief Ground Switch Selection (GND_SW) Enumerations * ========================================================================= */ typedef enum { - CORE_MEASUREMENT_SETUP_GND_SW_OPEN = 0, /**< GND_SW Open. The GND SW is not enabled for the sensor measurement */ - CORE_MEASUREMENT_SETUP_GND_SW_CLOSED = 1 /**< GND_SW Closed. The GND SW is enabled for the sensor measurement, bit wiil Remain Closed After the Measurement */ + 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; @@ -1393,27 +1238,27 @@ * ========================================================================= */ typedef enum { - CORE_MEASUREMENT_SETUP_BUFFERS_ENABLED = 0, /**< */ - CORE_MEASUREMENT_SETUP_BUFFERS_DISABLED = 1 /**< */ + CORE_MEASUREMENT_SETUP_BUFFERS_ENABLED = 0, /**< Input buffers enabled */ + CORE_MEASUREMENT_SETUP_BUFFERS_DISABLED = 1 /**< Input buffers disabled */ } ADMW_CORE_Measurement_Setup_Buffer_Bypass; /* ========================================================================== *! \struct ADMW_CORE_Measurement_Setup_Struct - *! \brief ADC Digital Filter Selection Register bit field structure + *! \brief ADC Measurement Setup Register bit field structure * ========================================================================== */ typedef struct _ADMW_CORE_Measurement_Setup_t { union { struct { - uint32_t ADC_SF : 7; /**< ADC Digital Filter Select */ - uint32_t Custom_Calibration : 1; /**< Enables Custom Calibration for Selected Sensor */ - uint32_t NOTCH_EN_2 : 1; /**< Enable Notch 2 Filter Mode */ - uint32_t PST_MEAS_EXC_CTRL : 1; /**< Disabled Current Sources After Measurement Has Been Complete */ - 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; /**< GND_SW */ - uint32_t Buffer_Bypass : 1; /**< Disable Buffers */ - uint32_t reserved16 : 16; + 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 VALUE32; }; @@ -1501,26 +1346,6 @@ /*@}*/ -/** @defgroup Alert_Code_Ch Per-Channel Detailed Alert-Code Information (Alert_Code_Ch) Register - * Per-Channel Detailed Alert-Code Information (Alert_Code_Ch) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Alert_Code_Ch_Struct - *! \brief Per-Channel Detailed Alert-Code Information Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Alert_Code_Ch_t { - union { - struct { - uint16_t Alert_Code_Ch : 16; /**< Per-Channel Code Indicating Type of Alert */ - }; - uint16_t VALUE16; - }; -} ADMW_CORE_Alert_Code_Ch_t; - -/*@}*/ - /** @defgroup Channel_Skip Indicates If Channel Will Skip Some Measurement Cycles (Channel_Skip) Register * Indicates If Channel Will Skip Some Measurement Cycles (Channel_Skip) Register. * @{ @@ -1542,48 +1367,6 @@ /*@}*/ -/** @defgroup Sensor_Parameter Sensor Parameter Adjustment (Sensor_Parameter) Register - * Sensor Parameter Adjustment (Sensor_Parameter) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Sensor_Parameter_Struct - *! \brief Sensor Parameter Adjustment Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Sensor_Parameter_t { - union { - struct { - float Sensor_Parameter; /**< Sensor Parameter Adjustment */ - }; - float VALUE32; - }; -} ADMW_CORE_Sensor_Parameter_t; - -/*@}*/ - -/** @defgroup Calibration_Parameter Calibration Parameter Value (Calibration_Parameter) Register - * Calibration Parameter Value (Calibration_Parameter) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Calibration_Parameter_Struct - *! \brief Calibration Parameter Value Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Calibration_Parameter_t { - union { - struct { - uint32_t Calibration_Parameter : 24; /**< Calibration Parameter Value */ - uint32_t Calibration_Parameter_Enable : 1; /**< Enables Use of Calibration_Parameter */ - uint32_t reserved25 : 7; - }; - uint32_t VALUE32; - }; -} ADMW_CORE_Calibration_Parameter_t; - -/*@}*/ - /** @defgroup Digital_Sensor_Config Digital Sensor Data Coding (Digital_Sensor_Config) Register * Digital Sensor Data Coding (Digital_Sensor_Config) Register. * @{ @@ -1597,8 +1380,8 @@ { CORE_DIGITAL_SENSOR_CONFIG_CODING_NONE = 0, /**< None/Invalid */ CORE_DIGITAL_SENSOR_CONFIG_CODING_UNIPOLAR = 1, /**< Unipolar */ - CORE_DIGITAL_SENSOR_CONFIG_CODING_TWOS_COMPL = 2, /**< Twos Complement */ - CORE_DIGITAL_SENSOR_CONFIG_CODING_OFFSET_BINARY = 3 /**< Offset Binary */ + CORE_DIGITAL_SENSOR_CONFIG_CODING_TWOS_COMPL = 2, /**< Twos complement */ + CORE_DIGITAL_SENSOR_CONFIG_CODING_OFFSET_BINARY = 3 /**< Offset binary */ } ADMW_CORE_Digital_Sensor_Config_Digital_Sensor_Coding; @@ -1642,29 +1425,6 @@ /*@}*/ -/** @defgroup Digital_Sensor_Num_Cmds Number of Configuration, Read Commands for Digital Sensors (Digital_Sensor_Num_Cmds) Register - * Number of Configuration, Read Commands for Digital Sensors (Digital_Sensor_Num_Cmds) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Num_Cmds_Struct - *! \brief Number of Configuration, Read Commands for Digital Sensors Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Num_Cmds_t { - union { - struct { - uint8_t Digital_Sensor_Num_Cfg_Cmds : 3; /**< Number of Configuration Commands for Digital Sensor */ - uint8_t reserved3 : 1; - uint8_t Digital_Sensor_Num_Read_Cmds : 3; /**< Number of Read Commands for Digital Sensor */ - uint8_t reserved7 : 1; - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Num_Cmds_t; - -/*@}*/ - /** @defgroup Digital_Sensor_Comms Digital Sensor Communication Clock Configuration (Digital_Sensor_Comms) Register * Digital Sensor Communication Clock Configuration (Digital_Sensor_Comms) Register. * @{ @@ -1672,12 +1432,12 @@ /* ========================================================================= *! \enum ADMW_CORE_Digital_Sensor_Comms_Digital_Sensor_Comms_En - *! \brief Enable Digital Sensor Comms Register Parameters (Digital_Sensor_Comms_En) Enumerations + *! \brief Enable Digital Sensor Communications Register Parameters (Digital_Sensor_Comms_En) Enumerations * ========================================================================= */ typedef enum { - CORE_DIGITAL_SENSOR_COMMS_DIGITAL_COMMS_DEFAULT = 0, /**< Default Parameters Used for Digital Sensor Communications */ - CORE_DIGITAL_SENSOR_COMMS_DIGITAL_COMMS_USER = 1 /**< User Supplied Parameters Used for Digital Sensor Communications */ + CORE_DIGITAL_SENSOR_COMMS_DIGITAL_COMMS_DEFAULT = 0, /**< Default parameters used for digital sensor communications */ + CORE_DIGITAL_SENSOR_COMMS_DIGITAL_COMMS_USER = 1 /**< User supplied parameters used for digital sensor communications */ } ADMW_CORE_Digital_Sensor_Comms_Digital_Sensor_Comms_En; @@ -1725,10 +1485,10 @@ * ========================================================================= */ typedef enum { - CORE_DIGITAL_SENSOR_COMMS_SPI_MODE_0 = 0, /**< Clock Polarity = 0 Clock Phase = 0 */ - CORE_DIGITAL_SENSOR_COMMS_SPI_MODE_1 = 1, /**< Clock Polarity = 0 Clock Phase = 1 */ - CORE_DIGITAL_SENSOR_COMMS_SPI_MODE_2 = 2, /**< Clock Polarity = 1 Clock Phase = 0 */ - CORE_DIGITAL_SENSOR_COMMS_SPI_MODE_3 = 3 /**< Clock Polarity = 1 Clock Phase = 1 */ + CORE_DIGITAL_SENSOR_COMMS_SPI_MODE_0 = 0, /**< Clock polarity = 0 Clock phase = 0 */ + CORE_DIGITAL_SENSOR_COMMS_SPI_MODE_1 = 1, /**< Clock polarity = 0 Clock phase = 1 */ + CORE_DIGITAL_SENSOR_COMMS_SPI_MODE_2 = 2, /**< Clock polarity = 1 Clock phase = 0 */ + CORE_DIGITAL_SENSOR_COMMS_SPI_MODE_3 = 3 /**< Clock polarity = 1 Clock phase = 1 */ } ADMW_CORE_Digital_Sensor_Comms_SPI_Mode; @@ -1739,7 +1499,7 @@ typedef struct _ADMW_CORE_Digital_Sensor_Comms_t { union { struct { - uint16_t Digital_Sensor_Comms_En : 1; /**< Enable Digital Sensor Comms Register Parameters */ + uint16_t Digital_Sensor_Comms_En : 1; /**< Enable Digital Sensor Communications Register Parameters */ uint16_t SPI_Clock : 4; /**< Controls Clock Frequency for SPI Sensors */ uint16_t I2C_Clock : 2; /**< Controls SCLK Frequency for I2C Sensors */ uint16_t reserved7 : 3; @@ -1752,286 +1512,6 @@ /*@}*/ -/** @defgroup Digital_Sensor_Command1 Sensor Configuration Command1 (Digital_Sensor_Command1) Register - * Sensor Configuration Command1 (Digital_Sensor_Command1) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Command1_Struct - *! \brief Sensor Configuration Command1 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Command1_t { - union { - struct { - uint8_t Digital_Sensor_Command1 : 8; /**< Configuration Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Command1_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Command2 Sensor Configuration Command2 (Digital_Sensor_Command2) Register - * Sensor Configuration Command2 (Digital_Sensor_Command2) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Command2_Struct - *! \brief Sensor Configuration Command2 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Command2_t { - union { - struct { - uint8_t Digital_Sensor_Command2 : 8; /**< Configuration Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Command2_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Command3 Sensor Configuration Command3 (Digital_Sensor_Command3) Register - * Sensor Configuration Command3 (Digital_Sensor_Command3) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Command3_Struct - *! \brief Sensor Configuration Command3 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Command3_t { - union { - struct { - uint8_t Digital_Sensor_Command3 : 8; /**< Configuration Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Command3_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Command4 Sensor Configuration Command4 (Digital_Sensor_Command4) Register - * Sensor Configuration Command4 (Digital_Sensor_Command4) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Command4_Struct - *! \brief Sensor Configuration Command4 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Command4_t { - union { - struct { - uint8_t Digital_Sensor_Command4 : 8; /**< Configuration Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Command4_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Command5 Sensor Configuration Command5 (Digital_Sensor_Command5) Register - * Sensor Configuration Command5 (Digital_Sensor_Command5) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Command5_Struct - *! \brief Sensor Configuration Command5 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Command5_t { - union { - struct { - uint8_t Digital_Sensor_Command5 : 8; /**< Configuration Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Command5_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Command6 Sensor Configuration Command6 (Digital_Sensor_Command6) Register - * Sensor Configuration Command6 (Digital_Sensor_Command6) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Command6_Struct - *! \brief Sensor Configuration Command6 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Command6_t { - union { - struct { - uint8_t Digital_Sensor_Command6 : 8; /**< Configuration Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Command6_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Command7 Sensor Configuration Command7 (Digital_Sensor_Command7) Register - * Sensor Configuration Command7 (Digital_Sensor_Command7) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Command7_Struct - *! \brief Sensor Configuration Command7 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Command7_t { - union { - struct { - uint8_t Digital_Sensor_Command7 : 8; /**< Configuration Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Command7_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Read_Cmd1 Sensor Read Command1 (Digital_Sensor_Read_Cmd1) Register - * Sensor Read Command1 (Digital_Sensor_Read_Cmd1) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Read_Cmd1_Struct - *! \brief Sensor Read Command1 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Read_Cmd1_t { - union { - struct { - uint8_t Digital_Sensor_Read_Cmd1 : 8; /**< Per Conversion Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Read_Cmd1_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Read_Cmd2 Sensor Read Command2 (Digital_Sensor_Read_Cmd2) Register - * Sensor Read Command2 (Digital_Sensor_Read_Cmd2) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Read_Cmd2_Struct - *! \brief Sensor Read Command2 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Read_Cmd2_t { - union { - struct { - uint8_t Digital_Sensor_Read_Cmd2 : 8; /**< Per Conversion Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Read_Cmd2_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Read_Cmd3 Sensor Read Command3 (Digital_Sensor_Read_Cmd3) Register - * Sensor Read Command3 (Digital_Sensor_Read_Cmd3) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Read_Cmd3_Struct - *! \brief Sensor Read Command3 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Read_Cmd3_t { - union { - struct { - uint8_t Digital_Sensor_Read_Cmd3 : 8; /**< Per Conversion Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Read_Cmd3_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Read_Cmd4 Sensor Read Command4 (Digital_Sensor_Read_Cmd4) Register - * Sensor Read Command4 (Digital_Sensor_Read_Cmd4) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Read_Cmd4_Struct - *! \brief Sensor Read Command4 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Read_Cmd4_t { - union { - struct { - uint8_t Digital_Sensor_Read_Cmd4 : 8; /**< Per Conversion Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Read_Cmd4_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Read_Cmd5 Sensor Read Command5 (Digital_Sensor_Read_Cmd5) Register - * Sensor Read Command5 (Digital_Sensor_Read_Cmd5) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Read_Cmd5_Struct - *! \brief Sensor Read Command5 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Read_Cmd5_t { - union { - struct { - uint8_t Digital_Sensor_Read_Cmd5 : 8; /**< Per Conversion Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Read_Cmd5_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Read_Cmd6 Sensor Read Command6 (Digital_Sensor_Read_Cmd6) Register - * Sensor Read Command6 (Digital_Sensor_Read_Cmd6) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Read_Cmd6_Struct - *! \brief Sensor Read Command6 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Read_Cmd6_t { - union { - struct { - uint8_t Digital_Sensor_Read_Cmd6 : 8; /**< Per Conversion Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Read_Cmd6_t; - -/*@}*/ - -/** @defgroup Digital_Sensor_Read_Cmd7 Sensor Read Command7 (Digital_Sensor_Read_Cmd7) Register - * Sensor Read Command7 (Digital_Sensor_Read_Cmd7) Register. - * @{ - */ - -/* ========================================================================== - *! \struct ADMW_CORE_Digital_Sensor_Read_Cmd7_Struct - *! \brief Sensor Read Command7 Register bit field structure - * ========================================================================== */ -typedef struct _ADMW_CORE_Digital_Sensor_Read_Cmd7_t { - union { - struct { - uint8_t Digital_Sensor_Read_Cmd7 : 8; /**< Per Conversion Command to Send to Digital I2C/SPI Sensor */ - }; - uint8_t VALUE8; - }; -} ADMW_CORE_Digital_Sensor_Read_Cmd7_t; - -/*@}*/ - #if defined (__CC_ARM) #pragma pop