Macros | |
#define | __HAL_CAN_CANCEL_TRANSMIT(__HANDLE__, __TRANSMITMAILBOX__) |
Cancel a transmit request. More... | |
#define | __HAL_CAN_CLEAR_FLAG(__HANDLE__, __FLAG__) |
Clear the specified CAN pending flag. More... | |
#define | __HAL_CAN_DBG_FREEZE(__HANDLE__, __NEWSTATE__) |
Enable or disable the DBG Freeze for CAN. More... | |
#define | __HAL_CAN_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IER) &= ~(__INTERRUPT__)) |
Disable the specified CAN interrupts. More... | |
#define | __HAL_CAN_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IER) |= (__INTERRUPT__)) |
Enable the specified CAN interrupts. More... | |
#define | __HAL_CAN_FIFO_RELEASE(__HANDLE__, __FIFONUMBER__) |
Release the specified receive FIFO. More... | |
#define | __HAL_CAN_GET_FLAG(__HANDLE__, __FLAG__) |
Check whether the specified CAN flag is set or not. More... | |
#define | __HAL_CAN_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->IER & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check if the specified CAN interrupt source is enabled or disabled. More... | |
#define | __HAL_CAN_MSG_PENDING(__HANDLE__, __FIFONUMBER__) |
Return the number of pending received messages. More... | |
#define | __HAL_CAN_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_CAN_STATE_RESET) |
Reset CAN handle state. More... | |
#define | __HAL_CAN_TRANSMIT_STATUS(__HANDLE__, __TRANSMITMAILBOX__) |
Check the transmission status of a CAN Frame. More... | |
#define __HAL_CAN_CANCEL_TRANSMIT | ( | __HANDLE__, | |
__TRANSMITMAILBOX__ | |||
) |
Cancel a transmit request.
<strong>HANDLE</strong> | CAN Handle |
<strong>TRANSMITMAILBOX</strong> | the number of the mailbox that is used for transmission. |
None |
Definition at line 617 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Clear the specified CAN pending flag.
<strong>HANDLE</strong> | CAN Handle. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE). |
Definition at line 574 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_DBG_FREEZE | ( | __HANDLE__, | |
__NEWSTATE__ | |||
) |
Enable or disable the DBG Freeze for CAN.
<strong>HANDLE</strong> | CAN Handle |
<strong>NEWSTATE</strong> | new state of the CAN peripheral. This parameter can be: ENABLE (CAN reception/transmission is frozen during debug. Reception FIFOs can still be accessed/controlled normally) or DISABLE (CAN is working during debug). |
None |
Definition at line 631 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->IER) &= ~(__INTERRUPT__)) |
Disable the specified CAN interrupts.
<strong>HANDLE</strong> | CAN handle |
<strong>INTERRUPT</strong> | CAN Interrupt |
None |
Definition at line 505 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->IER) |= (__INTERRUPT__)) |
Enable the specified CAN interrupts.
<strong>HANDLE</strong> | CAN handle |
<strong>INTERRUPT</strong> | CAN Interrupt |
None |
Definition at line 497 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_FIFO_RELEASE | ( | __HANDLE__, | |
__FIFONUMBER__ | |||
) |
Release the specified receive FIFO.
<strong>HANDLE</strong> | CAN handle |
<strong>FIFONUMBER</strong> | Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. |
None |
Definition at line 608 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Check whether the specified CAN flag is set or not.
<strong>HANDLE</strong> | CAN Handle |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE). |
Definition at line 543 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((((__HANDLE__)->Instance->IER & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check if the specified CAN interrupt source is enabled or disabled.
<strong>HANDLE</strong> | CAN Handle |
<strong>INTERRUPT</strong> | specifies the CAN interrupt source to check. This parameter can be one of the following values:
|
The | new state of IT (TRUE or FALSE). |
Definition at line 589 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_MSG_PENDING | ( | __HANDLE__, | |
__FIFONUMBER__ | |||
) |
Return the number of pending received messages.
<strong>HANDLE</strong> | CAN handle |
<strong>FIFONUMBER</strong> | Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. |
The | number of pending message. |
Definition at line 513 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_CAN_STATE_RESET) |
Reset CAN handle state.
<strong>HANDLE</strong> | specifies the CAN Handle. |
None |
Definition at line 489 of file stm32f7xx_hal_can_legacy.h.
#define __HAL_CAN_TRANSMIT_STATUS | ( | __HANDLE__, | |
__TRANSMITMAILBOX__ | |||
) |
Check the transmission status of a CAN Frame.
<strong>HANDLE</strong> | CAN Handle |
<strong>TRANSMITMAILBOX</strong> | the number of the mailbox that is used for transmission. |
The | new status of transmission (TRUE or FALSE). |
Definition at line 597 of file stm32f7xx_hal_can_legacy.h.