F4 bxCAN public API.
More...
Go to the source code of this file.
◆ PHAL_CAN_16MHZ_1M
| #define PHAL_CAN_16MHZ_1M (0x033a0000) |
◆ PHAL_CAN_16MHZ_250K
| #define PHAL_CAN_16MHZ_250K (0x003a0003) |
◆ PHAL_CAN_16MHZ_500K
| #define PHAL_CAN_16MHZ_500K (0x033a0001) |
◆ PHAL_CAN_24MHZ_1M
| #define PHAL_CAN_24MHZ_1M (0x03270001) |
◆ PHAL_CAN_24MHZ_250K
| #define PHAL_CAN_24MHZ_250K (0x003a0005) |
◆ PHAL_CAN_24MHZ_500K
| #define PHAL_CAN_24MHZ_500K (0x033a0002) |
◆ PHAL_CAN_25MHZ_500K
| #define PHAL_CAN_25MHZ_500K (0x01160004) |
◆ PHAL_CAN_36MHZ_1M
| #define PHAL_CAN_36MHZ_1M (0x033c0001) |
◆ PHAL_CAN_36MHZ_250K
| #define PHAL_CAN_36MHZ_250K (0x003a0008) |
◆ PHAL_CAN_36MHZ_500K
| #define PHAL_CAN_36MHZ_500K (0x03270005) |
◆ PHAL_CAN_42MHZ_1M
| #define PHAL_CAN_42MHZ_1M (0x034e0001) |
◆ PHAL_CAN_42MHZ_500K
| #define PHAL_CAN_42MHZ_500K (0x034e0003) |
◆ PHAL_CAN_MAX_NUM_SID_FILTER
| #define PHAL_CAN_MAX_NUM_SID_FILTER (28U) |
◆ PHAL_CAN_MAX_NUM_XID_FILTER
| #define PHAL_CAN_MAX_NUM_XID_FILTER (8U) |
◆ PHAL_FDCAN_BaudRate_t
Supported baud rates for PER F4 CAN HAL.
| Enumerator |
|---|
| FDCAN_BAUD_250K | |
| FDCAN_BAUD_500K | |
| FDCAN_BAUD_1M | |
◆ PHAL_CAN_init()
Initialize the bus with an accept-all FIFO0 filter, waiting for hardware acknowledgement. Bus must be CAN1, CAN2 or CAN3 (nullptr is rejected). Return false for an invalid bus or unsupported clock/baud combination, before changing hardware.
◆ PHAL_CAN_rxCallback()
◆ PHAL_CAN_send()
Queue a frame in any free mailbox; return false immediately if none is free.
◆ PHAL_CAN_setFilters()
| bool PHAL_CAN_setFilters |
( |
CAN_TypeDef * | bus, |
|
|
const uint32_t * | sid_list, |
|
|
uint32_t | num_sid, |
|
|
const uint32_t * | xid_list, |
|
|
uint32_t | num_xid ) |
Replace this bus's filters. Empty lists accept all IDs; invalid input returns false.
◆ PHAL_CAN_txCallback()
| void PHAL_CAN_txCallback |
( |
CAN_TypeDef * | can | ) |
|
|
extern |
◆ PHAL_CAN_txFifoFree()
| bool PHAL_CAN_txFifoFree |
( |
const CAN_TypeDef * | bus | ) |
|
Return true if a mailbox is free; false for an invalid bus (including nullptr).