From a0cc1cf228dded58c19e8ff5afb93f6cb89f4b4f Mon Sep 17 00:00:00 2001 From: alan Date: Wed, 4 Sep 2019 14:35:01 +0800 Subject: [PATCH] Elite 1.4-re fix function pointer error (*self) --- .../cc26xx/app/headstage/EliteCCMode.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 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 c038179d6..d2aeccd60 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 @@ -8,8 +8,6 @@ #define CURRENT_LV_ONE 1 #define CURRENT_LV_ZERO 0 -typedef struct _CURRENT_USER_CODE* CURRENT_USER_CODE; - struct _CURRENT_USER_CODE { /** current level range: 0-4 **/ // current level = 0 => 0-499 nA => ADCGainLevel = 200K @@ -25,15 +23,15 @@ struct _CURRENT_USER_CODE { /** transform an IUC to real current in pA **/ // handle current lv 0~2 - int32_t (*Transform2RealpA)(); + int32_t (*Transform2RealpA)(void *self); /** transform an IUC to real current in nA **/ // handle current lv 3~4 - int32_t (*Transform2RealnA)(); + int32_t (*Transform2RealnA)(void *self); /** larger than a given int32 ? **/ - uint8_t (*Compare)(const void*, uint8_t, int32_t); -}; + uint8_t (*Compare)(uint8_t, int32_t); +}CURRENT_USER_CODE; /********************************************************************* * @fn Transform2RealpA