SPI read uint16_t

Hi, 

I need to read 16-bit values from a sensor using SPI on the NRF52840. However, since the SPI peripheral only supports an 8-bit word length, what is the best way to handle this?

Would setting spi_buf_set.count to 2 and using two separate spi_buf structures—one for the lower and one for the higher byte—be the correct approach? Or is there a better method?

Could you provide a sample implementation for this?

Related