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