ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference
|
IOHIDInterface |
Inherits from: | |
Declared In: |
In kernel interface to a HID device.
Free the IOHIDInterface object.
Initialize an IOHIDInterface object.
Called by the provider during a match
Start up the driver using the given provider.
free |
Free the IOHIDInterface object.
protected
virtual void free();
Release all resources that were previously allocated, then call super::free() to propagate the call to our superclass.
init |
Initialize an IOHIDInterface object.
public
virtual bool init( OSDictionary *dictionary = 0 );
A
dictionary A property table associated with this IOHIDInterface instance.
True on sucess, or false otherwise.
Prime the IOHIDInterface object and prepare it to support a probe() or a start() call. This implementation will simply call super::init().
matchPropertyTable |
Called by the provider during a match
public
virtual bool matchPropertyTable( OSDictionary *table, SInt32 *score);
table
The property table that this device will match against
Compare the properties in the supplied table to this object's properties.
start |
Start up the driver using the given provider.
public
virtual bool start( IOService *provider );
provider
The provider that the driver was matched to, and selected to run with.
True on success, or false otherwise.
IOHIDInterface will allocate resources. Before returning true to indicate success, registerService() is called to trigger client matching.
CompletionAction |
public
typedef void ( *CompletionAction)( OSObject *target, void *refcon, IOReturn status, UInt32 bufferSizeRemaining);
target
refcon
status
Completion status.
bufferSizeRemaining
Bytes left to be transferred.
Function called when HID I/O completes.
InterruptReportAction |
Callback to handle an asynchronous report received from the HID device.
See Also:public
typedef void ( *InterruptReportAction)( OSObject *target, AbsoluteTime timestamp, IOMemoryDescriptor *report, IOHIDReportType type, UInt32 reportID, void *refcon);
target
Pointer to your data object.
timestamp
Time when the report was delivered.
report
A memory descriptor that describes the report.
reportType
The type of report.
reportID
The ID of the report.
refcon
void * pointer to more data.
This callback is set when calling IOHIDInterface::open.
IOHIDInterface::CompletionAction |
public
typedef void ( *CompletionAction)( OSObject *target, void *refcon, IOReturn status, UInt32 bufferSizeRemaining);
target
refcon
status
Completion status.
bufferSizeRemaining
Bytes left to be transferred.
Function called when HID I/O completes.
IOHIDInterface::InterruptReportAction |
Callback to handle an asynchronous report received from the HID device.
See Also:public
typedef void ( *InterruptReportAction)( OSObject *target, AbsoluteTime timestamp, IOMemoryDescriptor *report, IOHIDReportType type, UInt32 reportID, void *refcon);
target
Pointer to your data object.
timestamp
Time when the report was delivered.
report
A memory descriptor that describes the report.
reportType
The type of report.
reportID
The ID of the report.
refcon
void * pointer to more data.
This callback is set when calling IOHIDInterface::open.
_reserved |
private
ExpansionData * _reserved;
Reserved for future use. (Internal use only)
reserved |
private
ExpansionData * _reserved;
Reserved for future use. (Internal use only)
|
Last Updated: 2008-12-19