Hal_Spi_Init; Hal_Spi_Deinit; Hal_Spi_Mspinit; Hal_Spi_Mspdeinit - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940
43.2.4

Peripheral State and Errors functions

This subsection provides a set of functions allowing to control the SPI.
HAL_SPI_GetState() API can be helpful to check in run-time the state of the SPI
peripheral
HAL_SPI_GetError() check in run-time Errors occurring during communication
This section contains the following APIs:
HAL_SPI_GetState()
HAL_SPI_GetError()
43.2.5

Detailed description of functions

HAL_SPI_Init

Function name
Function description
Parameters
Return values

HAL_SPI_DeInit

Function name
Function description
Parameters
Return values

HAL_SPI_MspInit

Function name
Function description
Parameters
Return values

HAL_SPI_MspDeInit

Function name
Function description
Parameters
Return values
HAL_StatusTypeDef HAL_SPI_Init (SPI_HandleTypeDef * hspi)
Initialize the SPI according to the specified parameters in the
SPI_InitTypeDef and initialize the associated handle.
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for SPI module.
HAL: status
HAL_StatusTypeDef HAL_SPI_DeInit (SPI_HandleTypeDef *
hspi)
De Initialize the SPI peripheral.
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for SPI module.
HAL: status
void HAL_SPI_MspInit (SPI_HandleTypeDef * hspi)
Initialize the SPI MSP.
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for SPI module.
None:
void HAL_SPI_MspDeInit (SPI_HandleTypeDef * hspi)
De-Initialize the SPI MSP.
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for SPI module.
None:
DocID028236 Rev 2
HAL SPI Generic Driver
555/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF