Struct stm32f1xx_hal::can::Can
source · pub struct Can<Instance> { /* private fields */ }
Expand description
Interface to the CAN peripheral.
Implementations§
source§impl<Instance> Can<Instance>where
Instance: Enable,
impl<Instance> Can<Instance>where
Instance: Enable,
sourcepub fn new(can: Instance, _usb: USB) -> Can<Instance>
pub fn new(can: Instance, _usb: USB) -> Can<Instance>
Creates a CAN interaface.
CAN shares SRAM with the USB peripheral. Take ownership of USB to prevent accidental shared usage.
sourcepub fn assign_pins<P>(&self, _pins: P, mapr: &mut MAPR)where
P: Pins<Instance = Instance>,
pub fn assign_pins<P>(&self, _pins: P, mapr: &mut MAPR)where
P: Pins<Instance = Instance>,
Routes CAN TX signals and RX signals to pins.
Trait Implementations§
source§impl FilterOwner for Can<CAN1>
impl FilterOwner for Can<CAN1>
source§const NUM_FILTER_BANKS: u8 = 28u8
const NUM_FILTER_BANKS: u8 = 28u8
The total number of filter banks available to the instance. Read more