Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: sdp_k1_sdram
app/ad7689_user_config.h@2:007533849deb, 2022-07-21 (annotated)
- Committer:
- Mahesh Phalke
- Date:
- Thu Jul 21 16:45:24 2022 +0530
- Revision:
- 2:007533849deb
Initial firmware commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mahesh Phalke |
2:007533849deb | 1 | /***************************************************************************//* |
Mahesh Phalke |
2:007533849deb | 2 | * @file ad7689_user_config.h |
Mahesh Phalke |
2:007533849deb | 3 | * @brief User configurations for AD7689 No-OS driver |
Mahesh Phalke |
2:007533849deb | 4 | ****************************************************************************** |
Mahesh Phalke |
2:007533849deb | 5 | * Copyright (c) 2021 Analog Devices, Inc. |
Mahesh Phalke |
2:007533849deb | 6 | * All rights reserved. |
Mahesh Phalke |
2:007533849deb | 7 | * |
Mahesh Phalke |
2:007533849deb | 8 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
Mahesh Phalke |
2:007533849deb | 9 | * By using this software you agree to the terms of the associated |
Mahesh Phalke |
2:007533849deb | 10 | * Analog Devices Software License Agreement. |
Mahesh Phalke |
2:007533849deb | 11 | ******************************************************************************/ |
Mahesh Phalke |
2:007533849deb | 12 | |
Mahesh Phalke |
2:007533849deb | 13 | #ifndef _AD7689_USER_CONFIG_H_ |
Mahesh Phalke |
2:007533849deb | 14 | #define _AD7689_USER_CONFIG_H_ |
Mahesh Phalke |
2:007533849deb | 15 | |
Mahesh Phalke |
2:007533849deb | 16 | /******************************************************************************/ |
Mahesh Phalke |
2:007533849deb | 17 | /***************************** Include Files **********************************/ |
Mahesh Phalke |
2:007533849deb | 18 | /******************************************************************************/ |
Mahesh Phalke |
2:007533849deb | 19 | |
Mahesh Phalke |
2:007533849deb | 20 | #include "ad7689.h" |
Mahesh Phalke |
2:007533849deb | 21 | |
Mahesh Phalke |
2:007533849deb | 22 | /******************************************************************************/ |
Mahesh Phalke |
2:007533849deb | 23 | /********************** Macros and Constants Definition ***********************/ |
Mahesh Phalke |
2:007533849deb | 24 | /******************************************************************************/ |
Mahesh Phalke |
2:007533849deb | 25 | |
Mahesh Phalke |
2:007533849deb | 26 | /* Select Input type (one at a time- default is unipolar) */ |
Mahesh Phalke |
2:007533849deb | 27 | #define UNIPOLAR |
Mahesh Phalke |
2:007533849deb | 28 | //#define BIPOLAR |
Mahesh Phalke |
2:007533849deb | 29 | |
Mahesh Phalke |
2:007533849deb | 30 | /* Default ADC channel config (for all channels) |
Mahesh Phalke |
2:007533849deb | 31 | * Note: DO NOT SELECT TYPE AS 'AD7689_TEMPERATURE_SENSOR'. The input type is set to |
Mahesh Phalke |
2:007533849deb | 32 | * to 'temperature' during temperature channel scanning at run-time. |
Mahesh Phalke |
2:007533849deb | 33 | **/ |
Mahesh Phalke |
2:007533849deb | 34 | #if defined(UNIPOLAR) |
Mahesh Phalke |
2:007533849deb | 35 | #define ADC_INPUT_TYPE_CFG AD7689_UNIPOLAR_GND |
Mahesh Phalke |
2:007533849deb | 36 | #else |
Mahesh Phalke |
2:007533849deb | 37 | #define ADC_INPUT_TYPE_CFG AD7689_BIPOLAR_COM |
Mahesh Phalke |
2:007533849deb | 38 | #endif |
Mahesh Phalke |
2:007533849deb | 39 | |
Mahesh Phalke |
2:007533849deb | 40 | /* Default ADC reference voltage configurations (temperature sensor enabled by default) */ |
Mahesh Phalke |
2:007533849deb | 41 | #define ADC_REF_VOLTAGE_CFG AD7689_REF_EXTERNAL_TEMP_IBUF |
Mahesh Phalke |
2:007533849deb | 42 | #define ADC_DEFAULT_REF_VOLTAGE 5.0 |
Mahesh Phalke |
2:007533849deb | 43 | |
Mahesh Phalke |
2:007533849deb | 44 | /******************************************************************************/ |
Mahesh Phalke |
2:007533849deb | 45 | /********************** Public/Extern Declarations ****************************/ |
Mahesh Phalke |
2:007533849deb | 46 | /******************************************************************************/ |
Mahesh Phalke |
2:007533849deb | 47 | |
Mahesh Phalke |
2:007533849deb | 48 | extern struct ad7689_init_param ad7689_init_params; |
Mahesh Phalke |
2:007533849deb | 49 | |
Mahesh Phalke |
2:007533849deb | 50 | #endif /* _AD7689_USER_CONFIG_H_ */ |