From eb9609da00d7510de61467dc5a012b469bd75910 Mon Sep 17 00:00:00 2001 From: weiting2 Date: Wed, 27 Nov 2019 17:20:35 +0800 Subject: [PATCH] [CC] use INS.VoltLimit store CC mode limit volt --- .../simple_peripheral/cc26xx/app/headstage/EliteCCMode.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/EliteCCMode.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/EliteCCMode.h index 2404ad4e8..7a578321e 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/EliteCCMode.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/EliteCCMode.h @@ -60,8 +60,6 @@ static int32_t CCModeVoltOut(CCMode *CC){ // DAC should not work now return 0; } - - IUCCurrent = CC->_Transform2RealnA( (struct CCModePara *) CC); CCModeDACControl(CC, IUCCurrent - CC->_MeasureData); @@ -97,13 +95,6 @@ static void CCModeDACControl(CCMode *CC, int32_t IUC_Measure_Difference){ INSTRUCTION.VoltConstant = INSTRUCTION.VoltConstant + step; } DAC_outputV(Usercode_Correction_to_DAC(INSTRUCTION.VoltConstant)); - - step = CC->IUC_Measure_Difference; - NotifyImpedance[0] = (uint8_t) (step >> 24); - NotifyImpedance[1] = (uint8_t) ((step & 0x00FF0000) >> 16); - NotifyImpedance[2] = (uint8_t) ((step & 0x0000FF00) >> 8); - NotifyImpedance[3] = (uint8_t) (step & 0x000000FF); - } /* Transform setting CC into IUC