Rohan Gurav
/
Sean_AdiSense1000_V21
ADISense1000 Version 2.1 code base
Fork of AdiSense1000_V21 by
sensor2_bridge-6w-pressure_config.c@33:640b6bebda17, 2018-09-18 (annotated)
- Committer:
- RGurav
- Date:
- Tue Sep 18 16:46:40 2018 +0000
- Revision:
- 33:640b6bebda17
ADISense1000 Version 2.1 code base
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RGurav | 33:640b6bebda17 | 1 | |
RGurav | 33:640b6bebda17 | 2 | /*! |
RGurav | 33:640b6bebda17 | 3 | ****************************************************************************** |
RGurav | 33:640b6bebda17 | 4 | * @file: sensor2_bridge_6w_pressure_config |
RGurav | 33:640b6bebda17 | 5 | * @brief: Initilize the sensor configuration |
RGurav | 33:640b6bebda17 | 6 | *----------------------------------------------------------------------------- |
RGurav | 33:640b6bebda17 | 7 | */ |
RGurav | 33:640b6bebda17 | 8 | #include "adi_sense_config_types.h" |
RGurav | 33:640b6bebda17 | 9 | |
RGurav | 33:640b6bebda17 | 10 | ADI_SENSE_CONFIG sensor2_bridge_6w_pressure_config = |
RGurav | 33:640b6bebda17 | 11 | { |
RGurav | 33:640b6bebda17 | 12 | .versionId = { .major = 1, .minor = 4 }, |
RGurav | 33:640b6bebda17 | 13 | .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000, |
RGurav | 33:640b6bebda17 | 14 | .adisense1000 = |
RGurav | 33:640b6bebda17 | 15 | { |
RGurav | 33:640b6bebda17 | 16 | .power = |
RGurav | 33:640b6bebda17 | 17 | { |
RGurav | 33:640b6bebda17 | 18 | .powerMode = ADI_SENSE_1000_POWER_MODE_FULL, |
RGurav | 33:640b6bebda17 | 19 | }, |
RGurav | 33:640b6bebda17 | 20 | .measurement = |
RGurav | 33:640b6bebda17 | 21 | { |
RGurav | 33:640b6bebda17 | 22 | .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS, |
RGurav | 33:640b6bebda17 | 23 | .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE, |
RGurav | 33:640b6bebda17 | 24 | }, |
RGurav | 33:640b6bebda17 | 25 | |
RGurav | 33:640b6bebda17 | 26 | /* |
RGurav | 33:640b6bebda17 | 27 | Define the channels and operating mode |
RGurav | 33:640b6bebda17 | 28 | */ |
RGurav | 33:640b6bebda17 | 29 | .channels = |
RGurav | 33:640b6bebda17 | 30 | { |
RGurav | 33:640b6bebda17 | 31 | [ADI_SENSE_1000_CHANNEL_ID_SENSOR_3] = |
RGurav | 33:640b6bebda17 | 32 | { |
RGurav | 33:640b6bebda17 | 33 | .enableChannel = true, |
RGurav | 33:640b6bebda17 | 34 | .disablePublishing = false, |
RGurav | 33:640b6bebda17 | 35 | .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE, |
RGurav | 33:640b6bebda17 | 36 | .measurementsPerCycle = 1, |
RGurav | 33:640b6bebda17 | 37 | .extraSettlingTime = 20000, |
RGurav | 33:640b6bebda17 | 38 | .adcChannelConfig = |
RGurav | 33:640b6bebda17 | 39 | { |
RGurav | 33:640b6bebda17 | 40 | .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_1_DEF_L2, |
RGurav | 33:640b6bebda17 | 41 | .gain = ADI_SENSE_1000_ADC_GAIN_1X, |
RGurav | 33:640b6bebda17 | 42 | .filter = |
RGurav | 33:640b6bebda17 | 43 | { |
RGurav | 33:640b6bebda17 | 44 | .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS, |
RGurav | 33:640b6bebda17 | 45 | }, |
RGurav | 33:640b6bebda17 | 46 | .reference = |
RGurav | 33:640b6bebda17 | 47 | { |
RGurav | 33:640b6bebda17 | 48 | .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION, |
RGurav | 33:640b6bebda17 | 49 | .disableBuffer = false, |
RGurav | 33:640b6bebda17 | 50 | }, |
RGurav | 33:640b6bebda17 | 51 | .enableVbias = false, |
RGurav | 33:640b6bebda17 | 52 | }, |
RGurav | 33:640b6bebda17 | 53 | }, |
RGurav | 33:640b6bebda17 | 54 | |
RGurav | 33:640b6bebda17 | 55 | [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2] = |
RGurav | 33:640b6bebda17 | 56 | { |
RGurav | 33:640b6bebda17 | 57 | .enableChannel = true, |
RGurav | 33:640b6bebda17 | 58 | .disablePublishing = false, |
RGurav | 33:640b6bebda17 | 59 | .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE, |
RGurav | 33:640b6bebda17 | 60 | .measurementsPerCycle = 1, |
RGurav | 33:640b6bebda17 | 61 | .extraSettlingTime = 20000, |
RGurav | 33:640b6bebda17 | 62 | .adcChannelConfig = |
RGurav | 33:640b6bebda17 | 63 | { |
RGurav | 33:640b6bebda17 | 64 | .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_2_DEF_L2, |
RGurav | 33:640b6bebda17 | 65 | .gain = ADI_SENSE_1000_ADC_GAIN_1X, |
RGurav | 33:640b6bebda17 | 66 | .filter = |
RGurav | 33:640b6bebda17 | 67 | { |
RGurav | 33:640b6bebda17 | 68 | .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS, |
RGurav | 33:640b6bebda17 | 69 | }, |
RGurav | 33:640b6bebda17 | 70 | .reference = |
RGurav | 33:640b6bebda17 | 71 | { |
RGurav | 33:640b6bebda17 | 72 | .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION, |
RGurav | 33:640b6bebda17 | 73 | .disableBuffer = false, |
RGurav | 33:640b6bebda17 | 74 | }, |
RGurav | 33:640b6bebda17 | 75 | .enableVbias = false, |
RGurav | 33:640b6bebda17 | 76 | }, |
RGurav | 33:640b6bebda17 | 77 | }, |
RGurav | 33:640b6bebda17 | 78 | |
RGurav | 33:640b6bebda17 | 79 | [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] = |
RGurav | 33:640b6bebda17 | 80 | { |
RGurav | 33:640b6bebda17 | 81 | .enableChannel = true, |
RGurav | 33:640b6bebda17 | 82 | .disablePublishing = false, |
RGurav | 33:640b6bebda17 | 83 | .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE, |
RGurav | 33:640b6bebda17 | 84 | .measurementsPerCycle = 1, |
RGurav | 33:640b6bebda17 | 85 | .extraSettlingTime = 20000, |
RGurav | 33:640b6bebda17 | 86 | .adcChannelConfig = |
RGurav | 33:640b6bebda17 | 87 | { |
RGurav | 33:640b6bebda17 | 88 | .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_3_DEF_L2, |
RGurav | 33:640b6bebda17 | 89 | .gain = ADI_SENSE_1000_ADC_GAIN_1X, |
RGurav | 33:640b6bebda17 | 90 | .filter = |
RGurav | 33:640b6bebda17 | 91 | { |
RGurav | 33:640b6bebda17 | 92 | .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS, |
RGurav | 33:640b6bebda17 | 93 | }, |
RGurav | 33:640b6bebda17 | 94 | .reference = |
RGurav | 33:640b6bebda17 | 95 | { |
RGurav | 33:640b6bebda17 | 96 | .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION, |
RGurav | 33:640b6bebda17 | 97 | .disableBuffer = false, |
RGurav | 33:640b6bebda17 | 98 | }, |
RGurav | 33:640b6bebda17 | 99 | .enableVbias = false, |
RGurav | 33:640b6bebda17 | 100 | }, |
RGurav | 33:640b6bebda17 | 101 | }, |
RGurav | 33:640b6bebda17 | 102 | |
RGurav | 33:640b6bebda17 | 103 | [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] = |
RGurav | 33:640b6bebda17 | 104 | { |
RGurav | 33:640b6bebda17 | 105 | .enableChannel = true, |
RGurav | 33:640b6bebda17 | 106 | .disablePublishing = false, |
RGurav | 33:640b6bebda17 | 107 | .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE, |
RGurav | 33:640b6bebda17 | 108 | .measurementsPerCycle = 1, |
RGurav | 33:640b6bebda17 | 109 | .extraSettlingTime = 20000, |
RGurav | 33:640b6bebda17 | 110 | .adcChannelConfig = |
RGurav | 33:640b6bebda17 | 111 | { |
RGurav | 33:640b6bebda17 | 112 | .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_4_DEF_L2, |
RGurav | 33:640b6bebda17 | 113 | .gain = ADI_SENSE_1000_ADC_GAIN_1X, |
RGurav | 33:640b6bebda17 | 114 | .filter = |
RGurav | 33:640b6bebda17 | 115 | { |
RGurav | 33:640b6bebda17 | 116 | .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS, |
RGurav | 33:640b6bebda17 | 117 | }, |
RGurav | 33:640b6bebda17 | 118 | .reference = |
RGurav | 33:640b6bebda17 | 119 | { |
RGurav | 33:640b6bebda17 | 120 | .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION, |
RGurav | 33:640b6bebda17 | 121 | .disableBuffer = false, |
RGurav | 33:640b6bebda17 | 122 | }, |
RGurav | 33:640b6bebda17 | 123 | .enableVbias = false, |
RGurav | 33:640b6bebda17 | 124 | }, |
RGurav | 33:640b6bebda17 | 125 | }, |
RGurav | 33:640b6bebda17 | 126 | |
RGurav | 33:640b6bebda17 | 127 | }, |
RGurav | 33:640b6bebda17 | 128 | }, |
RGurav | 33:640b6bebda17 | 129 | }; |
RGurav | 33:640b6bebda17 | 130 |