The USB receive byte count endpoint n 16-bit read-only registers hold the number of data bytes in the packet currently in line to be read from the receive FIFO. If the packet is transmitted as multiple bulk packets, the number given is for the combined packet.
Note: The value returned changes as the FIFO is unloaded and is only valid while the RXRDY bit in the USBRXCSRLn register is set.
The USBRXCOUNT[n] registers are shown in Figure 23-50 and described in Table 23-52.
Figure 23-50 USB Receive Byte Count
Endpoint n Register (USBRXCOUNT[n])
| LEGEND: R = Read only; -n = value after
reset |
Table 23-52 USB Receive Byte Count
Endpoint n Register (USBRXCOUNT[n]) Field Descriptions| Bit | Field | Value | Description |
|---|
| 15-13 | Reserved | 0 | Reserved |
| 12-0 | COUNT | | Receive Packet Count indicates the number of bytes in the receive packet. |