usbd_get_frame()

Get the current frame number and frame length for a device

Synopsis:

int usbd_get_frame( struct usdb_device *device,
                    int32_t *fnum,
                    int32_t *flen );

Arguments:

device
The handle for the device, obtained by calling usbd_attach().
fnum
If non-NULL, this is set to the frame number.
flen
If non-NULL, this is set to the frame length.

Library:

libusbdi

Description:

This function gets the current frame number and frame length for the specified device.

Returns:

EOK
Success.
ENODEV
The device has been removed.

Classification:

QNX Neutrino, QNX 4

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread Yes

See also:

usbd_attach()