5 releases

0.2.2 Dec 15, 2022
0.2.1 Dec 7, 2022
0.2.0 Dec 5, 2022
0.1.1 Nov 9, 2022
0.1.0 Nov 8, 2022

#1041 in Embedded development

Download history 176/week @ 2023-11-23 89/week @ 2023-11-30 105/week @ 2023-12-07 522/week @ 2023-12-14 672/week @ 2023-12-21 199/week @ 2023-12-28 457/week @ 2024-01-04 171/week @ 2024-01-11 394/week @ 2024-01-18 133/week @ 2024-01-25 29/week @ 2024-02-01 36/week @ 2024-02-08 85/week @ 2024-02-15 81/week @ 2024-02-22 208/week @ 2024-02-29 47/week @ 2024-03-07

428 downloads per month
Used in 3 crates (2 directly)

MIT/Apache

14KB

MCAN

The M_CAN is a CAN IP module that can be realized as a standalone device, as part of an ASIC or on an FPGA. It performs communication according to ISO11898-1:2015. It supports Classical CAN and CAN FD (CAN with Flexible Data-rate). Additional transceiver hardware is required for connection to the CAN physical layer. The message storage is intended to be a single or dual-ported Message RAM outside of the module. It is connected to the M_CAN via the Generic Master Interface. Depending on the chosen integration, multiple M_CAN controllers may share the same Message RAM. The Host CPU is connected via the 32-bit Generic Interface.[^1]

[^1]: Bosch M_CAN

Repository content

This repository provides two crates:

mcan

It contains a platform-agnostic HAL for MCAN, with support for

  • classical CAN and CAN FD with bitrate switching
  • message transmission using dedicated buffers, FIFO and priority queue
  • message reception using dedicated buffers and two FIFOs
  • message transmission cancellation
  • filter settings

mcan-core

It contains traits meant to be implemented by target HALs in order to resolve platform-specific details

Acknowledgement

MCAN HAL was developed by Grepit AB and financed by Volvo Cars Corporation

VCC Logo

This project is not affiliated with Robert Bosch GmbH and as such should be considered unofficial.

Authors

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~160KB