10#import <Foundation/Foundation.h>
11#import <IOKit/usb/IOUSBLib.h>
12#import <UniPRT/UsbInterfaceInfo.h>
13#import <UniPRT/AComm.h>
32@property (readonly, nonatomic) NSMutableDictionary *
deviceList;
36@property (nonatomic, readonly) BOOL shouldStopReadLoop;
59- (instancetype)initWithVendorId:(NSString *)vendorId productId:(NSString *)productId;
95- (void)write:(NSData *)text;
139- (NSData*)writeAndWaitForResponse:(NSData *)text
140 responseStartTimeOut:(NSTimeInterval)responseStartTimeOut
141 responseEndTimeOut:(NSTimeInterval)responseEndTimeOut
142 completionToken:(NSString *)completionToken;
144- (NSData*)writeAndWaitForResponseJson:(NSData *)text
145 responseStartTimeOut:(NSTimeInterval)responseStartTimeOut
146 responseEndTimeOut:(NSTimeInterval)responseEndTimeOut
147 completionToken:(NSString *)completionToken;
A base class for communication interfaces, conforming to the IComm protocol.
Definition AComm.h:29
Class that implements the USB specific communication and extends the AComm class.
Definition UsbComm.h:30
void stopListenRead()
Stops asynchronous reading from the device.
UsbInterfaceInfo * matchedInterfaces
Definition UsbComm.h:33
NSData * read()
Reads data from the device.
void open()
Opens the connection to the device.
NSMutableArray< UsbInterfaceInfo * > * discoveredInterfaces
Definition UsbComm.h:31
void close()
Closes the connection to the device.
NSMutableDictionary * deviceList
Definition UsbComm.h:32
void asyncListenRead()
Asynchronously listens for and reads data from the device.