STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches

Interrupts management. More...

Collaboration diagram for Interrupts management:

Functions

HAL_StatusTypeDef HAL_CAN_ActivateNotification (CAN_HandleTypeDef *hcan, uint32_t ActiveITs)
 Enable interrupts.
 
HAL_StatusTypeDef HAL_CAN_DeactivateNotification (CAN_HandleTypeDef *hcan, uint32_t InactiveITs)
 Disable interrupts.
 
void HAL_CAN_IRQHandler (CAN_HandleTypeDef *hcan)
 Handles CAN interrupt request.
 

Detailed Description

Interrupts management.

  ==============================================================================
                       ##### Interrupts management #####
  ==============================================================================
    [..]  This section provides functions allowing to:
      (+) HAL_CAN_ActivateNotification      : Enable interrupts
      (+) HAL_CAN_DeactivateNotification    : Disable interrupts
      (+) HAL_CAN_IRQHandler                : Handles CAN interrupt request

Function Documentation

◆ HAL_CAN_ActivateNotification()

HAL_StatusTypeDef HAL_CAN_ActivateNotification ( CAN_HandleTypeDef * hcan,
uint32_t ActiveITs )

#include <stm32f4xx_hal_can.h>

Enable interrupts.

Parameters
hcanpointer to an CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
ActiveITsindicates which interrupts will be enabled. This parameter can be any combination of
  • CAN_Interrupts.
Return values
HALstatus

Definition at line 1661 of file stm32f4xx_hal_can.c.

References __HAL_CAN_ENABLE_IT, assert_param, CAN_HandleTypeDef::ErrorCode, HAL_CAN_ERROR_NOT_INITIALIZED, HAL_CAN_STATE_LISTENING, HAL_CAN_STATE_READY, HAL_ERROR, HAL_OK, IS_CAN_IT, and CAN_HandleTypeDef::State.

◆ HAL_CAN_DeactivateNotification()

HAL_StatusTypeDef HAL_CAN_DeactivateNotification ( CAN_HandleTypeDef * hcan,
uint32_t InactiveITs )

#include <stm32f4xx_hal_can.h>

Disable interrupts.

Parameters
hcanpointer to an CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
InactiveITsindicates which interrupts will be disabled. This parameter can be any combination of
  • CAN_Interrupts.
Return values
HALstatus

Definition at line 1694 of file stm32f4xx_hal_can.c.

References __HAL_CAN_DISABLE_IT, assert_param, CAN_HandleTypeDef::ErrorCode, HAL_CAN_ERROR_NOT_INITIALIZED, HAL_CAN_STATE_LISTENING, HAL_CAN_STATE_READY, HAL_ERROR, HAL_OK, IS_CAN_IT, and CAN_HandleTypeDef::State.

◆ HAL_CAN_IRQHandler()

void HAL_CAN_IRQHandler ( CAN_HandleTypeDef * hcan)

#include <stm32f4xx_hal_can.h>

Handles CAN interrupt request.

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

Definition at line 1725 of file stm32f4xx_hal_can.c.

References __HAL_CAN_CLEAR_FLAG, CAN_FLAG_ERRI, CAN_FLAG_FF0, CAN_FLAG_FF1, CAN_FLAG_FOV0, CAN_FLAG_FOV1, CAN_FLAG_RQCP0, CAN_FLAG_RQCP1, CAN_FLAG_RQCP2, CAN_FLAG_SLAKI, CAN_FLAG_WKU, CAN_IT_BUSOFF, CAN_IT_ERROR, CAN_IT_ERROR_PASSIVE, CAN_IT_ERROR_WARNING, CAN_IT_LAST_ERROR_CODE, CAN_IT_RX_FIFO0_FULL, CAN_IT_RX_FIFO0_MSG_PENDING, CAN_IT_RX_FIFO0_OVERRUN, CAN_IT_RX_FIFO1_FULL, CAN_IT_RX_FIFO1_MSG_PENDING, CAN_IT_RX_FIFO1_OVERRUN, CAN_IT_SLEEP_ACK, CAN_IT_TX_MAILBOX_EMPTY, CAN_IT_WAKEUP, CAN_HandleTypeDef::ErrorCode, HAL_CAN_ERROR_ACK, HAL_CAN_ERROR_BD, HAL_CAN_ERROR_BOF, HAL_CAN_ERROR_BR, HAL_CAN_ERROR_CRC, HAL_CAN_ERROR_EPV, HAL_CAN_ERROR_EWG, HAL_CAN_ERROR_FOR, HAL_CAN_ERROR_NONE, HAL_CAN_ERROR_RX_FOV0, HAL_CAN_ERROR_RX_FOV1, HAL_CAN_ERROR_STF, HAL_CAN_ERROR_TX_ALST0, HAL_CAN_ERROR_TX_ALST1, HAL_CAN_ERROR_TX_ALST2, HAL_CAN_ERROR_TX_TERR0, HAL_CAN_ERROR_TX_TERR1, HAL_CAN_ERROR_TX_TERR2, HAL_CAN_ErrorCallback(), HAL_CAN_RxFifo0FullCallback(), HAL_CAN_RxFifo0MsgPendingCallback(), HAL_CAN_RxFifo1FullCallback(), HAL_CAN_RxFifo1MsgPendingCallback(), HAL_CAN_SleepCallback(), HAL_CAN_TxMailbox0AbortCallback(), HAL_CAN_TxMailbox0CompleteCallback(), HAL_CAN_TxMailbox1AbortCallback(), HAL_CAN_TxMailbox1CompleteCallback(), HAL_CAN_TxMailbox2AbortCallback(), HAL_CAN_TxMailbox2CompleteCallback(), HAL_CAN_WakeUpFromRxMsgCallback(), and CAN_HandleTypeDef::Instance.