STM32F103xB HAL User Manual
Functions
Peripheral State and Errors functions
SMARTCARD Exported Functions

SMARTCARD State and Errors functions. More...

Functions

HAL_SMARTCARD_StateTypeDef HAL_SMARTCARD_GetState (SMARTCARD_HandleTypeDef *hsc)
 Return the SMARTCARD handle state.
uint32_t HAL_SMARTCARD_GetError (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

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 1795 of file stm32f1xx_hal_smartcard.c.

References __SMARTCARD_HandleTypeDef::ErrorCode.

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 1780 of file stm32f1xx_hal_smartcard.c.

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