CAN Peripheral State functions.
More...
CAN Peripheral State functions.
==============================================================================
##### Peripheral State and Error functions #####
==============================================================================
[..]
This subsection provides functions allowing to :
(+) HAL_CAN_GetState() : Return the CAN state.
(+) HAL_CAN_GetError() : Return the CAN error codes if any.
(+) HAL_CAN_ResetError(): Reset the CAN error codes if any.
◆ HAL_CAN_GetError()
Return the CAN error code.
- Parameters
-
hcan | pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN. |
- Return values
-
Definition at line 2411 of file stm32f4xx_hal_can.c.
◆ HAL_CAN_GetState()
Return the CAN state.
- Parameters
-
hcan | pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN. |
- Return values
-
Definition at line 2376 of file stm32f4xx_hal_can.c.
◆ HAL_CAN_ResetError()
Reset the CAN error code.
- Parameters
-
hcan | pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN. |
- Return values
-
Definition at line 2423 of file stm32f4xx_hal_can.c.