Hardware Reference
In-Depth Information
7.5.2 SET_HALT_CONTROL_IN
Dieser Request stoppt den Datenempfang des Control-IN Endpoints. Allerdings
hebt der Empfang eines Setup Token automatisch diese Sperrung auf.
Datenfeld
Wert
Bedeutung
bmRequestType
00000010
Standard, Host to Device, Recipient: Endpoint
bRequest
00000011
SET_FEATURE
wValue
0x0000
Feature: ENDPOINT_HALT
wIndex
0x0080
Recipient: Control-IN Endpoint
wLength
0x0000
Keine Antwort vom Gerät
;******************************************************************************
; USB Standard Request: SET_HALT_CONTROL_IN
;******************************************************************************
SET_HALT_CONTROL_IN
bsf UEP0,EPSTALL ;stall control endpoint
call transmitNONE ;send an empty packet trough control IN
bra transtest_over_ctl_out ;*2
;*2: A functional STALL on default control endpoints is unusual but must be
; supported by a robust firmware.
7.5.3 SET_HALT_BULK_OUT
Der Request sperrt den Bulk-OUT Endpoint.
Datenfeld
Wert
Bedeutung
bmRequestType
00000010
Standard, Host to Device, Recipient: Endpoint
bRequest
00000011
SET_FEATURE
wValue
0x0000
Feature: ENDPOINT_HALT
wIndex
0x0001
Recipient: Bulk-OUT Endpoint*
wLength
0x0000
Keine Antwort vom Gerät
* Der Wert 0x0001 für das Datenfeld wIndex gilt nur dann, wenn der Bulk-OUT Endpoint
wirklich die Adresse 01 hat. Im Unterschied zu den Adressen der Control Endpoints, die
festgelegt sind, sind alle übrigen Endpoint-Adressen von der aktiven Konfiguration der
USB-Schnittstelle abhängig. Die gültigen Adressen sind in den Endpoint Deskriptoren der
Konfiguration eingetragen [USB 2.0: 9.6.6].
;******************************************************************************
; USB Standard Request: SET_HALT_BULK_OUT
;******************************************************************************
SET_HALT_BULK_OUT
bsf
UEP1,EPSTALL ;stall bulk endpoint
call
transmitNONE ;send an empty packet trough control IN
bra
transtest_over_ctl_out
 
Search WWH ::




Custom Search