USBLib_CtrlMsg (SWI &5635E)

USBLib_CtrlMsg (SWI &5635E) — Starts a transaction using a formatted control message.

On Entry

R0pipe
R1Data URB (0 if no data to be transfered)
R2Message URB
R3waiting template
R4bmRequestType (8bit)
R5bRequest (8bit)
R6wValue (16bit)
R7wIndex (16bit)

On Exit

R0waiting
R1,R2,R3,R4,R5,R6,R7Preserved

Use

This call starts a USB control transaction by taking the supplied values and creating the properly formatted control message in the supplied URB (R2) then starting a transaction with the appropriate parameters.

Related SWIs

USB_RequestStart (SWI&5538F)

Related Information

Section 7.2.1, “Control transactions”

usb_request_start