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

SMARTCARD State and Errors functions. More...

Collaboration diagram for Peripheral State and Errors functions:

Functions

HAL_SMARTCARD_StateTypeDef HAL_SMARTCARD_GetState (const SMARTCARD_HandleTypeDef *hsc)
 Return the SMARTCARD handle state.
 
uint32_t HAL_SMARTCARD_GetError (const SMARTCARD_HandleTypeDef *hsc)
 Return the SMARTCARD error code.
 

Detailed Description

SMARTCARD State and Errors functions.

 ===============================================================================
                ##### Peripheral State and Errors functions #####
 ===============================================================================
    [..]
    This subsection provides a set of functions allowing to control the SmartCard.
     (+) HAL_SMARTCARD_GetState() API can be helpful to check in run-time the state of the SmartCard peripheral.
     (+) HAL_SMARTCARD_GetError() check in run-time errors that could be occurred during communication.

Function Documentation

◆ HAL_SMARTCARD_GetState()

HAL_SMARTCARD_StateTypeDef HAL_SMARTCARD_GetState ( const SMARTCARD_HandleTypeDef * hsc)

#include <stm32f4xx_hal_smartcard.h>

Return the SMARTCARD handle state.

Parameters
hscPointer to a SMARTCARD_HandleTypeDef structure that contains the configuration information for SMARTCARD module.
Return values
HALstate

Definition at line 1778 of file stm32f4xx_hal_smartcard.c.

References __SMARTCARD_HandleTypeDef::gState, and __SMARTCARD_HandleTypeDef::RxState.

◆ HAL_SMARTCARD_GetError()

uint32_t HAL_SMARTCARD_GetError ( const SMARTCARD_HandleTypeDef * hsc)

#include <stm32f4xx_hal_smartcard.h>

Return the SMARTCARD error code.

Parameters
hscPointer to a SMARTCARD_HandleTypeDef structure that contains the configuration information for the specified SMARTCARD.
Return values
SMARTCARDError Code

Definition at line 1793 of file stm32f4xx_hal_smartcard.c.

References __SMARTCARD_HandleTypeDef::ErrorCode.