Skip to main content
ATeli.1
Associate III
December 9, 2022
Solved

How to read byte from SPI?

There is some way to read directly the byte that are send via SPI and not the int8 that is generate by the function?

int8_t buffer[BUFFER_SIZE]
 
HAL_SPI_RECEIVE_DMA(...,(uint8_t*)buffer,...,...)

​

This topic has been closed for replies.
Pavel A.
Pavel A.Best answer
December 9, 2022

Yes, see the low level (LL) functions. LL_SPI_ReceiveData8, LL_SPI_ReceiveData16

1 reply

Pavel A.
Pavel A.Best answer
December 9, 2022

Yes, see the low level (LL) functions. LL_SPI_ReceiveData8, LL_SPI_ReceiveData16