75d24c15
yangbin
123
|
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
//
// RTKOTADeviceInfo.h
// RTKOTASDK
//
// Created by jerome_gu on 2020/3/9.
// Copyright © 2020 jerome_gu. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifdef RTK_SDK_IS_STATIC_LIBRARY
#import "libRTKLEFoundation.h"
#import "RTKOTAPeripheral.h"
#import "RTKOTABin.h"
#else
#import <RTKLEFoundation/RTKLEFoundation.h>
#import <RTKOTASDK/RTKOTAPeripheral.h>
#import <RTKOTASDK/RTKOTABin.h>
#endif
NS_ASSUME_NONNULL_BEGIN
@interface RTKOTADeviceInfo : NSObject
/**
* OTA process version
*/
@property (readonly) NSUInteger OTAVersion;
@property (readonly) NSUInteger securityVersion;
/**
* The BDAddress
*/
@property (readonly) BDAddressType bdAddress;
/**
* The companion bud BDAddress.
*/
@property (readonly) BDAddressType companionBDAddress;
@property (readonly) uint16_t appVersion;
@property (readonly) uint16_t patchVersion;
@property (readonly) NSString *linkKey;
@property (readonly) NSUInteger tempBufferSize;
@property (readonly) RTKOTABankType activeBank;
@property (readonly) NSUInteger appFreeBank;
@property (readonly) NSUInteger patchFreeBank;
@property (readonly) BOOL bufferCheckEnable;
@property (readonly) BOOL AESEnable;
@property (readonly) NSUInteger encryptionMode;
@property (readonly) BOOL copyImage;
@property (readonly) BOOL updateMultiImages;
@property (readonly) NSUInteger maxBufferSize;
/* RWS Upgrade related properties */
/**
Whether this peripheral is a one of the RWS pair.
*/
@property (readonly) BOOL isRWS;
/**
Indicate what bud is this perpheral.
*/
@property (readonly) RTKOTAEarbud budType;
/**
Indicate whether RWS bud is in engaged.d
*/
@property (readonly) BOOL notEngaged;
/**
Indicate whether this peripheral have received images right now, but not active.
*/
@property (readonly) BOOL upgradedCurrently;
@property (readonly) RTKOTAProtocolType protocolType;
/**
* The executable bins installed in Realtek peripheral.
*/
@property (readonly) NSArray <RTKOTABin*> *bins;
/**
* Indicate whether related peripheral can translate to OTA mode, and wether -enterOTAMode method can be invoked.
*/
@property (readonly) BOOL canEnterOTAMode;
/**
* Indicate whether related peripheral can DFU upgrade immediately.
*/
@property (readonly) BOOL canUpgradeSliently;
@end
@interface RTKOTADeviceInfo (Protect)
@property NSUInteger maxBufferSize;
@end
NS_ASSUME_NONNULL_END
|