Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Peripheral State and Error functions
[CAN Exported Functions]
CAN Peripheral State functions. More...
Functions | |
HAL_CAN_StateTypeDef | HAL_CAN_GetState (CAN_HandleTypeDef *hcan) |
Return the CAN handle state. | |
uint32_t | HAL_CAN_GetError (CAN_HandleTypeDef *hcan) |
Return the CAN error code. |
Detailed Description
CAN Peripheral State functions.
============================================================================== ##### Peripheral State and Error functions ##### ============================================================================== [..] This subsection provides functions allowing to : (+) Check the CAN state. (+) Check CAN Errors detected during interrupt process.
Function Documentation
uint32_t HAL_CAN_GetError | ( | CAN_HandleTypeDef * | hcan ) |
Return the CAN error code.
- Parameters:
-
hcan,: pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
- Return values:
-
CAN Error Code
Definition at line 1248 of file stm32l4xx_hal_can.c.
HAL_CAN_StateTypeDef HAL_CAN_GetState | ( | CAN_HandleTypeDef * | hcan ) |
Return the CAN handle state.
- Parameters:
-
hcan,: pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
- Return values:
-
HAL state
Definition at line 1236 of file stm32l4xx_hal_can.c.
Generated on Tue Jul 12 2022 17:38:53 by
