Rev 3745 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3745 | Rev 4547 | ||
---|---|---|---|
Line 184... | Line 184... | ||
184 | USB_STATUS_UNDERRUN = 9 ; too few data from endpoint |
184 | USB_STATUS_UNDERRUN = 9 ; too few data from endpoint |
185 | USB_STATUS_BUFOVERRUN = 12 ; overflow of internal controller buffer |
185 | USB_STATUS_BUFOVERRUN = 12 ; overflow of internal controller buffer |
186 | USB_STATUS_BUFUNDERRUN = 13 ; underflow of internal controller buffer |
186 | USB_STATUS_BUFUNDERRUN = 13 ; underflow of internal controller buffer |
187 | USB_STATUS_CLOSED = 16 ; pipe closed, either explicitly with USBClosePipe |
187 | USB_STATUS_CLOSED = 16 ; pipe closed, either explicitly with USBClosePipe |
188 | ; or due to device disconnect |
188 | ; or due to device disconnect |
- | 189 | USB_STATUS_CANCELLED = 17 ; transfer cancelled with USBAbortPipe |
|
Line 189... | Line 190... | ||
189 | 190 | ||
190 | If several transfers are queued for the same pipe, their callback functions |
191 | If several transfers are queued for the same pipe, their callback functions |
191 | are called in the same order as they were queued. |
192 | are called in the same order as they were queued. |
192 | When a pipe is closed, either explicitly with USBClosePipe, or |
193 | When a pipe is closed, either explicitly with USBClosePipe, or |
193 | implicitly due to device disconnect, all callback functions are called |
194 | implicitly due to device disconnect, all callback functions are called |
194 | with USB_STATUS_CLOSED. The call to DeviceDisconnected() occurs after |
195 | with USB_STATUS_CLOSED. The call to DeviceDisconnected() occurs after |
Line -... | Line 196... | ||
- | 196 | all callbacks. |
|
- | 197 | ||
- | 198 | void __stdcall USBAbortPipe(void* pipe); |
|
- | 199 | Initiates cancellation of all active transfers for the given pipe. Asynchronous. |
|
- | 200 | When a transfer will be cancelled, the associated callback function |
|
195 | all callbacks. |
201 | will be called with USB_STATUS_CANCELLED. |
196 | 202 | ||
197 | void* __stdcall USBGetParam(void* pipe0, int param); |
203 | void* __stdcall USBGetParam(void* pipe0, int param); |
198 | Returns miscellaneous parameters of the device. |
204 | Returns miscellaneous parameters of the device. |
199 | pipe0 is the pointer to the config pipe. |
205 | pipe0 is the pointer to the config pipe. |