summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/DFUDeviceFirmwareInfo.h
blob: a33e67e587b342a81b07b8242777befdb7055af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
//  DFUDeviceFirmwareInfo.h
//  iHealthSDKStatic
//
//  Created by Lei Bao on 2017/7/17.
//  Copyright © 2017年 daiqingquan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DFUMacro.h"
/**
 Firmware information from device flash
 */
@interface DFUDeviceFirmwareInfo : NSObject
/**
 Device UUID
 */
@property (copy, nonatomic, readonly) NSString *UUID;
/**
 DFUDeviceType
 */
@property (assign, nonatomic, readonly) DFUDeviceType deviceType;

/**
 Model Number
 */
@property (copy, nonatomic, readonly) NSString *deviceModel;

/**
 Hardware version
 */
@property (copy, nonatomic, readonly) NSString *hardwareVersion;

/**
 Firmware version in Flash
 */
@property (copy, nonatomic, readonly) NSString *firmwareVersion;

/**
 YES:allow;NO:not allow
 */
@property (assign, nonatomic, readonly) BOOL canUpgrade;

/**
 Continue to transfer or not
 */
@property (assign, nonatomic, readonly) BOOL isContinue;

/**
 1:update no need to disconnect 2:update need to disconnect
 */
@property (assign, nonatomic, readonly) NSInteger upgradeMethod;

+ (instancetype)infoWithData:(uint8_t [])buf  deviceType:(DFUDeviceType)deviceType deviceUUID:(NSString *)uuid;

@end