ADMW1001_Beta_Release
/
EV-PRO-MW1001_initialCommit
initial commit
Diff: sensor1_rtd-3w-pt100_config.c
- Revision:
- 19:09d58952b65d
- Parent:
- 15:b5d57daeb7c0
- Child:
- 23:bb685f35b08b
--- a/sensor1_rtd-3w-pt100_config.c Tue Aug 20 12:19:31 2019 +0000 +++ b/sensor1_rtd-3w-pt100_config.c Mon Sep 09 05:57:43 2019 +0000 @@ -43,39 +43,58 @@ #include "admw_config_types.h" ADMW_CONFIG sensor1_rtd_3w_pt100_config = { - .versionId = { .major = 2, .minor = 0 }, + .versionId = { .major = 2, .minor = 0 }, .productId = ADMW_PRODUCT_ID_ADMW1001, .admw1001 = { - .power = { - .powerMode = ADMW1001_POWER_MODE_ACTIVE, - }, - .measurement = { - .operatingMode = ADMW1001_OPERATING_MODE_SINGLECYCLE, - .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE, - }, - .channels = { - [ADMW1001_CH_ID_ANLG_2_UNIVERSAL] = { - .enableChannel = true, - .disablePublishing = false, - .compensationChannel = ADMW1001_CH_ID_NONE, - .measurementUnit = ADMW1001_MEASUREMENT_UNIT_CELSIUS, - .measurementsPerCycle = 10, - .extraSettlingTime = 0, - .adcChannelConfig = { - .sensor = ADMW1001_ADC_SENSOR_RTD_3WIRE_PT1000, - .gain = ADMW1001_ADC_GAIN_8X, - .current = { - .outputLevel = ADMW1001_ADC_EXC_CURRENT_100uA, - }, - .filter = { - .type = ADMW1001_ADC_FILTER_SINC3, - }, - .reference = { - ADMW1001_ADC_REFERENCE_VOLTAGE_INTERNAL, + .power = { + .powerMode = ADMW1001_POWER_MODE_ACTIVE, + }, + .measurement = { + .operatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS, + .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE, // FIX: Temporarily all values from json are hardcoded to this one in the Contracts.FileGenerator - > file translations!! + .cycleInterval = 0, + .vBiasEnable = false, + }, + .diagnostics = { + .disableGlobalDiag = true, + .disableMeasurementDiag = true, + .osdFrequency = ADMW1001_OPEN_SENSOR_DIAGNOSTICS_DISABLED, + }, + .channels = { + [ADMW1001_CH_ID_ANLG_1_UNIVERSAL] = { + .enableChannel = true, + .disablePublishing = false, + .compensationChannel = ADMW1001_CH_ID_NONE, + .lutSelect = ADMW1001_LUT_DEFAULT, + .measurementUnit = ADMW1001_MEASUREMENT_UNIT_CELSIUS, + .lowThreshold = -50, + .highThreshold = 250, + .offsetAdjustment = 0.0, + .gainAdjustment = 0.0, + .sensorParameter = 0.0, + .measurementsPerCycle = 1, + .cycleSkipCount = 0, + .extraSettlingTime = 4499.99986449257, + .priority = 0, + .adcChannelConfig = { + .sensor = ADMW1001_ADC_SENSOR_RTD_3WIRE_PT100, + .rtdCurve = ADMW1001_ADC_RTD_CURVE_EUROPEAN, + .gain = ADMW1001_ADC_GAIN_1X, + .current = { + .excitationState= ADMW1001_ADC_EXC_STATE_ALWAYS_ON, + .outputLevel = ADMW1001_ADC_EXC_CURRENT_250uA, + .diodeRatio = 0, + }, + .filter = { + .type = ADMW1001_ADC_FILTER_SINC3, + .sf = ADMW1001_SF_8P24HZ, + .chopMode = ADMW1001_CHOP_MD_SW, + .notch1p2 = false, + .groundSwitch = ADMW1001_ADC_GND_SW_OPEN + }, + .reference = ADMW1001_ADC_REFERENCE_VOLTAGE_INTERNAL, }, }, }, - }, }, }; -