sendIORequest(with:frameList:frameListCount:firstFrameNumber:)
Sends a request on an isochronous endpoint.
Declaration
func sendIORequest(with data: NSMutableData, frameList: UnsafeMutablePointer<IOUSBHostIsochronousFrame>, frameListCount: Int, firstFrameNumber: UInt64) throwsParameters
- data:
An Nsmutabledata object defining the memory to use for the transfer.
- frameList:
A pointer to the first element in an Iousbhostisochronousframe array. The array must contain at least
frameListCountelements. - frameListCount:
The number of elements in
frameList. - firstFrameNumber:
The frame number the request begins on. Query the current frame number with Framenumberwithtime:. If
0, the transfer starts on the next available frame (XHCI only).
Discussion
This method issues synchronous isochronous requests. The caller allocates and initializes an array of IOUSBHostIsochronousFrame structures to describe the transferred frames.