![ARTERY AT32WB415 Series Reference Manual Download Page 343](http://html1.mh-extra.com/html/artery/at32wb415-series/at32wb415-series_reference-manual_2977599343.webp)
AT32WB415
Series Reference Manual
2022.04.13
Page 343
Ver 2.00
20.6.3.15
OTGFS device IN endpoint Tx FIFO size register
(OTGFS_DIEPTXFn) (x=1
…
3, where n is the FIFO number)
This register holds the depth and memory start address of the IN endpoint transmit FIFO in device mode.
Each of the FIFOs contains an IN endpoint data. This register can be used repeatedly for instantiated
IN endpoint FIFO1~15 . The GNPTXFSIZ register is used to program the depth and memory start
address of the IN endpoint FIFO 0.
Bit
Register
Reset value
Type
Description
Bit 31: 16 INEPTXFDEP
0x0200
ro/rw
IN Endpoint TxFIFO depth
Values are in terms of 32-bit words.
Minimum value is 16
Maximum value is 512
The reset value is the maximum possible IN endpoint
transmit FIFO depth
Bit 15: 0
INEPTXFSTADDR
0x0400
ro/rw
IN Endpoint FIFOn transmit SRAM start address
This field contains the SRAM start address of the IN
endpoint n transmit FIFO
20.6.4 Host-mode registers
Host-mode registers affect the operation of the controller in host mode. Host-mode register are not
accessible in device mode (as the results are undefined in device mode). Host-mode registers contain
as follows:
20.6.4.1 OTGFS host mode configuration register (OTGFS_HCFG)
This register is used to configure the controller after power-on. Do not change this register after
initialization.
Bit
Register
Reset value
Type
Description
Bit 31: 3
Reserved
0x0000 0000 resd
Kept at its default value.
Bit 2
FSLSSUPP
0x0
ro
FS- and LS-only support
The application uses this bit to control the controller’s
enumeration speed. With this bit, the application can make
the controller enumerate as a full-speed host mode, even
if
the
connected
device
supports
high-speed
communication. Do not change this bit after initial
programming.
0: FS/LS, depending on the largest speed supported by
the connected device.
1: FS/LS-only, even if the onnected device supports high-
speed.
Bit 1: 0
FSLSPCLKSEL
0x0
rw
FS/LS PHY clock select
When the controller is in FS host mode:
01: PHY clock is running at 48MHz
Others: Reserved
When the controller is in LS host mode:
00: Reserved
01: PHY clock is running at 48 MHz
10: PHY clock is running at 6 MHz. If 6 MHz clock is
selected, reset must be done by software.
11: Reserved