diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7.h | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7.h new file mode 100644 index 0000000..fa9b478 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7.h | |||
| @@ -0,0 +1,141 @@ | |||
| 1 | // | ||
| 2 | // BP7.h | ||
| 3 | // testShareCommunication | ||
| 4 | // | ||
| 5 | // Created by my on 8/10/13. | ||
| 6 | // Copyright (c) 2013年 my. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "BPDevice.h" | ||
| 11 | #import <UIKit/UIKit.h> | ||
| 12 | |||
| 13 | |||
| 14 | /** | ||
| 15 | BP7 device class | ||
| 16 | */ | ||
| 17 | @interface BP7 : BPDevice<BPBasicProtocol,BPRealtimeMeasureProtocol,BPOfflineDataTransferProtocol,BPEnableOfflineProtocol> | ||
| 18 | /** | ||
| 19 | * Synchronize time and judge if the device supports BT auto-connection, offline detection, and if the function on or off, corresponding KEYs are haveBlue, haveOffline, blueOpen, offlineOpen. ‘True’ means yes or on, ‘False’ means no or off | ||
| 20 | * @param function A block to return the function and states that the device supports. | ||
| 21 | * @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP. | ||
| 22 | */ | ||
| 23 | -(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error; | ||
| 24 | |||
| 25 | /** | ||
| 26 | *set up BT auto-connection | ||
| 27 | * @param open True means on; False means off. | ||
| 28 | * @param blockBuleSet The device current statues, True means on, False means off. | ||
| 29 | * @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP. | ||
| 30 | */ | ||
| 31 | -(void)commandSetBlueConnect:(BOOL)open respond:(BlockBlueSet)blockBuleSet errorBlock:(BlockError)error; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * set up offline detection | ||
| 35 | * @param open True means on; False means off. | ||
| 36 | * @param successBlock A block to refer ‘set success’. | ||
| 37 | * @param errorBlock A block to refer ‘set failed’. | ||
| 38 | */ | ||
| 39 | -(void)commandSetOffline:(BOOL)open success:(BlockSuccess)successBlock error:(BlockError)errorBlock; | ||
| 40 | /** | ||
| 41 | * set up offline detection (Deprecated) | ||
| 42 | * @param open True means on; False means off. | ||
| 43 | * @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP. | ||
| 44 | */ | ||
| 45 | -(void)commandSetOffline:(BOOL)open errorBlock:(BlockError)error; | ||
| 46 | |||
| 47 | |||
| 48 | /** | ||
| 49 | * Query battery remaining energy | ||
| 50 | * @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%. | ||
| 51 | * @param error A block to return the error in ‘Establish measurement connection’ | ||
| 52 | */ | ||
| 53 | -(void)commandEnergy:(BlockEnergyValue)energyValue errorBlock:(BlockError)error; | ||
| 54 | |||
| 55 | |||
| 56 | /** | ||
| 57 | * Get current angle(only for BP7,This function needs to be called before the call of the start measure function) | ||
| 58 | * @param angleInfo Angle information, including angle、isLeftHand. ‘angle’ stands for the inclination angle of the device, from 0 to 90; ‘isLeftHand’ stands for the judgment if the device is on the left hand, ‘true’ means left hand, otherwise is right hand. | ||
| 59 | * @param error error codes. | ||
| 60 | * Specification: | ||
| 61 | * 1. BPError0 = 0: Unable to take measurements due to arm/wrist movements. | ||
| 62 | * 2. BPError1: Failed to detect systolic pressure. | ||
| 63 | * 3. BPError2: Failed to detect diastolic pressure. | ||
| 64 | * 4. BPError3: Pneumatic system blocked or cuff is too tight during inflation. | ||
| 65 | * 5. BPError4: Pneumatic system leakage or cuff is too loose during inflation. | ||
| 66 | * 6. BPError5: Cuff pressure reached over 300mmHg. | ||
| 67 | * 7. BPError6: Cuff pressure reached over 15 mmHg for more than 160 seconds. | ||
| 68 | * 8. BPError7: Data retrieving error. | ||
| 69 | * 9. BPError8: Data retrieving error. | ||
| 70 | * 10. BPError9: Data retrieving error. | ||
| 71 | * 11. BPError10: Data retrieving error. | ||
| 72 | * 12. BPError11: Communication Error. | ||
| 73 | * 13. BPError12: Communication Error. | ||
| 74 | * 14. BPError13: Low battery. | ||
| 75 | * 15. BPError14: Device bluetooth set failed. | ||
| 76 | * 16. BPError15: Systolic exceeds 260mmHg or diastolic exceeds 199mmHg. | ||
| 77 | * 17. BPError16: Systolic below 60mmHg or diastolic below 40mmHg. | ||
| 78 | * 18. BPError17: Arm/wrist movement beyond range. | ||
| 79 | * 19. BPNormalError=30: device error, error message displayed automatically. | ||
| 80 | * 20. BPOverTimeError: Abnormal communication. | ||
| 81 | * 21. BPNoRespondError: Abnormal communication. | ||
| 82 | * 22. BPBeyondRangeError: device is out of communication range. | ||
| 83 | * 23. BPDidDisconnect: device is disconnected. | ||
| 84 | * 24. BPAskToStopMeasure: measurement has been stopped. | ||
| 85 | * 25. BPInputParameterError=400: Parameter input error. | ||
| 86 | */ | ||
| 87 | -(void)commandStartGetAngle:(BlockAngle)angleInfo errorBlock:(BlockError)error; | ||
| 88 | |||
| 89 | /* | ||
| 90 | * Measurement start(only for BP7). When ‘angle’ is between 10-30, measurement starts | ||
| 91 | * @param blockZeroState Zeroing state | ||
| 92 | * @param Pressure Pressure value in the process of measurement, the unit is ‘mmHg’. | ||
| 93 | * @param blockWaveletWithHeartbeat Wavelet data set with heart beat. | ||
| 94 | * @param blockWaveletWithoutHeartbeat Wavelet data set without heart beat. | ||
| 95 | * @param Result result including systolic pressure, diastolic pressure, pulse rate and irregular judgment. Relevant key: time, sys, dia, heartRate, irregular. irregular will be 0 or 1. | ||
| 96 | * @param error error codes. | ||
| 97 | * Specification: | ||
| 98 | * 1. BPNormalError: device error, error message displayed automatically. | ||
| 99 | * 2. BPOverTimeError: communication over time error. | ||
| 100 | * 3. BPNoRespondError: abnormal communication. | ||
| 101 | * 4. BPBeyondRangeError: device is out of communication range. | ||
| 102 | * 5. BPDidDisconnect: device is disconnected. | ||
| 103 | * 6. BPAskToStopMeasure: measurement has been stopped. | ||
| 104 | */ | ||
| 105 | |||
| 106 | -(void)commandStartMeasureWithZeroingState:(BlockZero)blockZeroState pressure:(BlockPressure)pressure waveletWithHeartbeat:(BlockWavelet)blockWaveletWithHeartbeat waveletWithoutHeartbeat:(BlockWavelet)blockWaveletWithoutHeartbeat result:(BlockMeasureResult)result errorBlock:(BlockError)error; | ||
| 107 | |||
| 108 | /** | ||
| 109 | * upload offline data (Deprecated) | ||
| 110 | * @param totalCount item quantity of total data. | ||
| 111 | * @param progress upload completion ratio , from 0.0 to 1.0 or 0%~100%, 100% means upload completed. | ||
| 112 | * @param uploadDataArray offline data set, including measurement time, systolic pressure, diastolic pressure, pulse rate, irregular judgment. corresponding KEYs are time, sys, dia, heartRate, irregular. | ||
| 113 | * @param error refer ‘error’ in ‘Establish measurement connection’ in BP. | ||
| 114 | */ | ||
| 115 | -(void)commandBatchUpload:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error; | ||
| 116 | |||
| 117 | /** | ||
| 118 | * Upload offline data total Count. | ||
| 119 | * @param totalCount item quantity of total data. | ||
| 120 | * @param error A block to return the error. | ||
| 121 | */ | ||
| 122 | -(void)commandTransferMemoryTotalCount:(BlockBachCount)totalCount errorBlock:(BlockError)error; | ||
| 123 | |||
| 124 | /** | ||
| 125 | * Upload offline data. | ||
| 126 | * @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. | ||
| 127 | * @param totalCount item quantity of total data | ||
| 128 | * @param progress upload completion ratio , from 0.0 to 1.0 or 0%~100%, 100% means upload completed. | ||
| 129 | * @param uploadDataArray offline data set, including measurement time, systolic pressure, diastolic pressure, pulse rate, irregular judgment,scheme ID,body movement flag. corresponding KEYs are time, sys, dia, heartRate, irregular,schemeID,bodyMovementFlg. | ||
| 130 | * @param error A block to return the error. | ||
| 131 | */ | ||
| 132 | -(void)commandTransferMemoryDataWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error; | ||
| 133 | |||
| 134 | /** | ||
| 135 | * Measurement termination and stop BP measurement | ||
| 136 | * @param success The block return means measurement has been terminated. | ||
| 137 | * @param error A block to return the error in ‘Establish measurement connection’ in BP. | ||
| 138 | */ | ||
| 139 | -(void)stopBPMeassureSuccessBlock:(BlockSuccess)success errorBlock:(BlockError)error; | ||
| 140 | |||
| 141 | @end | ||
