Code Search for Developers
 
 
  

JRUSBInterface.h from redshed at Krugle


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

redshed

Code for Mac+WebObjects.

Project homepage: http://sourceforge.net/projects/redshed
Programming language(s): C,Java,Objective C
License: other

  JRUSBInterface.h
  JRUSBInterface.m