Initialization and Configuration functions.
More...
Initialization and Configuration functions.
==============================================================================
##### Initialization and de-initialization functions #####
==============================================================================
[..] This section provides functions allowing to:
(+) HAL_CAN_Init : Initialize and configure the CAN.
(+) HAL_CAN_DeInit : De-initialize the CAN.
(+) HAL_CAN_MspInit : Initialize the CAN MSP.
(+) HAL_CAN_MspDeInit : DeInitialize the CAN MSP.
◆ HAL_CAN_DeInit()
Deinitializes the CAN peripheral registers to their default reset values.
- Parameters
-
hcan | pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN. |
- Return values
-
Definition at line 460 of file stm32f4xx_hal_can.c.
◆ HAL_CAN_Init()
Initializes the CAN peripheral according to the specified parameters in the CAN_InitStruct.
- Parameters
-
hcan | pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN. |
- Return values
-
Definition at line 275 of file stm32f4xx_hal_can.c.
◆ HAL_CAN_MspDeInit()
DeInitializes the CAN MSP.
- Parameters
-
hcan | pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN. |
- Return values
-
Definition at line 523 of file stm32f4xx_hal_can.c.
◆ HAL_CAN_MspInit()
Initializes the CAN MSP.
- Parameters
-
hcan | pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN. |
- Return values
-
Definition at line 507 of file stm32f4xx_hal_can.c.
◆ HAL_CAN_RegisterCallback()
Register a CAN CallBack. To be used instead of the weak predefined callback.
- Parameters
-
hcan | pointer to a CAN_HandleTypeDef structure that contains the configuration information for CAN module |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
- Return values
-
Definition at line 559 of file stm32f4xx_hal_can.c.
◆ HAL_CAN_UnRegisterCallback()
Unregister a CAN CallBack. CAN callback is redirected to the weak predefined callback.
- Parameters
-
hcan | pointer to a CAN_HandleTypeDef structure that contains the configuration information for CAN module |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
- Return values
-
Definition at line 702 of file stm32f4xx_hal_can.c.