Releases: stm32-rs/bxcan
Releases · stm32-rs/bxcan
v0.8.0
v0.7.0
New Features
- [breaking change] Add support for using the second RX FIFO.
- The
Rxtype has been renamed toRx0, and anRx1type has been introduced that accesses the second FIFO. enable_banknow takes theFifothe filter should be assigned to as an additional argument.
- The
- Implement the
embedded-hal0.2.7 CAN traits.
Other Changes
- [breaking change] Removed the
embedded-can-03feature as theembedded-cancrate is deprecated. - [breaking change] Use a new
OverrunErrortype as the receive error instead of().
v0.6.2
v0.6.1
v0.6.0
New Features
- Add
CanConfig::set_automatic_retransmitfunction to enable or disable automatic frame retransmission (#42). - [breaking change] Remove
transmit_and_get_mailboxin favor of an improvedtransmitmethod (#40).Can::transmitnow returns aTransmitStatusstruct, which contains the dequeued frame and
the mailbox the new frame was placed into.
- [breaking change] Make
CanConfigharder to misuse (#37):- Methods now take
selfby value. - The
CanConfigstruct is now#[must_use]. CanConfigleaves init mode on drop, and enables the peripheral when.enable()is called.- These changes make it very hard to forget to enable the peripheral after configuring, which was
a common mistake in previous versions.
- Methods now take
- [breaking change] Replace
Can::newwithCan::builder, which makes it harder to forget enabling the peripheral (#46).
Other Changes
- [breaking change] Make
Can::clear_sleep_interruptandCan::clear_wakeup_interrupttake&selfinstead of&mut self. - [breaking change] Gate
embedded_canimpls behind theembedded-can-03Cargo feature. - [breaking change] Gate defmt support behind the
defmtCargo feature. - [breaking change] Removed
Can::configurein favor ofCan::modify_config(#36).
v0.5.1
New Features
- Add transmit function that returns the mailbox number, and transmit abort function (#25).
- Add more methods to acknowledge interrupts (#30).
- Add
Can::free, a way to get back ownership of the raw peripheral (#33).
Fixes
- The
Can::enable_interruptandCan::disable_interruptfunctions now manipulate the correct bits in the interrupt
enable register (#29).
Misc
- Improve documentation of interrupts (#30).
v0.5.0
v0.4.0
v0.3.0
New Features
- Configurable mask for masked filters.
- Implement the
embedded-cantraits.
Breaking Changes
- Changes to masked filters required some breaking API changes.
v0.2.3
Fixes
- Fix a panic when aborting transmission of a lower-priority frame.
- Fix comparison when checking for a lower-priority mailbox.