diff options
| author | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
|---|---|---|
| committer | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
| commit | d6d9a09d505d11148599a95a5be3e1351edbe0ac (patch) | |
| tree | a5f5891983d1ff207e99f683a5e151519cef4980 /libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPMacroFile.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPMacroFile.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPMacroFile.h | 247 |
1 files changed, 247 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPMacroFile.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPMacroFile.h new file mode 100644 index 0000000..aea3dcd --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPMacroFile.h | |||
| @@ -0,0 +1,247 @@ | |||
| 1 | // | ||
| 2 | // BPMacroFile.h | ||
| 3 | // BP_SDKDemo | ||
| 4 | // | ||
| 5 | // Created by zhiwei jing on 14-2-25. | ||
| 6 | // Copyright (c) 2014年 zhiwei jing. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | |||
| 10 | |||
| 11 | #ifndef BP_SDKDemo_BPMacroFile_h | ||
| 12 | #define BP_SDKDemo_BPMacroFile_h | ||
| 13 | |||
| 14 | #import "HealthUser.h" | ||
| 15 | #import "BPController.h" | ||
| 16 | |||
| 17 | /** | ||
| 18 | BP error code | ||
| 19 | */ | ||
| 20 | typedef NS_ENUM(NSUInteger, BPDeviceError) { | ||
| 21 | /// Unable to take measurements due to arm/wrist movements. | ||
| 22 | BPError0 = 0, | ||
| 23 | /// Failed to detect systolic pressure | ||
| 24 | BPError1, | ||
| 25 | /// Failed to detect diastolic pressure | ||
| 26 | BPError2, | ||
| 27 | /// Pneumatic system blocked or cuff is too tight during inflation | ||
| 28 | BPError3, | ||
| 29 | /// Pneumatic system leakage or cuff is too loose during inflation | ||
| 30 | BPError4, | ||
| 31 | /// Cuff pressure reached over 300mmHg | ||
| 32 | BPError5, | ||
| 33 | /// Cuff pressure reached over 15 mmHg for more than 160 seconds | ||
| 34 | BPError6, | ||
| 35 | /// Data retrieving error | ||
| 36 | BPError7, | ||
| 37 | /// Data retrieving error | ||
| 38 | BPError8, | ||
| 39 | /// Data retrieving error | ||
| 40 | BPError9, | ||
| 41 | /// Data retrieving error | ||
| 42 | BPError10, | ||
| 43 | /// Communication Error | ||
| 44 | BPError11, | ||
| 45 | /// Communication Error | ||
| 46 | BPError12, | ||
| 47 | /// Low battery | ||
| 48 | BPError13, | ||
| 49 | /// Device bluetooth set failed | ||
| 50 | BPError14, | ||
| 51 | /// Systolic exceeds 260mmHg or diastolic exceeds 199mmHg | ||
| 52 | BPError15, | ||
| 53 | /// Systolic below 60mmHg or diastolic below 40mmHg | ||
| 54 | BPError16, | ||
| 55 | /// Arm/wrist movement beyond range | ||
| 56 | BPError17, | ||
| 57 | /// Heart rate in measure result exceeds max limit | ||
| 58 | BPError18, | ||
| 59 | /// Heart rate in measure result exceeds min limit | ||
| 60 | BPError19, | ||
| 61 | /// PP(Average BP) exceeds limit | ||
| 62 | BPError20, | ||
| 63 | /// User stop measure(for ABPM history measurement only) | ||
| 64 | BPErrorUserStopMeasure, | ||
| 65 | /// device error, error message displayed automatically | ||
| 66 | BPNormalError = 30, | ||
| 67 | /// Abnormal communication | ||
| 68 | BPOverTimeError, | ||
| 69 | /// Abnormal communication | ||
| 70 | BPNoRespondError, | ||
| 71 | /// device is out of communication range. | ||
| 72 | BPBeyondRangeError, | ||
| 73 | /// device is disconnected. | ||
| 74 | BPDidDisconnect, | ||
| 75 | /// measurement has been stopped. | ||
| 76 | BPAskToStopMeasure, | ||
| 77 | /// 36 device is busy doing other things | ||
| 78 | BPDeviceBusy, | ||
| 79 | /// Parameter input error. | ||
| 80 | BPInputParameterError = 400, | ||
| 81 | /// Parameter input error. | ||
| 82 | BPInvalidOperation = 402, | ||
| 83 | }; | ||
| 84 | |||
| 85 | |||
| 86 | typedef void(^BlockEnergyDetailValue)(NSNumber *energyValue,NSNumber *mVolt, NSNumber* measureTimesLeft); | ||
| 87 | typedef void(^BlockEnergyValue)(NSNumber *energyValue); | ||
| 88 | typedef void(^BlockEnergyState)(NSNumber *energyState); | ||
| 89 | typedef void(^BlockError)(BPDeviceError error); | ||
| 90 | typedef void(^BlockDeviceFunction)(NSDictionary *functionDict); | ||
| 91 | typedef void(^BlockBlueSet)(BOOL isOpen); | ||
| 92 | typedef void(^BlockAngle)(NSDictionary *angleDict); | ||
| 93 | typedef void(^BlockPressure)(NSArray *pressureArr); | ||
| 94 | typedef void(^BlockWavelet)(NSArray *waveletArr); | ||
| 95 | typedef void(^BlockZero)(BOOL isComplete); | ||
| 96 | typedef void(^BlockMeasureResult)(NSDictionary *resultDict); | ||
| 97 | |||
| 98 | typedef void(^BlockBachCount)(NSNumber *count); | ||
| 99 | typedef void(^BlockBachProgress)(NSNumber *progressValue); | ||
| 100 | typedef void(^BlockBachArray)(NSArray *bachArray); | ||
| 101 | typedef void(^BlockBachFinished)(BOOL finishFlag); | ||
| 102 | |||
| 103 | typedef void(^BlockAskMeasureTime)(NSDictionary *measureTimeDict);//Deprecated | ||
| 104 | typedef void(^BlockSetMeasureTime)(NSDictionary *setResult);//Deprecated | ||
| 105 | |||
| 106 | typedef void(^BlockSuccess)(void); | ||
| 107 | |||
| 108 | typedef void(^BlockUserAuthentication)(UserAuthenResult result);//the result of userID verification | ||
| 109 | typedef void(^BlockSetUserID)(BOOL finishFlag); | ||
| 110 | |||
| 111 | typedef void(^BlockResult)(BOOL result); | ||
| 112 | |||
| 113 | typedef void(^BlockRedWaveDic)(NSDictionary *redWaveDict); | ||
| 114 | |||
| 115 | typedef void(^BlockMeasureStatus)(NSDictionary *statusDict); | ||
| 116 | |||
| 117 | typedef void(^BlockDisplayStatus)(NSDictionary *statusDict); | ||
| 118 | |||
| 119 | |||
| 120 | #define BP3ConnectNoti @"BP3ConnectNoti" | ||
| 121 | #define BP3DisConnectNoti @"BP3DisConnectNoti" | ||
| 122 | #define BP5ConnectNoti @"BP5ConnectNoti" | ||
| 123 | #define BP5DisConnectNoti @"BP5DisConnectNoti" | ||
| 124 | #define BP7ConnectNoti @"BP7ConnectNoti" | ||
| 125 | #define BP7DisConnectNoti @"BP7DisConnectNoti" | ||
| 126 | |||
| 127 | #define BP3LDiscover @"BP3LDiscover" | ||
| 128 | #define BP3LConnectFailed @"BP3LConnectFailed" | ||
| 129 | #define BP3LConnectNoti @"BP3LConnectNoti" | ||
| 130 | #define BP3LDisConnectNoti @"BP3LDisConnectNoti" | ||
| 131 | |||
| 132 | #define BP5SDiscover @"BP5SDiscover" | ||
| 133 | #define BP5SConnectFailed @"BP5SConnectFailed" | ||
| 134 | #define BP5SConnectNoti @"BP5SConnectNoti" | ||
| 135 | #define BP5SDisConnectNoti @"BP5SDisConnectNoti" | ||
| 136 | |||
| 137 | #define BP5SRWDiscover @"BP5SRWDiscover" | ||
| 138 | #define BP5SRWConnectFailed @"BP5SRWConnectFailed" | ||
| 139 | #define BP5SRWConnectNoti @"BP5SRWConnectNoti" | ||
| 140 | #define BP5SRWDisConnectNoti @"BP5SRWDisConnectNoti" | ||
| 141 | |||
| 142 | #define BP7SDiscover @"BP7SDiscover" | ||
| 143 | #define BP7SConnectFailed @"BP7SConnectFailed" | ||
| 144 | #define BP7SConnectNoti @"BP7SConnectNoti" | ||
| 145 | #define BP7SDisConnectNoti @"BP7SDisConnectNoti" | ||
| 146 | |||
| 147 | #define KN550BTDiscover @"KN550BTDiscover" | ||
| 148 | #define KN550BTConnectFailed @"KN550BTConnectFailed" | ||
| 149 | #define KN550BTConnectNoti @"KN550BTConnectNoti" | ||
| 150 | #define KN550BTDisConnectNoti @"KN550BTDisConnectNoti" | ||
| 151 | |||
| 152 | #define KD926Discover @"KD926Discover" | ||
| 153 | #define KD926ConnectFailed @"KD926ConnectFailed" | ||
| 154 | #define KD926ConnectNoti @"KD926ConnectNoti" | ||
| 155 | #define KD926DisConnectNoti @"KD926DisConnectNoti" | ||
| 156 | |||
| 157 | #define KD723Discover @"KD723Discover" | ||
| 158 | #define KD723ConnectFailed @"KD723ConnectFailed" | ||
| 159 | #define KD723ConnectNoti @"KD723ConnectNoti" | ||
| 160 | #define KD723DisConnectNoti @"KD723DisConnectNoti" | ||
| 161 | |||
| 162 | #define ABPMDiscover @"ABPMDiscover" | ||
| 163 | #define ABPMConnectFailed @"ABPMConnectFailed" | ||
| 164 | #define ABPMConnectNoti @"ABPMConnectNoti" | ||
| 165 | #define ABPMDisConnectNoti @"ABPMDisConnectNoti" | ||
| 166 | |||
| 167 | #define BP5CDiscover @"BP5CDiscover" | ||
| 168 | #define BP5CConnectFailed @"BP5CConnectFailed" | ||
| 169 | #define BP5CConnectNoti @"BP5CConnectNoti" | ||
| 170 | #define BP5CDisConnectNoti @"BP5CDisConnectNoti" | ||
| 171 | |||
| 172 | #define ContinuaBPDiscover @"ContinuaBPDiscover" | ||
| 173 | #define ContinuaBPConnectFailed @"ContinuaBPConnectFailed" | ||
| 174 | #define ContinuaBPConnectNoti @"ContinuaBPConnectNoti" | ||
| 175 | #define ContinuaBPDisConnectNoti @"ContinuaBPDisConnectNoti" | ||
| 176 | |||
| 177 | #define ABIConnectNoti @"ABIConnectNoti" | ||
| 178 | #define ABIDisConnectNoti @"ABIDisConnectNoti" | ||
| 179 | #define ArmKey @"ABI-ARM" | ||
| 180 | #define LegKey @"ABI-Leg" | ||
| 181 | #define ArmConnectNoti @"ArmConnectNoti" | ||
| 182 | #define ArmDisConnectNoti @"ArmDisConnectNoti" | ||
| 183 | |||
| 184 | //#define BPDeviceID @"ID" | ||
| 185 | //#define BPSDKRightApi @"OpenApiBP" | ||
| 186 | |||
| 187 | //result | ||
| 188 | #define kResultBPSYS @"sys" | ||
| 189 | #define kResultBPDIA @"dia" | ||
| 190 | #define kResultBPPulse @"heartRate" | ||
| 191 | #define kResultBPIHB @"irregular" | ||
| 192 | #define kResultBPHSD @"hsdValue" | ||
| 193 | #define kResultBPChooseHand @"chooseHand" | ||
| 194 | #define kResultBPBodyMove @"bodyMovement" | ||
| 195 | #define kResultBPStartAngle @"startAngle" | ||
| 196 | #define kResultBPAngleChange @"measureAngleChange" | ||
| 197 | #define kResultBPDataID @"dataID" | ||
| 198 | #define kResultBPMeasureDate @"time" | ||
| 199 | #define kResultBPMeasureDateTimeZoneInMin @"timeZoneInMin" | ||
| 200 | #define kResultBPSchemeID @"schemeID" | ||
| 201 | #define kResultBPHistoryIndex @"historyIndex" | ||
| 202 | #define kResultBPUnit @"unit" | ||
| 203 | |||
| 204 | #define kResultBPIsAutoMeasure @"isAutoMeasure" | ||
| 205 | #define kResultBPRemeasureMode @"remeasureMode" | ||
| 206 | #define kResultBPHasRawPressure @"hasRawPressure" | ||
| 207 | #define kResultBPStartMeasureAngle @"startMeasureAngle" | ||
| 208 | #define kResultBPMeasureAngleDelta @"measureAngleDelta" | ||
| 209 | #define kResultBPIsMeasureResultFailed @"isMeasureResultFailed" | ||
| 210 | #define kResultBPMeasureResultErrorCode @"measureResultErrorCode" | ||
| 211 | #define kResultBPMeasureResultRawPressure @"measureResultRawPressure" | ||
| 212 | #define kResultBPActivityStrengthList @"activityStrengthList" | ||
| 213 | #define kResultBPActivityStrengthLevel @"level" | ||
| 214 | #define kResultBPActivityStrengthAngle @"angle" | ||
| 215 | #define kResultBPActivityStrengthIsSleeping @"isSleeping" | ||
| 216 | |||
| 217 | //function | ||
| 218 | #define kFunctionBPUpAirMeasure @"upAirMeasureFlg" | ||
| 219 | #define kFunctionBPArmMeasure @"armMeasureFlg" | ||
| 220 | #define kFunctionBPHaveAngleSensor @"haveAngleSensor" | ||
| 221 | #define kFunctionBPSupportPowerOff @"havePowerOff" | ||
| 222 | #define kFunctionBPSupportOffline @"haveOffline" | ||
| 223 | #define kFunctionBPSupportClearMemory @"haveClearMemory" | ||
| 224 | #define kFunctionBPSupportBTConnectBack @"haveBlue" | ||
| 225 | #define kFunctionBPBTConnectBackOpen @"blueOpen" | ||
| 226 | #define kFunctionBPOfflineOpen @"offlineOpen" | ||
| 227 | #define kFunctionBPHaveHSD @"haveHSD" | ||
| 228 | #define kFunctionBPHaveAngleSet @"haveAngleSet" | ||
| 229 | #define kFunctionBPAutoLoopMeasureModel @"autoLoopMeasureModel" | ||
| 230 | #define kFunctionBPAutoConnect @"autoConnect" | ||
| 231 | #define kFunctionBPReConnectSwitch @"reConnectSwitch" | ||
| 232 | #define kFunctionBPhasOfflineSetingFlg @"offlineSetingFlg" | ||
| 233 | #define kFunctionBPofflineMeasureFlg @"offlineMeasureFlg" | ||
| 234 | #define kFunctionBPbtfunctionFlg @"btfunctionFlg" | ||
| 235 | |||
| 236 | #define kFunctionBPSupportUnitSetting @"hasUnitSetting" | ||
| 237 | #define kFunctionBPCurrentUnitIsKPa @"unitKPa" | ||
| 238 | #define kFunctionBPMutableUpload @"mutableUpload" | ||
| 239 | #define kFunctionBPDFU @"selfUpdate" | ||
| 240 | #define kFunctionBPSupportMoveDetect @"hasMoveDetect" | ||
| 241 | #define kFunctionBPSupportAlertSetting @"hasAlertSetting" | ||
| 242 | #define kFunctionBPSupportRawPressure @"hasRawPressure" | ||
| 243 | #define kFunctionBPRawPressureFormat @"rowPressureFormat" | ||
| 244 | #define kFunctionBPBackLightControl @"haveBackLightSetting" | ||
| 245 | #define kFunctionBPClockDisplayControl @"haveClockShowSetting" | ||
| 246 | #define kFunctionBPMaxHistoryCount @"maxHistoryCount" | ||
| 247 | #endif | ||
