UsbIsoClose: Difference between revisions
Appearance
Created page with "==Description== Releases bandwidth and resources for Isochronous Transfer. ==Syntax== <pre> ulrc=UsbIsoClose(Handle,Endpoint,AltInterface) </pre> ==Parameters== ; Handle : ..." |
updated whole page |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<pre> | <pre> | ||
ulrc=UsbIsoClose(Handle, | ulrc = UsbIsoClose(Handle,ucEndpoint,ucAltSetting) | ||
</pre> | </pre> | ||
==Parameters== | ==Parameters== | ||
; Handle : | ; Handle : the Device Handle received from the previous UsbOpen. | ||
; Endpoint | ; ucEndpoint : the Endpoint Number appropriate for the data transfer. | ||
; | ; ucAltSetting: the Alternate Setting of the interface having this endpoint. | ||
==Return Code== | ==Return Code== | ||
<pre> | |||
0x0000 - NO_ERROR | |||
</pre> | |||
===Errors=== | ===Errors=== | ||
<pre> | |||
0x0037 - ERROR_DEV_NOT_EXIST | |||
0x0057 - ERROR_INVALID_PARAMETER | |||
0x1B58 - USB_NOT_INIT | |||
0xFF18 - USB_IDC_ADDRINV | |||
</pre> | |||
==Remarks== | ==Remarks== | ||
==Example Code== | ==Example Code== | ||
<pre> | <pre> | ||
//Code Snippet - UsbIsoClose | |||
{ | |||
APIRET ulrc; | |||
UCHAR ucAltSetting = 1; | |||
UCHAR ucEndpoint = 0x86; | |||
ulrc = UsbIsoClose(Handle,ucEndpoint,ucAltSetting); | |||
printf("\nUsbIsoClose - ulrc: 0x%04X (%hu)",ulrc,ulrc); | |||
} | |||
</pre> | </pre> | ||
Revision as of 11:28, 7 February 2017
Description
Releases bandwidth and resources for Isochronous Transfer.
Syntax
ulrc = UsbIsoClose(Handle,ucEndpoint,ucAltSetting)
Parameters
- Handle
- the Device Handle received from the previous UsbOpen.
- ucEndpoint
- the Endpoint Number appropriate for the data transfer.
- ucAltSetting
- the Alternate Setting of the interface having this endpoint.
Return Code
0x0000 - NO_ERROR
Errors
0x0037 - ERROR_DEV_NOT_EXIST 0x0057 - ERROR_INVALID_PARAMETER 0x1B58 - USB_NOT_INIT 0xFF18 - USB_IDC_ADDRINV
Remarks
Example Code
//Code Snippet - UsbIsoClose { APIRET ulrc; UCHAR ucAltSetting = 1; UCHAR ucEndpoint = 0x86; ulrc = UsbIsoClose(Handle,ucEndpoint,ucAltSetting); printf("\nUsbIsoClose - ulrc: 0x%04X (%hu)",ulrc,ulrc); }