Jump to content

UsbIsoClose: Difference between revisions

From EDM2
Created page with "==Description== Releases bandwidth and resources for Isochronous Transfer. ==Syntax== <pre> ulrc=UsbIsoClose(Handle,Endpoint,AltInterface) </pre> ==Parameters== ; Handle : ..."
 
W.m.brul (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
==Syntax==
==Syntax==
<pre>
<pre>
ulrc=UsbIsoClose(Handle,Endpoint,AltInterface)
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.


; AltInterface:  
; 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>


==Related Functions==
==Related Functions==
* [[UsbCancelTransfer]]
* [[UsbIsoOpen]]
* [[UsbOpen]]


[[Category:USBCalls]]
[[Category:USBCalls]]

Latest revision as of 17:41, 12 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);
}

Related Functions