Atmel SAM4L-EK Atmel ATSAM4L-EK ATSAM4L-EK Data Sheet

Product codes
ATSAM4L-EK
Page of 1204
396
42023E–SAM–07/2013
ATSAM4L8/L4/L2
17.7.2.11
Endpoint n Status Register 
Register Name:
UESTAn, n in [0..7]
Access Type:
Read-Only 0x0100
Offset:
0x0130 + (n * 0x04)
Reset Value:
0x00000000
• CTRLDIR: Control Direction
Writing a zero or a one to this bit has no effect.
This bit is cleared after a SETUP packet to indicate that the following packet is an OUT packet.
This bit is set after a SETUP packet to indicate that the following packet is an IN packet.
• CURRBK: Current Bank
This bit is set for non-control endpoints, indicating the current bank:
This field may be updated one clock cycle after the RWALL bit changes, so the user should not poll this field as an interrupt bit.
• NBUSYBK: Number of Busy Banks
This field is set to indicate the number of busy banks:
31
30
29
28
27
26
25
24
-
-
-
-
-
-
-
-
23
22
21
20
19
18
17
16
-
-
-
-
-
-
CTRLDIR
-
15
14
13
12
11
10
9
8
CURRBK
NBUSYBK
RAMACERI
-
DTSEQ
7
6
5
4
3
2
1
0
-
STALLEDI/
CRCERRI
-
NAKINI
NAKOUTI
RXSTPI/
ERRORFI
RXOUTI
TXINI
CURRBK
Current Bank
0
0
Bank0
0
1
Bank1
1
0
Reserved
1
1
Reserved
NBUSYBK
Number of Busy Banks
0
0
0 (all banks free)
0
1
1
1
0
2
1
1
Reserved