STMicroelectronics /STM32G0C1 /UCPD1 /UCPD_RX_PAYSZR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as UCPD_RX_PAYSZR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0RXPAYSZ

Description

UCPD Rx payload size register

Fields

RXPAYSZ

Rx payload size received This bitfield contains the number of bytes of a payload (including header but excluding CRC) received: each time a new data byte is received in the UCPD_RXDR register, the bitfield value increments and the RXMSGEND flag is set (and an interrupt generated if enabled). The bitfield may return a spurious value when a byte reception is ongoing (the RXMSGEND flag is low).

2 (B_0x2): 2 bytes - the size of Control message from the protocol layer

6 (B_0x6): 6 bytes - the shortest Data message allowed from the protocol layer)

30 (B_0x1E): 30 bytes - the longest non-extended Data message allowed from the protocol layer

262 (B_0x106): 262 bytes - the longest possible extended message

1023 (B_0x3FF): 1024 bytes - the longest possible payload (for future expansion)

Links

()