You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
// |
|
// RTKCharacteristicReadWrite.h |
|
// RTKLEFoundation |
|
// |
|
// Created by jerome_gu on 2019/1/10. |
|
// Copyright © 2019 Realtek. All rights reserved. |
|
// |
|
|
|
#import <UIKit/UIKit.h> |
|
#import <CoreBluetooth/CoreBluetooth.h> |
|
|
|
#ifdef RTK_SDK_IS_STATIC_LIBRARY |
|
#import "RTKLEPeripheral.h" |
|
#import "RTKPackageCommunication.h" |
|
#import "RTKPeripheralCharacteristicOperation.h" |
|
#else |
|
#import <RTKLEFoundation/RTKLEPeripheral.h> |
|
#import <RTKLEFoundation/RTKPackageCommunication.h> |
|
#import <RTKLEFoundation/RTKPeripheralCharacteristicOperation.h> |
|
#endif |
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
@interface RTKCharacteristicReadWrite : RTKPackageCommunication <RTKPeripheralCharacteristicRead, RTKPeripheralCharacteristicWrite> |
|
|
|
- (instancetype)initWithPeripheral:(RTKLEPeripheral*)peripheral read:(nullable CBCharacteristic *)readCharacteristic write:(nullable CBCharacteristic *)writeCharacteristic; |
|
|
|
@property (class, readonly) BOOL writeReliably; |
|
|
|
@end |
|
|
|
@interface RTKCharacteristicReadWriteWithoutResponse : RTKCharacteristicReadWrite |
|
|
|
@end |
|
|
|
@interface RTKCharacteristicReadWriteArbitrarily : RTKCharacteristicReadWrite |
|
|
|
@end |
|
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|