Skip to main content
Visitor II
February 28, 2024
Question

Reading STUSB4500 USB PD status via I2C

  • February 28, 2024
  • 1 reply
  • 1256 views

The USB PD status register is a combination of 4 registers.

The question is when read, are they interpreted as big endian or little endian?

so 0x91 0x92 0x93 0x94
0x91 = bit 0-7, or 28 - 31?
0x92 bit 8-11

0x93 ...

0x94 ...
The manual and programming guide are not clear .

    This topic has been closed for replies.

    1 reply

    ST Employee
    April 8, 2024

    Hello
    Little endian is used:
    @x91: bit [7:0]
    @x94: bit [31:24]


    Best regards

    Nathalie