TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Initialization and de-initialization functions

Initialization and de-initialization functions
[CAN Exported Functions]

Initialization and Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_CAN_Init (CAN_HandleTypeDef *hcan)
 Initialize the CAN peripheral according to the specified parameters in the CAN_InitStruct structure and initialize the associated handle.
HAL_StatusTypeDef HAL_CAN_ConfigFilter (CAN_HandleTypeDef *hcan, CAN_FilterConfTypeDef *sFilterConfig)
 Configure the CAN reception filter according to the specified parameters in the CAN_FilterInitStruct.
HAL_StatusTypeDef HAL_CAN_DeInit (CAN_HandleTypeDef *hcan)
 DeInitialize the CAN peripheral registers to their default reset values.
__weak void HAL_CAN_MspInit (CAN_HandleTypeDef *hcan)
 Initialize the CAN MSP.
__weak void HAL_CAN_MspDeInit (CAN_HandleTypeDef *hcan)
 DeInitialize the CAN MSP.

Detailed Description

Initialization and Configuration functions.

  ==============================================================================
              ##### Initialization and de-initialization functions #####
  ==============================================================================
    [..]  This section provides functions allowing to:
      (+) Initialize and configure the CAN. 
      (+) De-initialize the CAN. 
         

Function Documentation

HAL_StatusTypeDef HAL_CAN_ConfigFilter ( CAN_HandleTypeDef *  hcan,
CAN_FilterConfTypeDef *  sFilterConfig 
)

Configure the CAN reception filter according to the specified parameters in the CAN_FilterInitStruct.

Parameters:
hcan,:pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
sFilterConfig,:pointer to a CAN_FilterConfTypeDef structure that contains the filter configuration information.
Return values:
None

Definition at line 349 of file stm32l4xx_hal_can.c.

HAL_StatusTypeDef HAL_CAN_DeInit ( CAN_HandleTypeDef *  hcan )

DeInitialize 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:
HALstatus

Definition at line 449 of file stm32l4xx_hal_can.c.

HAL_StatusTypeDef HAL_CAN_Init ( CAN_HandleTypeDef *  hcan )

Initialize the CAN peripheral according to the specified parameters in the CAN_InitStruct structure and initialize the associated handle.

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

Definition at line 166 of file stm32l4xx_hal_can.c.

__weak void HAL_CAN_MspDeInit ( CAN_HandleTypeDef *  hcan )

DeInitialize the CAN MSP.

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

Definition at line 498 of file stm32l4xx_hal_can.c.

__weak void HAL_CAN_MspInit ( CAN_HandleTypeDef *  hcan )

Initialize the CAN MSP.

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

Definition at line 482 of file stm32l4xx_hal_can.c.