SMARTCARD State and Errors functions.
More...
SMARTCARD State and Errors functions.
==============================================================================
##### Peripheral State and Errors functions #####
==============================================================================
[..]
This subsection provides a set of functions allowing to return the State of SmartCard
handle and also return Peripheral Errors occurred during communication process
(+) HAL_SMARTCARD_GetState() API can be helpful to check in run-time the state
of the SMARTCARD peripheral.
(+) HAL_SMARTCARD_GetError() checks in run-time errors that could occur during
communication.
◆ HAL_SMARTCARD_GetError()
Return the SMARTCARD handle error code.
- Parameters
-
| hsmartcard | Pointer to a SMARTCARD_HandleTypeDef structure that contains the configuration information for the specified SMARTCARD module. |
- Return values
-
| SMARTCARD | handle Error Code |
Definition at line 2352 of file stm32l4xx_hal_smartcard.c.
◆ HAL_SMARTCARD_GetState()
Return the SMARTCARD handle state.
- Parameters
-
| hsmartcard | Pointer to a SMARTCARD_HandleTypeDef structure that contains the configuration information for the specified SMARTCARD module. |
- Return values
-
Definition at line 2335 of file stm32l4xx_hal_smartcard.c.
2340 temp1 = (uint32_t)hsmartcard->
gState;
2341 temp2 = (uint32_t)hsmartcard->
RxState;
__IO HAL_SMARTCARD_StateTypeDef gState
uint32_t HAL_SMARTCARD_StateTypeDef
HAL SMARTCARD State definition.
__IO HAL_SMARTCARD_StateTypeDef RxState