09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USB on-the-go full-speed (OTG_FS) <strong>RM0090</strong><br />

Bit 30 EPDIS: Endpoint disable<br />

The application sets this bit to stop transmitting/receiving data on an endpoint, even before<br />

the transfer for that endpoint is complete. The application must wait for the Endpoint<br />

disabled interrupt before treating the endpoint as disabled. The core clears this bit before<br />

setting the Endpoint disabled interrupt. The application must set this bit only if Endpoint<br />

enable is already set for this endpoint.<br />

Bit 29 SD1PID: Set DATA1 PID<br />

Applies to interrupt/bulk IN and OUT endpoints only. Writing to this field sets the endpoint<br />

data PID (DPID) field in this register to DATA1.<br />

SODDFRM: Set odd frame<br />

Applies to isochronous IN and OUT endpoints only. Writing to this field sets the Even/Odd<br />

frame (EONUM) field to odd frame.<br />

Bit 28 SD0PID: Set DATA0 PID<br />

Applies to interrupt/bulk OUT endpoints only.<br />

Writing to this field sets the endpoint data PID (DPID) field in this register to DATA0.<br />

SEVNFRM: Set even frame<br />

Applies to isochronous OUT endpoints only.<br />

Writing to this field sets the Even/Odd frame (EONUM) field to even frame.<br />

Bit 27 SNAK: Set NAK<br />

A write to this bit sets the NAK bit for the endpoint.<br />

Using this bit, the application can control the transmission of NAK handshakes on an<br />

endpoint. The core can also set this bit for OUT endpoints on a Transfer Completed<br />

interrupt, or after a SETUP is received on the endpoint.<br />

Bit 26 CNAK: Clear NAK<br />

A write to this bit clears the NAK bit for the endpoint.<br />

Bits 25:22 Reserved, must be kept at reset value.<br />

Bit 21 STALL: STALL handshake<br />

Applies to non-control, non-isochronous OUT endpoints only (access type is rw).<br />

The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK<br />

bit, Global IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes<br />

priority. Only the application can clear this bit, never the core.<br />

Applies to control endpoints only (access type is rs).<br />

The application can only set this bit, and the core clears it, when a SETUP token is received<br />

for this endpoint. If a NAK bit, Global IN NAK, or Global OUT NAK is set along with this bit,<br />

the STALL bit takes priority. Irrespective of this bit’s setting, the core always responds to<br />

SETUP data packets with an ACK handshake.<br />

Bit 20 SNPM: Snoop mode<br />

This bit configures the endpoint to Snoop mode. In Snoop mode, the core does not check<br />

the correctness of OUT packets before transferring them to application memory.<br />

Bits 19:18 EPTYP: Endpoint type<br />

This is the transfer type supported by this logical endpoint.<br />

00: Control<br />

01: Isochronous<br />

10: Bulk<br />

11: Interrupt<br />

1093/1416 Doc ID 018909 Rev 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!