EasyManua.ls Logo

Maxim Integrated MAX32665 - Table 21-21: USBHS in Endpoint Upper Control Register; USBHS in Endpoint Upper Control Registers

Maxim Integrated MAX32665
457 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MAX32665-MAX32668 User Guide
Maxim Integrated Page 419 of 457
USBHS Endpoint 0 Control Status
USBHS_CSR0
[0x0012]
Bits
Name
Access
Reset
Description
5
sendstall
R/W1O
0
Send EP0 STALL Handshake
Write a 1 to this bit to terminate the current Control Transaction by sending a
STALL handshake.
Automatically cleared after being set.
Note: This behavior is different from the sendstall bits associated with IN/OUT
endpoints.
4
setupend
RO
0
Read Setup End Status
Automatically set when a Control Transaction ends before the dataend bit has been
set by firmware.
An interrupt is generated when this bit is set.
Write a 1 to servicedsetupend (above) to clear.
3
dataend
R/W1O
0
Control Transaction Data End
Write a 1 to this bit after firmware completes any of the following three
transactions:
1) Set inpktrdy = 1 for the last data packet.
2) Set inpktrdy = 1 for a zero-length data packet.
3) Clear outpktrdy = 0 after unloading the last data packet.
Note: Automatically cleared after being set.
2
sentstall
R/W0C
0
Read EP0 STALL Handshake Sent Status
Automatically set when a STALL handshake is transmitted.
Write a 0 to clear.
1
inpktrdy
R/W1O
0
EP0 IN Packet Ready
Set this bit to indicate a packet is ready to transmit from the IN FIFO. Hardware
automatically clears this bit when the packet transmit is complete.
0: Packet was transmitted or no packet transmit pending. Read only.
1: Write a 1 after writing a data packet to the IN FIFO to indicate the EP0 IN
packet is ready.
Note: An interrupt is generated when this bit is cleared.
0
outpktrdy
RO
0
EP0 OUT Packet Ready Status
Automatically set when a data packet is received in the OUT FIFO.
An interrupt is generated when this bit is set.
Write a 1 to the servicedoutpktrdy bit (above) to clear after the packet is unloaded
from the OUT FIFO.
21.12.6 USBHS IN Endpoint Upper Control Registers
Endpoint 1 to 11 have a memory mapped version of this register selected using the USBHS_INDEX register.
Table 21-21: USBHS IN Endpoint Upper Control Register
USBHS IN Endpoint Upper Control
USBHS_INCSRU
[0x0013]
Bits
Name
Access
Reset
Description
7
autoset
R/W
0
Auto Set inpktrdy
0: USBHS_INCSRL.inpktrdy must be set by firmware
1: USBHS_INCSRL.inpktrdy is automatically set when data that is of the maximum
packet size specified in the USBHS_INMAXP register is loaded into the IN FIFO.

Table of Contents