Rohan Gurav
/
Sean_AdiSense1000_V21
ADISense1000 Version 2.1 code base
Fork of AdiSense1000_V21 by
inc/adi_sense_config_types.h@33:640b6bebda17, 2018-09-18 (annotated)
- Committer:
- RGurav
- Date:
- Tue Sep 18 16:46:40 2018 +0000
- Revision:
- 33:640b6bebda17
- Parent:
- 28:4eb837cd71df
ADISense1000 Version 2.1 code base
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
danodonovan | 26:12d0204be712 | 1 | /* |
danodonovan | 26:12d0204be712 | 2 | Copyright (c) 2017 Analog Devices, Inc. |
danodonovan | 26:12d0204be712 | 3 | |
danodonovan | 26:12d0204be712 | 4 | All rights reserved. |
danodonovan | 26:12d0204be712 | 5 | |
danodonovan | 26:12d0204be712 | 6 | Redistribution and use in source and binary forms, with or without modification, |
danodonovan | 26:12d0204be712 | 7 | are permitted provided that the following conditions are met: |
danodonovan | 26:12d0204be712 | 8 | - Redistributions of source code must retain the above copyright notice, |
danodonovan | 26:12d0204be712 | 9 | this list of conditions and the following disclaimer. |
danodonovan | 26:12d0204be712 | 10 | - Redistributions in binary form must reproduce the above copyright notice, |
danodonovan | 26:12d0204be712 | 11 | this list of conditions and the following disclaimer in the documentation |
danodonovan | 26:12d0204be712 | 12 | and/or other materials provided with the distribution. |
danodonovan | 26:12d0204be712 | 13 | - Modified versions of the software must be conspicuously marked as such. |
danodonovan | 26:12d0204be712 | 14 | - This software is licensed solely and exclusively for use with processors |
danodonovan | 26:12d0204be712 | 15 | manufactured by or for Analog Devices, Inc. |
danodonovan | 26:12d0204be712 | 16 | - This software may not be combined or merged with other code in any manner |
danodonovan | 26:12d0204be712 | 17 | that would cause the software to become subject to terms and conditions |
danodonovan | 26:12d0204be712 | 18 | which differ from those listed here. |
danodonovan | 26:12d0204be712 | 19 | - Neither the name of Analog Devices, Inc. nor the names of its |
danodonovan | 26:12d0204be712 | 20 | contributors may be used to endorse or promote products derived |
danodonovan | 26:12d0204be712 | 21 | from this software without specific prior written permission. |
danodonovan | 26:12d0204be712 | 22 | - The use of this software may or may not infringe the patent rights of one |
danodonovan | 26:12d0204be712 | 23 | or more patent holders. This license does not release you from the |
danodonovan | 26:12d0204be712 | 24 | requirement that you obtain separate licenses from these patent holders |
danodonovan | 26:12d0204be712 | 25 | to use this software. |
danodonovan | 26:12d0204be712 | 26 | |
danodonovan | 26:12d0204be712 | 27 | THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS" AND ANY |
danodonovan | 26:12d0204be712 | 28 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, |
danodonovan | 26:12d0204be712 | 29 | TITLE, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN |
danodonovan | 26:12d0204be712 | 30 | NO EVENT SHALL ANALOG DEVICES, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
danodonovan | 26:12d0204be712 | 31 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES |
danodonovan | 26:12d0204be712 | 32 | (INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF CLAIMS OF INTELLECTUAL |
danodonovan | 26:12d0204be712 | 33 | PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
danodonovan | 26:12d0204be712 | 34 | OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
danodonovan | 26:12d0204be712 | 35 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
danodonovan | 26:12d0204be712 | 36 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
danodonovan | 26:12d0204be712 | 37 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
danodonovan | 26:12d0204be712 | 38 | */ |
danodonovan | 26:12d0204be712 | 39 | |
kevin1990 | 28:4eb837cd71df | 40 | /*! |
kevin1990 | 28:4eb837cd71df | 41 | ****************************************************************************** |
kevin1990 | 28:4eb837cd71df | 42 | * @file: adi_sense_config_types.h |
kevin1990 | 28:4eb837cd71df | 43 | * @brief: Type definitions for ADISENSE API. |
kevin1990 | 28:4eb837cd71df | 44 | *----------------------------------------------------------------------------- |
kevin1990 | 28:4eb837cd71df | 45 | */ |
kevin1990 | 28:4eb837cd71df | 46 | |
danodonovan | 26:12d0204be712 | 47 | #ifndef __ADI_SENSE_CONFIG_TYPES_H__ |
danodonovan | 26:12d0204be712 | 48 | #define __ADI_SENSE_CONFIG_TYPES_H__ |
danodonovan | 26:12d0204be712 | 49 | |
danodonovan | 26:12d0204be712 | 50 | #include "adi_sense_platform.h" |
danodonovan | 26:12d0204be712 | 51 | #include "adi_sense_1000/adi_sense_1000_config.h" |
danodonovan | 26:12d0204be712 | 52 | |
danodonovan | 26:12d0204be712 | 53 | /*! @addtogroup ADISENSE_Api ADISENSE Host Library API |
danodonovan | 26:12d0204be712 | 54 | * @{ |
danodonovan | 26:12d0204be712 | 55 | */ |
danodonovan | 26:12d0204be712 | 56 | |
danodonovan | 26:12d0204be712 | 57 | #ifdef __cplusplus |
danodonovan | 26:12d0204be712 | 58 | extern "C" { |
danodonovan | 26:12d0204be712 | 59 | #endif |
danodonovan | 26:12d0204be712 | 60 | |
danodonovan | 26:12d0204be712 | 61 | /*! A list of supported product identifiers */ |
danodonovan | 26:12d0204be712 | 62 | typedef enum { |
danodonovan | 26:12d0204be712 | 63 | ADI_SENSE_PRODUCT_ID_ADSNS1000 = 0x0020, |
danodonovan | 26:12d0204be712 | 64 | /*!< ADSNS1000 */ |
danodonovan | 26:12d0204be712 | 65 | } ADI_SENSE_PRODUCT_ID; |
danodonovan | 26:12d0204be712 | 66 | |
danodonovan | 26:12d0204be712 | 67 | /*! ADISENSE Configuration schema version */ |
danodonovan | 26:12d0204be712 | 68 | typedef struct { |
danodonovan | 26:12d0204be712 | 69 | uint8_t major; /*!< Major version number */ |
danodonovan | 26:12d0204be712 | 70 | uint8_t minor; /*!< Minor version number */ |
danodonovan | 26:12d0204be712 | 71 | } ADI_SENSE_CONFIG_VERSION_ID; |
danodonovan | 26:12d0204be712 | 72 | |
danodonovan | 26:12d0204be712 | 73 | /*! ADISENSE UUID string length */ |
danodonovan | 26:12d0204be712 | 74 | #define ADI_SENSE_UUID_LEN 36 |
danodonovan | 26:12d0204be712 | 75 | |
danodonovan | 26:12d0204be712 | 76 | /*! ADISENSE global configuration details */ |
danodonovan | 26:12d0204be712 | 77 | typedef struct { |
danodonovan | 26:12d0204be712 | 78 | const char configUuid[ADI_SENSE_UUID_LEN]; |
danodonovan | 26:12d0204be712 | 79 | /*!< Optional unique identifier for this configuration */ |
danodonovan | 26:12d0204be712 | 80 | ADI_SENSE_CONFIG_VERSION_ID versionId; |
danodonovan | 26:12d0204be712 | 81 | /*!< Identifies the schema version for this configuration */ |
danodonovan | 26:12d0204be712 | 82 | ADI_SENSE_PRODUCT_ID productId; |
danodonovan | 26:12d0204be712 | 83 | /*!< Identify the product type for which this configuration is valid */ |
danodonovan | 26:12d0204be712 | 84 | union |
danodonovan | 26:12d0204be712 | 85 | { |
danodonovan | 26:12d0204be712 | 86 | ADI_SENSE_1000_CONFIG adisense1000; |
danodonovan | 26:12d0204be712 | 87 | /*!< ADSNS1000 product configuration parameters. Used if productId |
danodonovan | 26:12d0204be712 | 88 | * selected is ADI_SENSE_PRODUCT_ID_ADSNS1000 */ |
danodonovan | 26:12d0204be712 | 89 | }; |
danodonovan | 26:12d0204be712 | 90 | /*!< Product-specific configuration parameters, selected based on productId. |
danodonovan | 26:12d0204be712 | 91 | * @note Other product variants may be added here in the future */ |
danodonovan | 26:12d0204be712 | 92 | } ADI_SENSE_CONFIG; |
danodonovan | 26:12d0204be712 | 93 | |
danodonovan | 26:12d0204be712 | 94 | #ifdef __cplusplus |
danodonovan | 26:12d0204be712 | 95 | } |
danodonovan | 26:12d0204be712 | 96 | #endif |
danodonovan | 26:12d0204be712 | 97 | |
danodonovan | 26:12d0204be712 | 98 | /*! |
danodonovan | 26:12d0204be712 | 99 | * @} |
danodonovan | 26:12d0204be712 | 100 | */ |
danodonovan | 26:12d0204be712 | 101 | |
danodonovan | 26:12d0204be712 | 102 | #endif /* __ADI_SENSE_CONFIG_TYPES_H__ */ |