#can #hal #bus

no-std bxcan

STM32 bxCAN peripheral driver

8 releases (4 breaking)

0.5.1 May 15, 2021
0.5.0 Mar 15, 2021
0.4.0 Jan 23, 2021
0.3.0 Dec 28, 2020
0.1.0 Dec 1, 2020

#42 in No standard library

Download history 176/week @ 2021-02-20 399/week @ 2021-02-27 145/week @ 2021-03-06 1250/week @ 2021-03-13 1134/week @ 2021-03-20 1619/week @ 2021-03-27 1557/week @ 2021-04-03 1928/week @ 2021-04-10 759/week @ 2021-04-17 496/week @ 2021-04-24 417/week @ 2021-05-01 763/week @ 2021-05-08 1512/week @ 2021-05-15 744/week @ 2021-05-22 1182/week @ 2021-05-29 1484/week @ 2021-06-05

3,658 downloads per month
Used in 6 crates (5 directly)

0BSD license

255KB
7.5K SLoC

bxCAN peripheral driver

crates.io docs.rs CI

This crate implements a driver for the bxCAN peripheral found in many low- to middle-end STM32 microcontrollers.

Please refer to the changelog to see what changed in the last releases.

Usage

Add an entry to your Cargo.toml:

[dependencies]
bxcan = "0.5.1"

Check the API Documentation for how to use the crate's functionality.

Rust version support

This crate supports at least the 3 latest stable Rust releases. Bumping the minimum supported Rust version (MSRV) is not considered a breaking change as long as these 3 versions are still supported.


lib.rs:

Driver for the STM32 bxCAN peripheral.

This crate provides a reusable driver for the bxCAN peripheral found in many low- to middle-end STM32 microcontrollers. HALs for compatible chips can reexport this crate and implement its traits to easily expose a featureful CAN driver.

Caveats:

  • Only RX FIFO 0 is supported, FIFO 1 will not be used.

Dependencies

~0.5–1MB
~25K SLoC