USB Type-C™ / USB Power Delivery interface (UCPD)
Bits 31:10 Reserved, must be kept at reset value.
Bits 9:0 RXPAYSZ[9:0]: 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).
0x2: 2 bytes - the size of Control message from the protocol layer
0x6: 6 bytes - the shortest Data message allowed from the protocol layer)
0x1E: 30 bytes - the longest non-extended Data message allowed from the protocol layer
0x106: 262 bytes - the longest possible extended message
0x3FF: 1024 bytes - the longest possible payload (for future expansion)
The bitfield may return a spurious value when a byte reception is ongoing (the RXMSGEND
flag is low).
46.7.12
UCPD receive data register (UCPD_RXDR)
Address offset: 0x030
Reset value: 0x0000 0000
31
30
29
Res.
Res.
Res.
Res.
15
14
13
Res.
Res.
Res.
Res.
Bits 31:8 Reserved
Bits 7:0 RXDATA[7:0]: Data byte received
46.7.13
UCPD Rx ordered set extension register 1
(UCPD_RX_ORDEXTR1)
Address offset: 0x034
Reset value: 0x0000 0000
Writing to this register is only effective when the peripheral is disabled (UCPDEN = 0).
31
30
29
Res.
Res.
Res.
Res.
15
14
13
rw
rw
rw
Bits 31:20 Reserved, must be kept at reset value
Bits 19:0 RXSOPX1[19:0]: Ordered set 1 received
The bitfield contains a full 20-bit sequence received, consisting of four K-codes, each of five
bits. The bit 0 (bit 0 of K-code1) is receive first, the bit 19 (bit 4 of K-code4) last.
2076/2126
28
27
26
25
Res.
Res.
Res.
12
11
10
9
Res.
Res.
Res.
28
27
26
25
Res.
Res.
Res.
12
11
10
9
rw
rw
rw
rw
24
23
22
Res.
Res.
Res.
8
7
6
Res.
r
r
24
23
22
Res.
Res.
Res.
8
7
6
RXSOPX1[15:0]
rw
rw
rw
RM0440 Rev 4
21
20
19
18
Res.
Res.
Res.
Res.
5
4
3
2
RXDATA[7:0]
r
r
r
r
21
20
19
18
Res.
Res.
RXSOPX1[19:16]
5
4
3
2
rw
rw
rw
rw
RM0440
17
16
Res.
Res.
1
0
r
r
17
16
rw
1
0
rw
rw
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?