Question
HAL_SPI_Transmit() Size, is it defined as a byte or a word?
Hello,
I have a very simple code. A two byte array that I need to send over SPI.
uint8_t my_array[2];
my_array[0] = 0x10;
my_array[1] = 0x01;
HAL_SPI_Transmit(&hspi1, my_array, 2, SPI_TIME_OUT);
// or
HAL_SPI_Transmit(&hspi1, my_array, 1, SPI_TIME_OUT);
The HAL reference guide does not specify in what format is the "Size" expected? Is it in bytes? or in a 16-bit word?
