stm32-rs / fdcan

FDCAN peripheral driver for STM32 chips
Apache License 2.0
12 stars 14 forks source link

Request an example #29

Open David-OConnor opened 1 year ago

David-OConnor commented 1 year ago

Hi! Are there any examples available? Thoughts on adding one or more to an examples folder? I'm attempting to learn how to use this lib, but am not sure where to start. Thanks!

Of note, from the docs page, it seems like most of the structs dummies for use in typestates. I gather that the following structs and their methods make up the primary API: FdCan, Tx, Rx, FdCanControl. Is this right?

richardeoin commented 1 year ago

There are some examples available in downstream crates: stm32g4xx-hal stm32h7xx-hal. It would be a nice improvement to have examples in this crate also.

Yes indeed, the methods on FdCan are the "core" of the API.

David-OConnor commented 1 year ago

Thanks! This looks like an outstanding lib. Checking those examples out.