cancel
Showing results for 
Search instead for 
Did you mean: 

How to read byte from SPI?

ATeli.1
Associate III

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,...,...)

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

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

View solution in original post

1 REPLY 1
Pavel A.
Evangelist III

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