Show JRUSBInterface.h syntax highlighted
#import <Cocoa/Cocoa.h>
#include <IOKit/usb/IOUSBLib.h>
#include <IOKit/IOCFPlugIn.h>
#include "CircularBuffer.h"
#import "NSXReturnThrowError.h"
extern errstr_t JRUSBInterface_DeviceNotFound;
@interface JRUSBInterface : NSObject {
IOCFPlugInInterface **devicePlugin;
IOUSBDeviceInterface **deviceInterface;
IOCFPlugInInterface **interfacePlugin;
IOUSBInterfaceInterface182 **interfaceInterface;
UInt8 inputPipeRef;
UInt8 outputPipeRef;
NSMutableData *readBufferData;
CircularBuffer readBuffer;
}
+ (id)interfaceWithVendorID:(uint16_t)vendorID_ productID:(uint16_t)productID_ error:(NSError**)error_;
- (id)initWithVendorID:(uint16_t)vendorID_ productID:(uint16_t)productID_ error:(NSError**)error_;
- (void)write:(const void*)buffer_ size:(size_t)size_ error:(NSError**)error_;
- (void)read:(void*)buffer_ size:(size_t)size_ error:(NSError**)error_;
@end
See more files for this project here