29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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)<br />

RM0008<br />

OTG_FS host channel-x characteristics register (OTG_FS_HCCHARx)<br />

(x = 0..7, where x = Channel_number)<br />

Address offset: 0x500 + (Channel_number × 0x20)<br />

Reset value: 0x0000 0000<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

CHENA<br />

CHDIS<br />

ODDFRM<br />

DAD<br />

Reserved<br />

EPTYP<br />

LSDEV<br />

Reserved<br />

EPDIR<br />

EPNUM<br />

MPSIZ<br />

rs rs rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bit 31 CHENA: Channel enable<br />

This field is set by the application <strong>and</strong> cleared by the OTG host.<br />

0: Channel disabled<br />

1: Channel enabled<br />

Bit 30 CHDIS: Channel disable<br />

The application sets this bit to stop transmitting/receiving data on a channel, even before the<br />

transfer for that channel is complete. The application must wait for the Channel disabled<br />

interrupt before treating the channel as disabled.<br />

Bit 29 ODDFRM: Odd frame<br />

This field is set (reset) by the application to indicate that the OTG host must perform a transfer<br />

in an odd frame. This field is applicable for only periodic (isochronous <strong>and</strong> interrupt)<br />

transactions.<br />

0: Even frame<br />

1: Odd frame<br />

Bits 28:22 DAD: Device address<br />

This field selects the specific device serving as the data source or sink.<br />

Bits 21:20 Reserved<br />

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

Indicates the transfer type selected.<br />

00: Control<br />

01: Isochronous<br />

10: Bulk<br />

11: Interrupt<br />

Bit 17 LSDEV: Low-speed device<br />

This field is set by the application to indicate that this channel is communicating to a lowspeed<br />

device.<br />

Bit 16 Reserved<br />

Bit 15 EPDIR: Endpoint direction<br />

Indicates whether the transaction is IN or OUT.<br />

0: OUT<br />

1: IN<br />

Bits 14:11 EPNUM: Endpoint number<br />

Indicates the endpoint number on the device serving as the data source or sink.<br />

Bits 10:0 MPSIZ: Maximum packet size<br />

Indicates the maximum packet size of the associated endpoint.<br />

750/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!