HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
StmCan.h File Reference

STM32 CAN wrapper — wraps bxCAN (CAN_HandleTypeDef) or FDCAN (FDCAN_HandleTypeDef) for BaseCan interface. More...

#include "BaseCan.h"
#include "StmTypes.h"
Include dependency graph for StmCan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StmCan
 STM32 CAN implementation. More...
 

Enumerations

enum class  StmCanVariant : hf_u8_t { BXCAN , FDCAN }
 Which CAN peripheral variant is in use. More...
 

Detailed Description

STM32 CAN wrapper — wraps bxCAN (CAN_HandleTypeDef) or FDCAN (FDCAN_HandleTypeDef) for BaseCan interface.

Users configure CAN/FDCAN in STM32CubeMX, then pass the handle here. Basic CAN 2.0 is supported out of the box; FDCAN flags are available but data-phase bitrate configuration requires the FDCAN HAL extensions.

Author
HardFOC
Date
2025

Enumeration Type Documentation

◆ StmCanVariant

enum class StmCanVariant : hf_u8_t
strong

Which CAN peripheral variant is in use.

Enumerator
BXCAN 

Classic bxCAN (STM32F1/F2/F4/L4)

FDCAN 

FDCAN (STM32G0/G4/H7/L5/U5/WB/WL)