L4 HAL Drivers
Peripheral State and Errors functions
[SMARTCARD Exported Functions]
SMARTCARD State and Errors functions. More...
Functions | |
HAL_SMARTCARD_StateTypeDef | HAL_SMARTCARD_GetState (SMARTCARD_HandleTypeDef *hsmartcard) |
Return the SMARTCARD handle state. | |
uint32_t | HAL_SMARTCARD_GetError (SMARTCARD_HandleTypeDef *hsmartcard) |
Return the SMARTCARD handle error code. |
Detailed Description
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.
Function Documentation
uint32_t HAL_SMARTCARD_GetError | ( | SMARTCARD_HandleTypeDef * | hsmartcard ) |
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 1003 of file stm32l4xx_hal_smartcard.c.
HAL_SMARTCARD_StateTypeDef HAL_SMARTCARD_GetState | ( | SMARTCARD_HandleTypeDef * | hsmartcard ) |
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:
-
SMARTCARD handle state
Definition at line 992 of file stm32l4xx_hal_smartcard.c.
Generated on Tue Jul 12 2022 10:58:18 by 1.7.2