diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABI.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABI.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABI.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABI.h new file mode 100644 index 0000000..a4416f9 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABI.h | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | // | ||
| 2 | // ABI.h | ||
| 3 | // iHealthDemoCode | ||
| 4 | // | ||
| 5 | // Created by zhiwei jing on 14-11-18. | ||
| 6 | // Copyright (c) 2014年 zhiwei jing. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "BPMacroFile.h" | ||
| 11 | |||
| 12 | /** | ||
| 13 | ABI device class | ||
| 14 | */ | ||
| 15 | @interface ABI : NSObject | ||
| 16 | |||
| 17 | @property (assign, nonatomic) BOOL hasLegMonitor; | ||
| 18 | @property (strong, nonatomic) NSString *currentArmUUID; | ||
| 19 | @property (strong, nonatomic) NSString *currentLegUUID; | ||
| 20 | //‘serialNumber’ is for separating different device when multiple device have been connected. | ||
| 21 | @property (strong, nonatomic) NSString *armSerialNumber; | ||
| 22 | @property (strong, nonatomic) NSString *legSerialNumber; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * Query battery remaining energy | ||
| 26 | * @param armEnergy A block to return battery ratio of upper-arm BPM, 80 means 80%. | ||
| 27 | * @param legEnergy A block to return battery ratio of ankle BPM, 80 means 80%. | ||
| 28 | * @param error When error occur, this block will be callback. | ||
| 29 | */ | ||
| 30 | -(void)commandQueryEnergy:(BlockEnergyValue)armEnergy leg:(BlockEnergyValue)legEnergy errorBlock:(BlockError)error; | ||
| 31 | |||
| 32 | |||
| 33 | /** | ||
| 34 | * Establish measurement connection and start BP measurement | ||
| 35 | * @Notice By the first time of new user register via SDK, ‘iHealth disclaimer’ will pop up automatically, and require the user agrees to continue. SDK application requires Internet connection; there is 10-day tryout if SDK cannot connect Internet, SDK is fully functional during tryout period, but will be terminated without verification through Internet after 10 days. | ||
| 36 | * @param blockZeroState Zeroing state | ||
| 37 | * @param armPressure Return Upper-arm blood pressure value during measurement, unit as mmHg | ||
| 38 | * @param legPressure Return Ankle blood pressure value during measurement, unit as mmHg. | ||
| 39 | * @param blockArmWaveletWithHeartbeat Return Wavelet value of upper-arm BPM, with heartbeats. | ||
| 40 | * @param blockLegWaveletWithHeartbeat Return Wavelet value of ankle BPM, with heartbeats. | ||
| 41 | * @param blockArmWaveletWithoutHeartbeat Return Wavelet value of upper-arm BPM, without heartbeats. | ||
| 42 | * @param blockLegWaveletWithoutHeartbeat Return Wavelet value of ankle BPM, without heartbeats. | ||
| 43 | * @param armResult Return BP value of upper-arm BPM, including time, sys, dia, heartRate, irregular heartbeat. | ||
| 44 | * @param legResult Return BP value of ankle BPM, including time, sys, dia, heartRate, irregular heartbeat. | ||
| 45 | * @param error When error occur, this block will be callback. | ||
| 46 | */ | ||
| 47 | -(void)commandStartMeasureWithZeroingState:(BlockZero)blockZeroState armPressure:(BlockPressure)armPressure legPressure:(BlockPressure)legPressure armWaveletWithHeartbeat:(BlockWavelet)blockArmWaveletWithHeartbeat legWaveletWithHeartbeat:(BlockWavelet)blockLegWaveletWithHeartbeat armWaveletWithoutHeartbeat:(BlockWavelet)blockArmWaveletWithoutHeartbeat legWaveletWithoutHeartbeat:(BlockWavelet)blockLegWaveletWithoutHeartbeat armResult:(BlockMeasureResult)armResult legResult:(BlockMeasureResult)legResult errorBlock:(BlockError)error; | ||
| 48 | |||
| 49 | |||
| 50 | /** | ||
| 51 | * Measurement termination and stop ABI measurement | ||
| 52 | */ | ||
| 53 | -(void)stopABIMeassure; | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | #pragma mark - Arm Measure Api | ||
| 58 | /** | ||
| 59 | * Query battery remaining energy | ||
| 60 | * @param armEnergy A block to return battery ratio of upper-arm BPM, 80 means 80%. | ||
| 61 | * @param error When error occur, this block will be callback. | ||
| 62 | */ | ||
| 63 | -(void)commandQueryEnergy:(BlockEnergyValue)armEnergy errorBlock:(BlockError)error; | ||
| 64 | |||
| 65 | |||
| 66 | /** | ||
| 67 | * Establish measurement connection and Start upper-arm BPM measurement. | ||
| 68 | * @param blockZeroState Zeroing state | ||
| 69 | * @param armPressure Return Upper-arm blood pressure value during measurement, unit as mmHg. | ||
| 70 | * @param blockArmWaveletWithHeartbeat The Wavelet value of upper-arm BPM, with heartbeats. | ||
| 71 | * @param blockArmWaveletWithoutHeartbeat The Wavelet value of upper-arm BPM, without heartbeats. | ||
| 72 | * @param armResult The BP value of upper-arm BPM, including time, sys, dia, heartRate, irregular heartbeat. irregular will be 0 or 1. | ||
| 73 | * @param error When error occur, this block will be callback. | ||
| 74 | */ | ||
| 75 | -(void)commandStartArmMeasureWithZeroingState:(BlockZero)blockZeroState armPressure:(BlockPressure)armPressure armWaveletWithHeartbeat:(BlockWavelet)blockArmWaveletWithHeartbeat armWaveletWithoutHeartbeat:(BlockWavelet)blockArmWaveletWithoutHeartbeat armResult:(BlockMeasureResult)armResult errorBlock:(BlockError)error; | ||
| 76 | |||
| 77 | /** | ||
| 78 | * Measurement termination and stop upper-arm BPM measurement | ||
| 79 | */ | ||
| 80 | -(void)stopABIArmMeassure; | ||
| 81 | |||
| 82 | @end | ||
