ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference

 


IOUSBDeviceInterface300

Inherits from:

IOUSBDeviceInterface245

Declared In:

Overview

The object you use to access USB devices from user space, returned by the IOUSBFamily version 3.0.0 and above.

Discussion

The functions listed here include all of the functions defined for the IOUSBDeviceInterface, IOUSBDeviceInterface182, IOUSBDeviceInterface187, IOUSBDeviceInterface197, IOUSBDeviceInterface245, and some new functions that are available on Mac OS X version 10.5 and later.



Functions

GetBusFrameNumberWithTime

Gets a recent frame number of the bus to which the device is attached, along with a system time corresponding to the start of that frame


GetBusFrameNumberWithTime


Gets a recent frame number of the bus to which the device is attached, along with a system time corresponding to the start of that frame

IOReturn ( *GetBusFrameNumberWithTime)(
    void *self,
    UInt64 *frame,
    AbsoluteTime *atTime);  
Parameters
self

Pointer to the IOUSBDeviceInterface.

frame

Pointer to UInt64 to hold the frame number.

atTime

Pointer to a returned AbsoluteTime, which is the system time ("wall time") as close as possible to the beginning of that USB frame. The jitter on this value may be as much as 200 microseconds.

Return Value

Returns kIOReturnSuccess if successful, kIOReturnNoDevice if there is no connection to an IOService, or kIOReturnUnsupported is the bus doesn't support this function.

Discussion

The device does not have to be open to use this function.

Availability
This function is only available with IOUSBDeviceInterface300 and above.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2009-02-23