Module stm32h7xx_hal::can
source · [−]Expand description
CAN and FD-CAN support.
The module implements CAN and CAN-FD support using the fdcan crate.
Message RAM
The Message RAM allocation is fixed as follows
Section | Size |
---|---|
Standard 11-bit filters | 28 |
Extended 29-bit filters | 8 |
Rx FIFO 0 | 3 elements |
Rx FIFO 1 | 3 elements |
Tx Buffers | 3 elements |
Usage
In Cargo.toml
fdcan = "^0.1"
Initialisation
use stm32h7xx_hal::prelude::*;
use fdcan::{
config::NominalBitTiming,
filter::{StandardFilter, StandardFilterSlot},
id::StandardId,
FdCan,
};
let mut can: FdCan<_, fdcan::ConfigMode> = dp.FDCAN1.fdcan(tx, rx, fdcan_prec);
Structs
Storage type for the CAN controller
Traits
Extension trait for CAN controller