STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Peripheral State and Errors functions

SPI control functions. More...

Collaboration diagram for Peripheral State and Errors functions:

Functions

HAL_SPI_StateTypeDef HAL_SPI_GetState (const SPI_HandleTypeDef *hspi)
 Return the SPI handle state.
 
uint32_t HAL_SPI_GetError (const SPI_HandleTypeDef *hspi)
 Return the SPI error code.
 

Detailed Description

SPI control functions.

 ===============================================================================
                      ##### 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

Function Documentation

◆ HAL_SPI_GetState()

HAL_SPI_StateTypeDef HAL_SPI_GetState ( const SPI_HandleTypeDef * hspi)

#include <stm32f4xx_hal_spi.h>

Return the SPI handle state.

Parameters
hspipointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Return values
SPIstate

Definition at line 2642 of file stm32f4xx_hal_spi.c.

References __SPI_HandleTypeDef::State.

◆ HAL_SPI_GetError()

uint32_t HAL_SPI_GetError ( const SPI_HandleTypeDef * hspi)

#include <stm32f4xx_hal_spi.h>

Return the SPI error code.

Parameters
hspipointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Return values
SPIerror code in bitmap format

Definition at line 2654 of file stm32f4xx_hal_spi.c.

References __SPI_HandleTypeDef::ErrorCode.