Good morning everyone,
I need to read a 32-bits register using 8-bits communication (I have already set up spi configuration structure to communicate over 8-bits transactions).
Can you please tell me how I should size data structures required by spi_read function in this particular situation?
These are the data structures I am talking about:
const struct spi_buf rx_buf = {
.buf =
.len =
}
const struct spi_buf_set rx = {
.buffers =
.count =
}
How would you set them up?
There should also be some data buffer linked to the .buf entry of rx_buf if I am not mistaken. Which size should it have?
Thanks in advance.
Gianmarco