Datasheet
1117
SAM3X / SAM3A [DATASHEET]
Atmel-11057C-ATARM-SAM3X-SAM3A-Datasheet_23-Mar-15
39.6.2.11 Device Endpoint x Status Register
Name: UOTGHS_DEVEPTISRx [x=0..9]
Address: 0x400AC130
Access: Read-only 0x0100
• BYCT: Byte Count
This field is set with the byte count of the FIFO.
For IN endpoints, incremented after each byte written by the software into the endpoint and decremented after each byte
sent to the host.
For OUT endpoints, incremented after each byte received from the host and decremented after each byte read by the soft-
ware from the endpoint.
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.
• CFGOK: Configuration OK Status
This bit is updated when the UOTGHS_DEVEPTCFGx.ALLOC bit is written to one.
This bit is set if the endpoint x number of banks (UOTGHS_DEVEPTCFGx.EPBK) and size
(UOTGHS_DEVEPTCFGx.EPSIZE) are correct compared to the maximal allowed number of banks and size for this end-
point and to the maximal FIFO size (i.e. the DPRAM size).
If this bit is cleared, the user shall rewrite correct values to the UOTGHS_DEVEPTCFGx.EPBK and
UOTGHS_DEVEPTCFGx.EPSIZE fields.
• CTRLDIR: Control Direction
This bit is set after a SETUP packet to indicate that the following packet is an IN packet.
This bit is cleared after a SETUP packet to indicate that the following packet is an OUT packet.
Writing a zero or a one to this bit has no effect.
• RWALL: Read-write Allowed
This bit is set for IN endpoints when the current bank is not full, i.e., the user can write further data into the FIFO.
This bit is set for OUT endpoints when the current bank is not empty, i.e., the user can read further data from the FIFO.
This bit is never set if UOTGHS_DEVEPTIMRx.STALLRQ is one or in case of error.
This bit is cleared otherwise.
This bit shall not be used for control endpoints.
31 30 29 28 27 26 25 24
– BYCT
23 22 21 20 19 18 17 16
BYCT – CFGOK CTRLDIR RWALL
15 14 13 12 11 10 9 8
CURRBK NBUSYBK – ERRORTRANS DTSEQ
76543210
SHORTPACKET
STALLEDI/
CRCERRI
OVERFI
NAKINI/
HBISOFLUSHI
NAKOUTI/
HBISOINERRI
RXSTPI/
UNDERFI
RXOUTI TXINI










