(Working) Code to interface 3 LoadCells to ADISense1000 and display values using the Labview code.

Fork of 4Bridge_ADISense1000_Example_copy by CAC_smartcushion

Committer:
seanwilson10
Date:
Thu Jan 25 16:00:23 2018 +0000
Revision:
0:76fed7dd9235
initial;

Who changed what in which revision?

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