STM32F439xx HAL User Manual
Functions
Initialization and de-initialization functions
CAN Exported Functions

Initialization and Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_CAN_Init (CAN_HandleTypeDef *hcan)
 Initializes the CAN peripheral according to the specified parameters in the CAN_InitStruct.
HAL_StatusTypeDef HAL_CAN_DeInit (CAN_HandleTypeDef *hcan)
 Deinitializes the CAN peripheral registers to their default reset values.
__weak void HAL_CAN_MspInit (CAN_HandleTypeDef *hcan)
 Initializes the CAN MSP.
__weak void HAL_CAN_MspDeInit (CAN_HandleTypeDef *hcan)
 DeInitializes the CAN MSP.

Detailed Description

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.


Function Documentation

HAL_StatusTypeDef HAL_CAN_DeInit ( CAN_HandleTypeDef hcan)

Deinitializes the CAN peripheral registers to their default reset values.

Parameters:
hcanpointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
Return values:
HALstatus

Definition at line 378 of file stm32f4xx_hal_can.c.

References assert_param, __CAN_HandleTypeDef::ErrorCode, HAL_CAN_ERROR_NONE, HAL_CAN_MspDeInit(), HAL_CAN_STATE_RESET, HAL_CAN_Stop(), __CAN_HandleTypeDef::Instance, and __CAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_CAN_Init ( CAN_HandleTypeDef hcan)

DeInitializes the CAN MSP.

Parameters:
hcanpointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
Return values:
None

Definition at line 430 of file stm32f4xx_hal_can.c.

Referenced by HAL_CAN_DeInit().

Initializes the CAN MSP.

Parameters:
hcanpointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
Return values:
None

Definition at line 414 of file stm32f4xx_hal_can.c.

Referenced by HAL_CAN_Init().