Instance Property

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

Declaration

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software