STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Initialization and de-initialization functions

Initialization and Configuration functions. More...

Collaboration diagram for Initialization and de-initialization functions:

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_ConfigFilter (CAN_HandleTypeDef *hcan, CAN_FilterConfTypeDef *sFilterConfig)
 
HAL_StatusTypeDef HAL_CAN_DeInit (CAN_HandleTypeDef *hcan)
 Deinitializes the CAN peripheral registers to their default reset values.
 
void HAL_CAN_MspInit (CAN_HandleTypeDef *hcan)
 Initializes the CAN MSP.
 
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_CAN_Init()

HAL_StatusTypeDef HAL_CAN_Init ( CAN_HandleTypeDef * hcan)

◆ HAL_CAN_ConfigFilter()

HAL_StatusTypeDef HAL_CAN_ConfigFilter ( CAN_HandleTypeDef * hcan,
CAN_FilterConfTypeDef * sFilterConfig )

◆ HAL_CAN_DeInit()

HAL_StatusTypeDef HAL_CAN_DeInit ( CAN_HandleTypeDef * hcan)

#include <stm32f4xx_hal_can_legacy.h>

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 460 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(), HAL_ERROR, HAL_OK, CAN_HandleTypeDef::Instance, and CAN_HandleTypeDef::State.

◆ HAL_CAN_MspInit()

__weak void HAL_CAN_MspInit ( CAN_HandleTypeDef * hcan)

#include <stm32f4xx_hal_can_legacy.h>

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 507 of file stm32f4xx_hal_can.c.

References UNUSED.

Referenced by HAL_CAN_Init().

◆ HAL_CAN_MspDeInit()

__weak void HAL_CAN_MspDeInit ( CAN_HandleTypeDef * hcan)

#include <stm32f4xx_hal_can_legacy.h>

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 523 of file stm32f4xx_hal_can.c.

References UNUSED.

Referenced by HAL_CAN_DeInit().