Vybhav Kadaba
/
EV-PRO-MW1001_dec12
MWARE-1930 fixed
Diff: src/admw_1001.c
- Revision:
- 18:cbf514cce921
- Parent:
- 17:2f0028880874
- Child:
- 23:bb685f35b08b
--- a/src/admw_1001.c Wed Aug 07 06:46:25 2019 +0000 +++ b/src/admw_1001.c Tue Aug 20 12:19:31 2019 +0000 @@ -1573,10 +1573,11 @@ channelExcitationReg.VALUE16 = REG_RESET_VAL(CORE_CHANNEL_EXCITATIONn); - - if (pCurrentConfig->outputLevel == ADMW1001_ADC_EXC_CURRENT_EXTERNAL) + if (pCurrentConfig->outputLevel == ADMW1001_ADC_NO_EXTERNAL_EXC_CURRENT) + channelExcitationReg.IOUT_Excitation_Current = CORE_CHANNEL_EXCITATION_NONE; + else if (pCurrentConfig->outputLevel == ADMW1001_ADC_EXC_CURRENT_EXTERNAL) channelExcitationReg.IOUT_Excitation_Current = CORE_CHANNEL_EXCITATION_EXTERNAL; - if (pCurrentConfig->outputLevel == ADMW1001_ADC_EXC_CURRENT_50uA) + else if (pCurrentConfig->outputLevel == ADMW1001_ADC_EXC_CURRENT_50uA) channelExcitationReg.IOUT_Excitation_Current = CORE_CHANNEL_EXCITATION_IEXC_50UA; else if (pCurrentConfig->outputLevel == ADMW1001_ADC_EXC_CURRENT_100uA) channelExcitationReg.IOUT_Excitation_Current = CORE_CHANNEL_EXCITATION_IEXC_100UA; @@ -1593,6 +1594,7 @@ return ADMW_INVALID_PARAM; } + switch(pCurrentConfig->diodeRatio) { case ADMW1001_ADC_EXC_CURRENT_IOUT_DIODE_10UA_100UA: