cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_SPI_Receive() ... Source Code

PKyyy.1
Associate

HIcommunity

I am new to the STM32 world and am looking for the name of the library file in which the function HAL_SPI_Receive (..) is included as source code or the direct source code of this function.

thanks for help

1 ACCEPTED SOLUTION

Accepted Solutions
LMI2
Lead

There are many kinds of Stm32 Cpus. Which of them are you going to use.

If you install CubeMx and the support for your CPU family, you'll probably get also SPI examples for your CPU/Board.

Using HAL_SPI_Receive() is easy, Try Googling it.

Earlier this summer I posted main.c of STM32H750 driving Max31865 with SPI.

View solution in original post

3 REPLIES 3
LMI2
Lead

There are many kinds of Stm32 Cpus. Which of them are you going to use.

If you install CubeMx and the support for your CPU family, you'll probably get also SPI examples for your CPU/Board.

Using HAL_SPI_Receive() is easy, Try Googling it.

Earlier this summer I posted main.c of STM32H750 driving Max31865 with SPI.

TDK
Guru

https://github.com/STMicroelectronics/STM32CubeF4

If you feel a post has answered your question, please click "Accept as Solution".
PKyyy.1
Associate

have meanwhile been able to find the library directly. i use the STM32F103. The library name i found was

stm32f1xx_hal_spi.h and stm32f1xx_hal_spi.c

thanks