embedded-hal
embedded-hal copied to clipboard
A Hardware Abstraction Layer (HAL) for embedded systems
This adds an `AdcChannel` trait as mentioned in https://github.com/rust-embedded/embedded-hal/issues/377. Still needs to be tested by implementing an actual driver. I feel there is something still missing with regard to how...
Added in https://github.com/badges/shields/pull/9871 Updated: - `embedded-hal` - `embedded-hal-bus` - `embedded-hal-nb`: old badge said 1.60 but rust-version in Cargo.toml is set to 1.56 Skipped: - `embedded-can`: rust-version field is blank on...
This adds an impl block to the `Id` enum which would make it a little easier to use in practical settings. Instead of: ``` let id = Id::Standard(StandardId::new(0x110)?); let raw...
Hello, I'm working on a project that is considering using `embedded-io`'s traits for `no_std` environments and had some concerns about the stability of the API. For example, the popular `postcard`...
Currently, SPI device traits deal with a transaction concept, which implies transmission of some data, while the CS is set for the whole duration. There is currently no guidance on...
As discussed in today's meeting: It is better if the CS-assert-to-clock and clock-to-CS-deassert delays are configured in the SpiDevice itself, so that the driver doesn't have to add them to...
Is there a reason that the `embedded_hal::delay::DelayUs` API is not defined as follows: ```rust use core::time::Duration; pub trait Delay { fn delay(&mut self, duration: Duration); #[inline] fn delay_us(&mut self, us:...
I'm unfamiliar with SPI, so maybe I'm completely off here, but it seems like the two main traits in `embedded_hal::spi` could be somewhat unified? As an example, consider the API...
`embedded-hal` defines its own `Error` traits for each submodule, which makes sense since it wants the `kind` method. I think this trait should've been a subtrait of `core::error::Error`, though I...
I agree that the `ErrorType` trait is somewhat useful, motivation [here](https://docs.rs/embedded-io/0.6.1/embedded_io/trait.ErrorType.html), but I think that it may actually in most cases be detrimental to the API? In each of the...