Not even sure if anyone cares :smiley: I, for instance, have not seen a device that uses LSB bit ordering, but... for the sake of completeness and what if...
Something I noticed when I was "playing" with different transfer modes. To show what it is I wrote a small test program:
Current implementation assumes "always MSB" for commands and addresses and pushes wrongs bits out.
Command and Address
Note that SPI analyzer is set to decode 8-bit transfers with the least significant bit first.
also... while I ran them separately and captured 2 images, one for the command and one for the address, they are virtually identical
The fixed spi_set_command and spi_set_address set those bits properly.
Note this time I set decoder to 4-bits per transfer to illustrate the result a bit better
Not even sure if anyone cares :smiley: I, for instance, have not seen a device that uses LSB bit ordering, but... for the sake of completeness and what if...
Something I noticed when I was "playing" with different transfer modes. To show what it is I wrote a small test program:
Current implementation assumes "always MSB" for commands and addresses and pushes wrongs bits out.
Command and Address
The fixed
spi_set_command
andspi_set_address
set those bits properly.Command
Address