STM32L443xx HAL User Manual
|
Configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_CAN_ConfigFilter (CAN_HandleTypeDef *hcan, CAN_FilterTypeDef *sFilterConfig) |
Configures the CAN reception filter according to the specified parameters in the CAN_FilterInitStruct. |
Configuration functions.
============================================================================== ##### Configuration functions ##### ============================================================================== [..] This section provides functions allowing to: (+) HAL_CAN_ConfigFilter : Configure the CAN reception filters
HAL_StatusTypeDef HAL_CAN_ConfigFilter | ( | CAN_HandleTypeDef * | hcan, |
CAN_FilterTypeDef * | 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. |
sFilterConfig | pointer to a CAN_FilterTypeDef structure that contains the filter configuration information. |
None |
Definition at line 838 of file stm32l4xx_hal_can.c.
References assert_param, CAN_FILTER_ENABLE, CAN_FILTER_FIFO0, CAN_FILTERMODE_IDMASK, CAN_FILTERSCALE_16BIT, CAN_FILTERSCALE_32BIT, __CAN_HandleTypeDef::ErrorCode, CAN_FilterTypeDef::FilterActivation, CAN_FilterTypeDef::FilterBank, CAN_FilterTypeDef::FilterFIFOAssignment, CAN_FilterTypeDef::FilterIdHigh, CAN_FilterTypeDef::FilterIdLow, CAN_FilterTypeDef::FilterMaskIdHigh, CAN_FilterTypeDef::FilterMaskIdLow, CAN_FilterTypeDef::FilterMode, CAN_FilterTypeDef::FilterScale, HAL_CAN_ERROR_NOT_INITIALIZED, HAL_CAN_STATE_LISTENING, HAL_CAN_STATE_READY, __CAN_HandleTypeDef::Instance, IS_CAN_FILTER_ACTIVATION, IS_CAN_FILTER_BANK_SINGLE, IS_CAN_FILTER_FIFO, IS_CAN_FILTER_ID_HALFWORD, IS_CAN_FILTER_MODE, IS_CAN_FILTER_SCALE, CAN_FilterTypeDef::SlaveStartFilterBank, and __CAN_HandleTypeDef::State.