Skip to main content

Module can

Module can 

Source

Structsยง

Bus
BusInit ๐Ÿ”’
BusStatus
Device
Diag
Filter
ID/mask filter. Set bits in mask must match; 0 = wildcard. Standard IDs use 11 bits (0..=0x7FF), extended IDs 29 bits (0..=0x1FFF_FFFF). fifo selects RX FIFO 0 or 1.
Frame

Enumsยง

BusState
Fault-confinement state, decoded from CAN_ESR.
Mode

Constantsยง

CAN_BUS_MAX ๐Ÿ”’
Max CAN controllers the kernel tracks; the device tree may populate fewer.

Staticsยง

BUSES ๐Ÿ”’
SLOTS ๐Ÿ”’
OnceCell::set_or_get writes in place, so the &'static Bus it returns stays valid for use as IRQ ctx โ€” unlike values held inside a Vec or returned from a LazyLock closure, which move into their final storage.

Functionsยง

init
kernel_dispatch ๐Ÿ”’
rx_kernel_handler ๐Ÿ”’
wire_irqs ๐Ÿ”’

Type Aliasesยง

Result