Analog Devices / ADMX2001
Revision:
9:f286301109fb
Parent:
3:81d1980d45aa
Child:
10:49537b1dbbd7
--- a/ADMX2001_commands.h	Wed Oct 27 07:36:03 2021 +0000
+++ b/ADMX2001_commands.h	Wed Oct 27 21:17:37 2021 +0000
@@ -1,10 +1,41 @@
-/******************************************************************************
- Copyright (c) 2021  Analog Devices Inc. All Rights Reserved.
- This software is proprietary & confidential to Analog Devices, Inc.
- and its licensors.
-******************************************************************************/
+/* Copyright (c) 2021 Analog Devices, Inc.  All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+  - Redistributions of source code must retain the above copyright notice, 
+  this list of conditions and the following disclaimer.
+  - Redistributions in binary form must reproduce the above copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.  
+  - Modified versions of the software must be conspicuously marked as such.
+  - This software is licensed solely and exclusively for use with processors/products 
+  manufactured by or for Analog Devices, Inc.
+  - This software may not be combined or merged with other code in any manner 
+  that would cause the software to become subject to terms and conditions which 
+  differ from those listed here.
+  - Neither the name of Analog Devices, Inc. nor the names of its contributors 
+  may be used to endorse or promote products derived from this software without 
+  specific prior written permission.
+  - The use of this software may or may not infringe the patent rights of one or 
+  more patent holders.  This license does not release you from the requirement 
+  that you obtain separate licenses from these patent holders to use this software.
+
+THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS" AND 
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, 
+TITLE, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 
+NO EVENT SHALL ANALOG DEVICES, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES 
+(INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF CLAIMS OF INTELLECTUAL 
+PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 
+OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+2021-01-10-7CBSD SLA
+*/
 /**
- * @file     admx200x_commands.h
+ * @file     ADMX2001_commands.h
  * @brief    This file contains Macros for the SPI Commands
  * @{
  */
@@ -33,8 +64,6 @@
 #define CMD_COMPENSATION 0x5
 /** Command to read calibration coefficient*/
 #define CMD_CAL_READ 0x06
-/** Command to copy calibration coefficient*/
-#define CMD_COPY_CAL 0x07
 /** Command to store calibration coefficient*/
 #define CMD_STORE_CAL 0x08
 /** Command to store calibration coefficient*/
@@ -114,10 +143,6 @@
 #define CMD_SWEEP_SCALE (CMD_ATTR_BASE + 19)
 /** lcr cycles   */
 #define CMD_CYCLES (CMD_ATTR_BASE + 20)
-/** lcr adccount  */
-#define CMD_ADC_COUNT (CMD_ATTR_BASE + 24)
-/** lcr adcperiod  */
-#define CMD_ADC_PERIOD (CMD_ATTR_BASE + 25)
 /** lcr celsius  */
 #define CMD_CELSIUS (CMD_ATTR_BASE + 27)
 /** lcr radians  */
@@ -149,8 +174,6 @@
 /** Actual measurement count value  */
 #define CMD_ACTUAL_COUNT (CMD_ATTR_BASE + 47)
 /** Check if vector display mode is enabled */
-#define CMD_VECTOR_DISPLAY_MODE (CMD_ATTR_BASE + 48)
-/** Check if vector display mode is enabled */
 #define CMD_SELF_TEST_STATUS (CMD_ATTR_BASE + 49)
 /** Unique ID -  addr0 - lower 32 , addr 1 upper 32*/
 #define CMD_UNIQUE_ID (CMD_ATTR_BASE + 50)
@@ -228,46 +251,6 @@
 /** Sweep count maximum value exceeded */
 #define ADMX_STATUS_COUNT_EXCEEDED 1024
 
-/** Command for Voltage Gain */
-#define CMD_CAL_COEF_VOLTAGE_GAIN 0
-/** Command for Current Gain */
-#define CMD_CAL_COEF_CURRENT_GAIN 1
-/** Command for Temperature */
-#define CMD_CAL_COEF_TEMPEATURE 2
-/** Command for Freq */
-#define CMD_CAL_COEF_FREQUENCY 3
-/** Command for RO */
-#define CMD_CAL_COEF_RO 4
-/** Command for XO */
-#define CMD_CAL_COEF_XO 5
-/** Command for GO */
-#define CMD_CAL_COEF_GO 6
-/** Command for BO */
-#define CMD_CAL_COEF_BO 7
-/** Command for RS */
-#define CMD_CAL_COEF_RS 8
-/** Command for XS */
-#define CMD_CAL_COEF_XS 9
-/** Command for RG */
-#define CMD_CAL_COEF_RG 10
-/** Command for XG */
-#define CMD_CAL_COEF_XG 11
-/** Command for GG */
-#define CMD_CAL_COEF_GG 12
-/** Command for BG */
-#define CMD_CAL_COEF_BG 13
-/** Command for RDG */
-#define CMD_CAL_COEF_RDG 14
-/** Command for RDO */
-#define CMD_CAL_COEF_RDO 15
-
-/* States for ADMX2001*/
-
-/** Define for Ideal state */
-#define ADMX_STATE_IDLE 0
-/** Define for wait for trigger state */
-#define ADMX_STATE_WAIT_FOR_TRIGGER 1
-
 #endif /* __ADMX200X_COMMANDS_H__ */
 
 /**