HAL CAN Generic Driver
8.2.3
IO operation functions
This section provides functions allowing to:
Transmit a CAN frame message.
Receive a CAN frame message.
Enter CAN peripheral in sleep mode.
Wake up the CAN peripheral from sleep mode.
This section contains the following APIs:
HAL_CAN_Transmit()
HAL_CAN_Transmit_IT()
HAL_CAN_Receive()
HAL_CAN_Receive_IT()
HAL_CAN_Sleep()
HAL_CAN_WakeUp()
HAL_CAN_IRQHandler()
HAL_CAN_TxCpltCallback()
HAL_CAN_RxCpltCallback()
HAL_CAN_ErrorCallback()
8.2.4
Peripheral State and Error functions
This subsection provides functions allowing to :
Check the CAN state.
Check CAN Errors detected during interrupt process
This section contains the following APIs:
HAL_CAN_GetState()
HAL_CAN_GetError()
8.2.5
Detailed description of functions
HAL_CAN_Init
Function name
Function description
Parameters
Return values
HAL_CAN_ConfigFilter
Function name
Function description
Parameters
110/1371
HAL_StatusTypeDef HAL_CAN_Init (CAN_HandleTypeDef *
hcan)
Initializes the CAN peripheral according to the specified
parameters in the CAN_InitStruct.
hcan: pointer to a CAN_HandleTypeDef structure that
contains the configuration information for the specified CAN.
HAL: status
HAL_StatusTypeDef HAL_CAN_ConfigFilter
(CAN_HandleTypeDef * hcan, CAN_FilterConfTypeDef *
sFilterConfig)
Configures the CAN reception filter according to the specified
parameters in the CAN_FilterInitStruct.
hcan: pointer to a CAN_HandleTypeDef structure that
contains the configuration information for the specified CAN.
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers