stm32f7xx_hal_can_legacy.h
Go to the documentation of this file.
1 
36 /* Define to prevent recursive inclusion -------------------------------------*/
37 #ifndef __STM32F7xx_HAL_CAN_LEGACY_H
38 #define __STM32F7xx_HAL_CAN_LEGACY_H
39 
40 #ifdef __cplusplus
41  extern "C" {
42 #endif
43 
44 /* Includes ------------------------------------------------------------------*/
45 #include "stm32f7xx_hal_def.h"
46 
55 /* Exported types ------------------------------------------------------------*/
63 typedef enum
64 {
79 
83 typedef struct
84 {
85  uint32_t Prescaler;
88  uint32_t Mode;
91  uint32_t SJW;
96  uint32_t BS1;
99  uint32_t BS2;
102  uint32_t TTCM;
105  uint32_t ABOM;
108  uint32_t AWUM;
111  uint32_t NART;
114  uint32_t RFLM;
117  uint32_t TXFP;
120 
124 typedef struct
125 {
126  uint32_t FilterIdHigh;
130  uint32_t FilterIdLow;
134  uint32_t FilterMaskIdHigh;
139  uint32_t FilterMaskIdLow;
147  uint32_t FilterNumber;
150  uint32_t FilterMode;
153  uint32_t FilterScale;
156  uint32_t FilterActivation;
159  uint32_t BankNumber;
163 
167 typedef struct
168 {
169  uint32_t StdId;
172  uint32_t ExtId;
175  uint32_t IDE;
178  uint32_t RTR;
181  uint32_t DLC;
184  uint8_t Data[8];
188 
192 typedef struct
193 {
194  uint32_t StdId;
197  uint32_t ExtId;
200  uint32_t IDE;
203  uint32_t RTR;
206  uint32_t DLC;
209  uint8_t Data[8];
212  uint32_t FMI;
215  uint32_t FIFONumber;
219 
223 typedef struct
224 {
239  __IO uint32_t ErrorCode;
242 
247 /* Exported constants --------------------------------------------------------*/
255 #define HAL_CAN_ERROR_NONE 0x00000000U
256 #define HAL_CAN_ERROR_EWG 0x00000001U
257 #define HAL_CAN_ERROR_EPV 0x00000002U
258 #define HAL_CAN_ERROR_BOF 0x00000004U
259 #define HAL_CAN_ERROR_STF 0x00000008U
260 #define HAL_CAN_ERROR_FOR 0x00000010U
261 #define HAL_CAN_ERROR_ACK 0x00000020U
262 #define HAL_CAN_ERROR_BR 0x00000040U
263 #define HAL_CAN_ERROR_BD 0x00000080U
264 #define HAL_CAN_ERROR_CRC 0x00000100U
265 #define HAL_CAN_ERROR_FOV0 0x00000200U
266 #define HAL_CAN_ERROR_FOV1 0x00000400U
267 #define HAL_CAN_ERROR_TXFAIL 0x00000800U
275 #define CAN_INITSTATUS_FAILED ((uint8_t)0x00)
276 #define CAN_INITSTATUS_SUCCESS ((uint8_t)0x01)
284 #define CAN_MODE_NORMAL 0x00000000U
285 #define CAN_MODE_LOOPBACK ((uint32_t)CAN_BTR_LBKM)
286 #define CAN_MODE_SILENT ((uint32_t)CAN_BTR_SILM)
287 #define CAN_MODE_SILENT_LOOPBACK ((uint32_t)(CAN_BTR_LBKM | CAN_BTR_SILM))
295 #define CAN_SJW_1TQ 0x00000000U
296 #define CAN_SJW_2TQ ((uint32_t)CAN_BTR_SJW_0)
297 #define CAN_SJW_3TQ ((uint32_t)CAN_BTR_SJW_1)
298 #define CAN_SJW_4TQ ((uint32_t)CAN_BTR_SJW)
306 #define CAN_BS1_1TQ 0x00000000U
307 #define CAN_BS1_2TQ ((uint32_t)CAN_BTR_TS1_0)
308 #define CAN_BS1_3TQ ((uint32_t)CAN_BTR_TS1_1)
309 #define CAN_BS1_4TQ ((uint32_t)(CAN_BTR_TS1_1 | CAN_BTR_TS1_0))
310 #define CAN_BS1_5TQ ((uint32_t)CAN_BTR_TS1_2)
311 #define CAN_BS1_6TQ ((uint32_t)(CAN_BTR_TS1_2 | CAN_BTR_TS1_0))
312 #define CAN_BS1_7TQ ((uint32_t)(CAN_BTR_TS1_2 | CAN_BTR_TS1_1))
313 #define CAN_BS1_8TQ ((uint32_t)(CAN_BTR_TS1_2 | CAN_BTR_TS1_1 | CAN_BTR_TS1_0))
314 #define CAN_BS1_9TQ ((uint32_t)CAN_BTR_TS1_3)
315 #define CAN_BS1_10TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_0))
316 #define CAN_BS1_11TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_1))
317 #define CAN_BS1_12TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_1 | CAN_BTR_TS1_0))
318 #define CAN_BS1_13TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_2))
319 #define CAN_BS1_14TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_2 | CAN_BTR_TS1_0))
320 #define CAN_BS1_15TQ ((uint32_t)(CAN_BTR_TS1_3 | CAN_BTR_TS1_2 | CAN_BTR_TS1_1))
321 #define CAN_BS1_16TQ ((uint32_t)CAN_BTR_TS1)
329 #define CAN_BS2_1TQ 0x00000000U
330 #define CAN_BS2_2TQ ((uint32_t)CAN_BTR_TS2_0)
331 #define CAN_BS2_3TQ ((uint32_t)CAN_BTR_TS2_1)
332 #define CAN_BS2_4TQ ((uint32_t)(CAN_BTR_TS2_1 | CAN_BTR_TS2_0))
333 #define CAN_BS2_5TQ ((uint32_t)CAN_BTR_TS2_2)
334 #define CAN_BS2_6TQ ((uint32_t)(CAN_BTR_TS2_2 | CAN_BTR_TS2_0))
335 #define CAN_BS2_7TQ ((uint32_t)(CAN_BTR_TS2_2 | CAN_BTR_TS2_1))
336 #define CAN_BS2_8TQ ((uint32_t)CAN_BTR_TS2)
344 #define CAN_FILTERMODE_IDMASK ((uint8_t)0x00)
345 #define CAN_FILTERMODE_IDLIST ((uint8_t)0x01)
353 #define CAN_FILTERSCALE_16BIT ((uint8_t)0x00)
354 #define CAN_FILTERSCALE_32BIT ((uint8_t)0x01)
362 #define CAN_FILTER_FIFO0 ((uint8_t)0x00)
363 #define CAN_FILTER_FIFO1 ((uint8_t)0x01)
371 #define CAN_ID_STD 0x00000000U
372 #define CAN_ID_EXT 0x00000004U
380 #define CAN_RTR_DATA 0x00000000U
381 #define CAN_RTR_REMOTE 0x00000002U
389 #define CAN_FIFO0 ((uint8_t)0x00)
390 #define CAN_FIFO1 ((uint8_t)0x01)
398 /* If the flag is 0x3XXXXXXX, it means that it can be used with CAN_GetFlagStatus()
399  and CAN_ClearFlag() functions. */
400 /* If the flag is 0x1XXXXXXX, it means that it can only be used with
401  CAN_GetFlagStatus() function. */
402 
403 /* Transmit Flags */
404 #define CAN_FLAG_RQCP0 0x00000500U
405 #define CAN_FLAG_RQCP1 0x00000508U
406 #define CAN_FLAG_RQCP2 0x00000510U
407 #define CAN_FLAG_TXOK0 0x00000501U
408 #define CAN_FLAG_TXOK1 0x00000509U
409 #define CAN_FLAG_TXOK2 0x00000511U
410 #define CAN_FLAG_TME0 0x0000051AU
411 #define CAN_FLAG_TME1 0x0000051BU
412 #define CAN_FLAG_TME2 0x0000051CU
414 /* Receive Flags */
415 #define CAN_FLAG_FF0 0x00000203U
416 #define CAN_FLAG_FOV0 0x00000204U
418 #define CAN_FLAG_FF1 0x00000403U
419 #define CAN_FLAG_FOV1 0x00000404U
421 /* Operating Mode Flags */
422 #define CAN_FLAG_INAK 0x00000100U
423 #define CAN_FLAG_SLAK 0x00000101U
424 #define CAN_FLAG_ERRI 0x00000102U
425 #define CAN_FLAG_WKU 0x00000103U
426 #define CAN_FLAG_SLAKI 0x00000104U
428 /* @note When SLAK interrupt is disabled (SLKIE=0), no polling on SLAKI is possible.
429  In this case the SLAK bit can be polled.*/
430 
431 /* Error Flags */
432 #define CAN_FLAG_EWG 0x00000300U
433 #define CAN_FLAG_EPV 0x00000301U
434 #define CAN_FLAG_BOF 0x00000302U
442 #define CAN_IT_TME CAN_IER_TMEIE
444 /* Receive Interrupts */
445 #define CAN_IT_FMP0 CAN_IER_FMPIE0
446 #define CAN_IT_FF0 CAN_IER_FFIE0
447 #define CAN_IT_FOV0 CAN_IER_FOVIE0
448 #define CAN_IT_FMP1 CAN_IER_FMPIE1
449 #define CAN_IT_FF1 CAN_IER_FFIE1
450 #define CAN_IT_FOV1 CAN_IER_FOVIE1
452 /* Operating Mode Interrupts */
453 #define CAN_IT_WKU CAN_IER_WKUIE
454 #define CAN_IT_SLK CAN_IER_SLKIE
456 /* Error Interrupts */
457 #define CAN_IT_EWG CAN_IER_EWGIE
458 #define CAN_IT_EPV CAN_IER_EPVIE
459 #define CAN_IT_BOF CAN_IER_BOFIE
460 #define CAN_IT_LEC CAN_IER_LECIE
461 #define CAN_IT_ERR CAN_IER_ERRIE
469 #define CAN_TXMAILBOX_0 ((uint8_t)0x00)
470 #define CAN_TXMAILBOX_1 ((uint8_t)0x01)
471 #define CAN_TXMAILBOX_2 ((uint8_t)0x02)
472 
480 /* Exported macro ------------------------------------------------------------*/
489 #define __HAL_CAN_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_CAN_STATE_RESET)
490 
497 #define __HAL_CAN_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IER) |= (__INTERRUPT__))
498 
505 #define __HAL_CAN_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IER) &= ~(__INTERRUPT__))
506 
513 #define __HAL_CAN_MSG_PENDING(__HANDLE__, __FIFONUMBER__) (((__FIFONUMBER__) == CAN_FIFO0)? \
514 ((uint8_t)((__HANDLE__)->Instance->RF0R&0x03U)) : ((uint8_t)((__HANDLE__)->Instance->RF1R&0x03U)))
515 
543 #define __HAL_CAN_GET_FLAG(__HANDLE__, __FLAG__) \
544 ((((__FLAG__) >> 8U) == 5U)? ((((__HANDLE__)->Instance->TSR) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))): \
545  (((__FLAG__) >> 8U) == 2U)? ((((__HANDLE__)->Instance->RF0R) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))): \
546  (((__FLAG__) >> 8U) == 4U)? ((((__HANDLE__)->Instance->RF1R) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))): \
547  (((__FLAG__) >> 8U) == 1U)? ((((__HANDLE__)->Instance->MSR) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))): \
548  ((((__HANDLE__)->Instance->ESR) & (1U << ((__FLAG__) & CAN_FLAG_MASK))) == (1U << ((__FLAG__) & CAN_FLAG_MASK))))
549 
574 #define __HAL_CAN_CLEAR_FLAG(__HANDLE__, __FLAG__) \
575 ((((__FLAG__) >> 8U) == 5U)? (((__HANDLE__)->Instance->TSR) = (1U << ((__FLAG__) & CAN_FLAG_MASK))): \
576  (((__FLAG__) >> 8U) == 2U)? (((__HANDLE__)->Instance->RF0R) = (1U << ((__FLAG__) & CAN_FLAG_MASK))): \
577  (((__FLAG__) >> 8U) == 4U)? (((__HANDLE__)->Instance->RF1R) = (1U << ((__FLAG__) & CAN_FLAG_MASK))): \
578  (((__HANDLE__)->Instance->MSR) = (1U << ((__FLAG__) & CAN_FLAG_MASK))))
579 
589 #define __HAL_CAN_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->IER & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
590 
597 #define __HAL_CAN_TRANSMIT_STATUS(__HANDLE__, __TRANSMITMAILBOX__)\
598 (((__TRANSMITMAILBOX__) == CAN_TXMAILBOX_0)? ((((__HANDLE__)->Instance->TSR) & (CAN_TSR_RQCP0 | CAN_TSR_TXOK0 | CAN_TSR_TME0)) == (CAN_TSR_RQCP0 | CAN_TSR_TXOK0 | CAN_TSR_TME0)) :\
599  ((__TRANSMITMAILBOX__) == CAN_TXMAILBOX_1)? ((((__HANDLE__)->Instance->TSR) & (CAN_TSR_RQCP1 | CAN_TSR_TXOK1 | CAN_TSR_TME1)) == (CAN_TSR_RQCP1 | CAN_TSR_TXOK1 | CAN_TSR_TME1)) :\
600  ((((__HANDLE__)->Instance->TSR) & (CAN_TSR_RQCP2 | CAN_TSR_TXOK2 | CAN_TSR_TME2)) == (CAN_TSR_RQCP2 | CAN_TSR_TXOK2 | CAN_TSR_TME2)))
601 
608 #define __HAL_CAN_FIFO_RELEASE(__HANDLE__, __FIFONUMBER__) (((__FIFONUMBER__) == CAN_FIFO0)? \
609 ((__HANDLE__)->Instance->RF0R = CAN_RF0R_RFOM0) : ((__HANDLE__)->Instance->RF1R = CAN_RF1R_RFOM1))
610 
617 #define __HAL_CAN_CANCEL_TRANSMIT(__HANDLE__, __TRANSMITMAILBOX__)\
618 (((__TRANSMITMAILBOX__) == CAN_TXMAILBOX_0)? ((__HANDLE__)->Instance->TSR = CAN_TSR_ABRQ0) :\
619  ((__TRANSMITMAILBOX__) == CAN_TXMAILBOX_1)? ((__HANDLE__)->Instance->TSR = CAN_TSR_ABRQ1) :\
620  ((__HANDLE__)->Instance->TSR = CAN_TSR_ABRQ2))
621 
631 #define __HAL_CAN_DBG_FREEZE(__HANDLE__, __NEWSTATE__) (((__NEWSTATE__) == ENABLE)? \
632 ((__HANDLE__)->Instance->MCR |= CAN_MCR_DBF) : ((__HANDLE__)->Instance->MCR &= ~CAN_MCR_DBF))
633 
638 /* Exported functions --------------------------------------------------------*/
646 /* Initialization/de-initialization functions ***********************************/
659 /* I/O operation functions ******************************************************/
660 HAL_StatusTypeDef HAL_CAN_Transmit(CAN_HandleTypeDef *hcan, uint32_t Timeout);
662 HAL_StatusTypeDef HAL_CAN_Receive(CAN_HandleTypeDef *hcan, uint8_t FIFONumber, uint32_t Timeout);
663 HAL_StatusTypeDef HAL_CAN_Receive_IT(CAN_HandleTypeDef *hcan, uint8_t FIFONumber);
677 /* Peripheral State functions ***************************************************/
678 uint32_t HAL_CAN_GetError(CAN_HandleTypeDef *hcan);
688 /* Private types -------------------------------------------------------------*/
697 /* Private variables ---------------------------------------------------------*/
706 /* Private constants ---------------------------------------------------------*/
710 #define CAN_TXSTATUS_NOMAILBOX ((uint8_t)0x04)
711 #define CAN_FLAG_MASK 0x000000FFU
712 
716 /* Private macros ------------------------------------------------------------*/
720 #define IS_CAN_MODE(MODE) (((MODE) == CAN_MODE_NORMAL) || \
721  ((MODE) == CAN_MODE_LOOPBACK)|| \
722  ((MODE) == CAN_MODE_SILENT) || \
723  ((MODE) == CAN_MODE_SILENT_LOOPBACK))
724 #define IS_CAN_SJW(SJW) (((SJW) == CAN_SJW_1TQ) || ((SJW) == CAN_SJW_2TQ)|| \
725  ((SJW) == CAN_SJW_3TQ) || ((SJW) == CAN_SJW_4TQ))
726 #define IS_CAN_BS1(BS1) ((BS1) <= CAN_BS1_16TQ)
727 #define IS_CAN_BS2(BS2) ((BS2) <= CAN_BS2_8TQ)
728 #define IS_CAN_PRESCALER(PRESCALER) (((PRESCALER) >= 1U) && ((PRESCALER) <= 1024U))
729 #define IS_CAN_FILTER_NUMBER(NUMBER) ((NUMBER) <= 27U)
730 #define IS_CAN_FILTER_MODE(MODE) (((MODE) == CAN_FILTERMODE_IDMASK) || \
731  ((MODE) == CAN_FILTERMODE_IDLIST))
732 #define IS_CAN_FILTER_SCALE(SCALE) (((SCALE) == CAN_FILTERSCALE_16BIT) || \
733  ((SCALE) == CAN_FILTERSCALE_32BIT))
734 #define IS_CAN_FILTER_FIFO(FIFO) (((FIFO) == CAN_FILTER_FIFO0) || \
735  ((FIFO) == CAN_FILTER_FIFO1))
736 #define IS_CAN_BANKNUMBER(BANKNUMBER) ((BANKNUMBER) <= 28U)
737 
738 #define IS_CAN_TRANSMITMAILBOX(TRANSMITMAILBOX) ((TRANSMITMAILBOX) <= ((uint8_t)0x02))
739 #define IS_CAN_STDID(STDID) ((STDID) <= 0x7FFU)
740 #define IS_CAN_EXTID(EXTID) ((EXTID) <= 0x1FFFFFFFU)
741 #define IS_CAN_DLC(DLC) ((DLC) <= ((uint8_t)0x08))
742 
743 #define IS_CAN_IDTYPE(IDTYPE) (((IDTYPE) == CAN_ID_STD) || \
744  ((IDTYPE) == CAN_ID_EXT))
745 #define IS_CAN_RTR(RTR) (((RTR) == CAN_RTR_DATA) || ((RTR) == CAN_RTR_REMOTE))
746 #define IS_CAN_FIFO(FIFO) (((FIFO) == CAN_FIFO0) || ((FIFO) == CAN_FIFO1))
747 
752 /* Private functions ---------------------------------------------------------*/
770 #ifdef __cplusplus
771 }
772 #endif
773 
774 #endif /* __STM32F7xx_HAL_CAN_LEGACY_H */
775 
776 
777 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
CanTxMsgTypeDef::DLC
uint32_t DLC
Definition: stm32f7xx_hal_can_legacy.h:181
CanRxMsgTypeDef::DLC
uint32_t DLC
Definition: stm32f7xx_hal_can_legacy.h:206
CanRxMsgTypeDef::RTR
uint32_t RTR
Definition: stm32f7xx_hal_can_legacy.h:203
CAN_HandleTypeDef::pRx1Msg
CanRxMsgTypeDef * pRx1Msg
Definition: stm32f7xx_hal_can_legacy.h:233
HAL_CAN_Sleep
HAL_StatusTypeDef HAL_CAN_Sleep(CAN_HandleTypeDef *hcan)
__IO
#define __IO
Definition: imxrt1050/imxrt1050-evkb/CMSIS/core_cm7.h:237
CAN_InitTypeDef::SJW
uint32_t SJW
Definition: stm32f7xx_hal_can_legacy.h:91
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:40
HAL_CAN_STATE_READY
@ HAL_CAN_STATE_READY
Definition: stm32f7xx_hal_can_legacy.h:66
HAL_CAN_MspInit
void HAL_CAN_MspInit(CAN_HandleTypeDef *hcan)
CanRxMsgTypeDef::ExtId
uint32_t ExtId
Definition: stm32f7xx_hal_can_legacy.h:197
HAL_CAN_Transmit
HAL_StatusTypeDef HAL_CAN_Transmit(CAN_HandleTypeDef *hcan, uint32_t Timeout)
CAN_InitTypeDef::AWUM
uint32_t AWUM
Definition: stm32f7xx_hal_can_legacy.h:108
CAN_InitTypeDef
CAN init structure definition.
Definition: stm32f7xx_hal_can_legacy.h:83
HAL_CAN_Init
HAL_StatusTypeDef HAL_CAN_Init(CAN_HandleTypeDef *hcan)
CAN_HandleTypeDef::Instance
CAN_TypeDef * Instance
Definition: stm32f7xx_hal_can_legacy.h:225
CAN_FilterConfTypeDef::FilterScale
uint32_t FilterScale
Definition: stm32f7xx_hal_can_legacy.h:153
CAN_InitTypeDef::BS1
uint32_t BS1
Definition: stm32f7xx_hal_can_legacy.h:96
CAN_TypeDef
Controller Area Network.
Definition: stm32f407xx.h:250
HAL_CAN_Receive_IT
HAL_StatusTypeDef HAL_CAN_Receive_IT(CAN_HandleTypeDef *hcan, uint8_t FIFONumber)
CAN_InitTypeDef::Prescaler
uint32_t Prescaler
Definition: stm32f7xx_hal_can_legacy.h:85
CAN_FilterConfTypeDef::FilterMaskIdHigh
uint32_t FilterMaskIdHigh
Definition: stm32f7xx_hal_can_legacy.h:134
CAN_HandleTypeDef::pRxMsg
CanRxMsgTypeDef * pRxMsg
Definition: stm32f7xx_hal_can_legacy.h:231
CAN_InitTypeDef::TTCM
uint32_t TTCM
Definition: stm32f7xx_hal_can_legacy.h:102
HAL_CAN_DeInit
HAL_StatusTypeDef HAL_CAN_DeInit(CAN_HandleTypeDef *hcan)
HAL_CAN_STATE_RESET
@ HAL_CAN_STATE_RESET
Definition: stm32f7xx_hal_can_legacy.h:65
CAN_FilterConfTypeDef::FilterIdHigh
uint32_t FilterIdHigh
Definition: stm32f7xx_hal_can_legacy.h:126
HAL_LockTypeDef
HAL_LockTypeDef
HAL Lock structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:51
HAL_CAN_RxCpltCallback
void HAL_CAN_RxCpltCallback(CAN_HandleTypeDef *hcan)
CAN_FilterConfTypeDef
CAN filter configuration structure definition.
Definition: stm32f7xx_hal_can_legacy.h:124
CAN_HandleTypeDef
CAN handle Structure definition.
Definition: stm32f7xx_hal_can_legacy.h:223
HAL_CAN_MspDeInit
void HAL_CAN_MspDeInit(CAN_HandleTypeDef *hcan)
CAN_FilterConfTypeDef::FilterMaskIdLow
uint32_t FilterMaskIdLow
Definition: stm32f7xx_hal_can_legacy.h:139
CAN_FilterConfTypeDef::BankNumber
uint32_t BankNumber
Definition: stm32f7xx_hal_can_legacy.h:159
CAN_HandleTypeDef::Init
CAN_InitTypeDef Init
Definition: stm32f7xx_hal_can_legacy.h:227
CAN_HandleTypeDef::pTxMsg
CanTxMsgTypeDef * pTxMsg
Definition: stm32f7xx_hal_can_legacy.h:229
CanTxMsgTypeDef::StdId
uint32_t StdId
Definition: stm32f7xx_hal_can_legacy.h:169
CAN_FilterConfTypeDef::FilterIdLow
uint32_t FilterIdLow
Definition: stm32f7xx_hal_can_legacy.h:130
HAL_CAN_ConfigFilter
HAL_StatusTypeDef HAL_CAN_ConfigFilter(CAN_HandleTypeDef *hcan, CAN_FilterConfTypeDef *sFilterConfig)
HAL_CAN_STATE_BUSY_RX0_RX1
@ HAL_CAN_STATE_BUSY_RX0_RX1
Definition: stm32f7xx_hal_can_legacy.h:73
HAL_CAN_STATE_BUSY_RX1
@ HAL_CAN_STATE_BUSY_RX1
Definition: stm32f7xx_hal_can_legacy.h:70
CanRxMsgTypeDef::StdId
uint32_t StdId
Definition: stm32f7xx_hal_can_legacy.h:194
CAN_InitTypeDef::TXFP
uint32_t TXFP
Definition: stm32f7xx_hal_can_legacy.h:117
HAL_CAN_STATE_BUSY
@ HAL_CAN_STATE_BUSY
Definition: stm32f7xx_hal_can_legacy.h:67
CanTxMsgTypeDef
CAN Tx message structure definition.
Definition: stm32f7xx_hal_can_legacy.h:167
CAN_HandleTypeDef::Lock
HAL_LockTypeDef Lock
Definition: stm32f7xx_hal_can_legacy.h:237
CAN_FilterConfTypeDef::FilterActivation
uint32_t FilterActivation
Definition: stm32f7xx_hal_can_legacy.h:156
CanTxMsgTypeDef::IDE
uint32_t IDE
Definition: stm32f7xx_hal_can_legacy.h:175
CAN_FilterConfTypeDef::FilterNumber
uint32_t FilterNumber
Definition: stm32f7xx_hal_can_legacy.h:147
CAN_InitTypeDef::BS2
uint32_t BS2
Definition: stm32f7xx_hal_can_legacy.h:99
CAN_InitTypeDef::RFLM
uint32_t RFLM
Definition: stm32f7xx_hal_can_legacy.h:114
CAN_InitTypeDef::NART
uint32_t NART
Definition: stm32f7xx_hal_can_legacy.h:111
HAL_CAN_Receive
HAL_StatusTypeDef HAL_CAN_Receive(CAN_HandleTypeDef *hcan, uint8_t FIFONumber, uint32_t Timeout)
HAL_CAN_STATE_BUSY_TX_RX1
@ HAL_CAN_STATE_BUSY_TX_RX1
Definition: stm32f7xx_hal_can_legacy.h:72
HAL_CAN_STATE_BUSY_RX0
@ HAL_CAN_STATE_BUSY_RX0
Definition: stm32f7xx_hal_can_legacy.h:69
CanTxMsgTypeDef::RTR
uint32_t RTR
Definition: stm32f7xx_hal_can_legacy.h:178
CanRxMsgTypeDef
CAN Rx message structure definition.
Definition: stm32f7xx_hal_can_legacy.h:192
CanRxMsgTypeDef::FIFONumber
uint32_t FIFONumber
Definition: stm32f7xx_hal_can_legacy.h:215
CAN_InitTypeDef::ABOM
uint32_t ABOM
Definition: stm32f7xx_hal_can_legacy.h:105
CAN_HandleTypeDef::State
__IO HAL_CAN_StateTypeDef State
Definition: stm32f7xx_hal_can_legacy.h:235
CAN_InitTypeDef::Mode
uint32_t Mode
Definition: stm32f7xx_hal_can_legacy.h:88
HAL_CAN_GetError
uint32_t HAL_CAN_GetError(CAN_HandleTypeDef *hcan)
stm32f7xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
CanRxMsgTypeDef::FMI
uint32_t FMI
Definition: stm32f7xx_hal_can_legacy.h:212
HAL_CAN_StateTypeDef
HAL_CAN_StateTypeDef
HAL State structures definition.
Definition: stm32f7xx_hal_can_legacy.h:63
CanTxMsgTypeDef::ExtId
uint32_t ExtId
Definition: stm32f7xx_hal_can_legacy.h:172
HAL_CAN_IRQHandler
void HAL_CAN_IRQHandler(CAN_HandleTypeDef *hcan)
HAL_CAN_TxCpltCallback
void HAL_CAN_TxCpltCallback(CAN_HandleTypeDef *hcan)
HAL_CAN_Transmit_IT
HAL_StatusTypeDef HAL_CAN_Transmit_IT(CAN_HandleTypeDef *hcan)
HAL_CAN_WakeUp
HAL_StatusTypeDef HAL_CAN_WakeUp(CAN_HandleTypeDef *hcan)
HAL_CAN_STATE_ERROR
@ HAL_CAN_STATE_ERROR
Definition: stm32f7xx_hal_can_legacy.h:76
HAL_CAN_STATE_BUSY_TX_RX0
@ HAL_CAN_STATE_BUSY_TX_RX0
Definition: stm32f7xx_hal_can_legacy.h:71
CAN_HandleTypeDef::ErrorCode
__IO uint32_t ErrorCode
Definition: stm32f7xx_hal_can_legacy.h:239
HAL_CAN_STATE_BUSY_TX_RX0_RX1
@ HAL_CAN_STATE_BUSY_TX_RX0_RX1
Definition: stm32f7xx_hal_can_legacy.h:74
HAL_CAN_STATE_TIMEOUT
@ HAL_CAN_STATE_TIMEOUT
Definition: stm32f7xx_hal_can_legacy.h:75
CanRxMsgTypeDef::IDE
uint32_t IDE
Definition: stm32f7xx_hal_can_legacy.h:200
CAN_FilterConfTypeDef::FilterFIFOAssignment
uint32_t FilterFIFOAssignment
Definition: stm32f7xx_hal_can_legacy.h:144
HAL_CAN_STATE_BUSY_TX
@ HAL_CAN_STATE_BUSY_TX
Definition: stm32f7xx_hal_can_legacy.h:68
HAL_CAN_GetState
HAL_CAN_StateTypeDef HAL_CAN_GetState(CAN_HandleTypeDef *hcan)
HAL_CAN_ErrorCallback
void HAL_CAN_ErrorCallback(CAN_HandleTypeDef *hcan)
CAN_FilterConfTypeDef::FilterMode
uint32_t FilterMode
Definition: stm32f7xx_hal_can_legacy.h:150


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:53