STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
SMARTCARD State and Errors functions. More...
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. | |
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.
HAL_SMARTCARD_StateTypeDef HAL_SMARTCARD_GetState | ( | const SMARTCARD_HandleTypeDef * | hsc | ) |
#include <stm32f4xx_hal_smartcard.h>
Return the SMARTCARD handle state.
hsc | Pointer to a SMARTCARD_HandleTypeDef structure that contains the configuration information for SMARTCARD module. |
HAL | state |
Definition at line 1778 of file stm32f4xx_hal_smartcard.c.
References __SMARTCARD_HandleTypeDef::gState, and __SMARTCARD_HandleTypeDef::RxState.
uint32_t HAL_SMARTCARD_GetError | ( | const SMARTCARD_HandleTypeDef * | hsc | ) |
#include <stm32f4xx_hal_smartcard.h>
Return the SMARTCARD error code.
hsc | Pointer to a SMARTCARD_HandleTypeDef structure that contains the configuration information for the specified SMARTCARD. |
SMARTCARD | Error Code |
Definition at line 1793 of file stm32f4xx_hal_smartcard.c.
References __SMARTCARD_HandleTypeDef::ErrorCode.