Question
How to transmit hex data over spi?
I want to transfer binary data (not character) without having to worry about character conversion, so directly:
uint8_t data = 0xBF;
HAL_SPI_Transmit(&spi1handle, (uint8_t *) data, 1, 1000);
But I get something else at the receive end, specifically I get for example 0xDC so not the same data that I send. As a beginner I would like to know how I can make the above work.
