diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABPM.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABPM.h | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABPM.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABPM.h new file mode 100644 index 0000000..0a3e74a --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ABPM.h | |||
| @@ -0,0 +1,144 @@ | |||
| 1 | // | ||
| 2 | // ABPM.h | ||
| 3 | // iHealthSDKStatic | ||
| 4 | // | ||
| 5 | // Created by Realank on 2017/9/26. | ||
| 6 | // Copyright © 2017年 ihealthSDK. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "BPBV10Device.h" | ||
| 10 | |||
| 11 | /** | ||
| 12 | ABPM device class | ||
| 13 | */ | ||
| 14 | @interface ABPM : BPBV10Device<BPBasicBTLEProtocol,BPRealtimeMeasureProtocol,BPOfflineDataTransferProtocol> | ||
| 15 | |||
| 16 | |||
| 17 | /** | ||
| 18 | * Synchronize time and return functions this device supports. | ||
| 19 | * @param function A block to return the functions and states that the device supports. | ||
| 20 | * @param error Operation failed, and returns the error codes. | ||
| 21 | */ | ||
| 22 | -(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * Get battery remaining energy by percent | ||
| 26 | * @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%. | ||
| 27 | * @param error Operation failed, and returns the error codes. | ||
| 28 | */ | ||
| 29 | -(void)commandEnergy:(BlockEnergyValue)energyValue errorBlock:(BlockError)error; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Get detailed battery remaining energy | ||
| 33 | * @param energyValueBlock A block to return the device's battery percentage, voltage and measure times left. | ||
| 34 | * @param errorBlock Operation failed, and returns the error codes. | ||
| 35 | */ | ||
| 36 | -(void)commandEnergyDetail:(BlockEnergyDetailValue)energyValueBlock errorBlock:(BlockError)errorBlock; | ||
| 37 | |||
| 38 | /** | ||
| 39 | * Set units for the Device | ||
| 40 | * @param UnitName The unit name of the result, must be @"mmHg" or @"kPa". | ||
| 41 | * @param setResult This block return means set success. | ||
| 42 | * @param error Operation failed, and returns the error codes. | ||
| 43 | */ | ||
| 44 | -(void)commandSetUnit:(NSString *)UnitName disposeSetReslut:(BlockSuccess)setResult errorBlock:(BlockError)error; | ||
| 45 | |||
| 46 | /** | ||
| 47 | * Disconnect current device | ||
| 48 | */ | ||
| 49 | -(void)commandDisconnectDevice; | ||
| 50 | |||
| 51 | /** | ||
| 52 | * Start BP measurement. | ||
| 53 | * @param blockZeroState Zeroing state | ||
| 54 | * @param pressure Pressure value in the process of measurement, the unit is ‘mmHg’. | ||
| 55 | * @param blockWaveletWithHeartbeat Wavelet data set including pulse rate | ||
| 56 | * @param blockWaveletWithoutHeartbeat Wavelet data set without pulse rate | ||
| 57 | * @param result result of the measurement, including systolic pressure, diastolic pressure, pulse rate and irregular judgment. Relevant keys: time, sys, dia, heartRate, irregular. irregular will be 0 or 1. | ||
| 58 | * @param error Operation failed, and returns the error codes. | ||
| 59 | */ | ||
| 60 | -(void)commandStartMeasureWithZeroingState:(BlockZero)blockZeroState pressure:(BlockPressure)pressure waveletWithHeartbeat:(BlockWavelet)blockWaveletWithHeartbeat waveletWithoutHeartbeat:(BlockWavelet)blockWaveletWithoutHeartbeat result:(BlockMeasureResult)result errorBlock:(BlockError)error; | ||
| 61 | |||
| 62 | /** | ||
| 63 | * Stop measurement | ||
| 64 | * @param success The block return means measurement has been terminated. | ||
| 65 | * @param error Operation failed, and returns the error codes. | ||
| 66 | */ | ||
| 67 | -(void)stopBPMeassureSuccessBlock:(BlockSuccess)success errorBlock:(BlockError)error; | ||
| 68 | |||
| 69 | |||
| 70 | /** | ||
| 71 | * Upload history data. | ||
| 72 | * @param totalCount history data total Count. | ||
| 73 | * @param progress upload completion ratio , from 0.0 to 1.0. | ||
| 74 | * @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. | ||
| 75 | * @param error Operation failed, and returns the error codes. | ||
| 76 | */ | ||
| 77 | -(void)commandTransferMemoryDataWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error; | ||
| 78 | |||
| 79 | -(void)commandTransferMemoryDataAndRawPressureWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error; | ||
| 80 | |||
| 81 | /** | ||
| 82 | * Upload history data total Count. | ||
| 83 | * @param totalCount item quantity of total data. | ||
| 84 | * @param error Operation failed, and returns the error codes. | ||
| 85 | */ | ||
| 86 | -(void)commandTransferMemoryTotalCount:(BlockBachCount)totalCount errorBlock:(BlockError)error; | ||
| 87 | |||
| 88 | |||
| 89 | /** | ||
| 90 | Delete all the history memory stored in device | ||
| 91 | |||
| 92 | @param successBlock A block refer to delete complete. | ||
| 93 | @param errorBlock Operation failed, and returns the error codes. | ||
| 94 | */ | ||
| 95 | - (void)commandDeleteAllMemoryWithSuccessBlock:(BlockSuccess)successBlock errorBlock:(BlockError)errorBlock; | ||
| 96 | |||
| 97 | |||
| 98 | /** | ||
| 99 | Set ID String (eg.patientID, schemeID), length 100 max | ||
| 100 | |||
| 101 | @param idString the content of id | ||
| 102 | @param successBlock A block refer to success. | ||
| 103 | @param errorBlock Operation failed, and returns the error codes. | ||
| 104 | */ | ||
| 105 | - (void)commandSetIDString:(NSString*)idString successBlock:(BlockSuccess)successBlock errorBlock:(BlockError)errorBlock; | ||
| 106 | |||
| 107 | |||
| 108 | /** | ||
| 109 | Ask ID String | ||
| 110 | |||
| 111 | @param idStringResultBlock return ID String | ||
| 112 | @param errorBlock Operation failed, and returns the error codes. | ||
| 113 | */ | ||
| 114 | - (void)commandAskIDStringWithResult:(BlockAskIDString)idStringResultBlock errorBlock:(BlockError)errorBlock; | ||
| 115 | |||
| 116 | |||
| 117 | /** | ||
| 118 | Set auto loop measure scheme | ||
| 119 | |||
| 120 | @param scheme scheme content | ||
| 121 | @param successBlock A block refer to success. | ||
| 122 | @param errorBlock Operation failed, and returns the error codes. | ||
| 123 | */ | ||
| 124 | - (void)commandSetLoopMeasureScheme:(BPLoopMeasureSettingModel*)scheme successBlock:(BlockSuccess)successBlock errorBlock:(BlockError)errorBlock; | ||
| 125 | |||
| 126 | |||
| 127 | /** | ||
| 128 | Get auto loop measure scheme | ||
| 129 | |||
| 130 | @param loopMeasureSchemeBlock return auto loop measure scheme content | ||
| 131 | @param errorBlock Operation failed, and returns the error codes. | ||
| 132 | */ | ||
| 133 | - (void)commandAskLoopMeasureScheme:(BlockAskLoopMeasureScheme)loopMeasureSchemeBlock errorBlock:(BlockError)errorBlock; | ||
| 134 | |||
| 135 | |||
| 136 | /** | ||
| 137 | Change loop measure scheme status | ||
| 138 | |||
| 139 | @param start YES to start, NO to pause | ||
| 140 | @param successBlock A block refer to success. | ||
| 141 | @param errorBlock Operation failed, and returns the error codes. | ||
| 142 | */ | ||
| 143 | - (void)commandChangeLoopMeasureStatusToStart:(BOOL)start successBlock:(BlockSuccess)successBlock errorBlock:(BlockError)errorBlock; | ||
| 144 | @end | ||
