embedded-hal
embedded-hal copied to clipboard
A Hardware Abstraction Layer (HAL) for embedded systems
Both SPI and I2C have some concept of a transaction. SPI you assert an enable pin before sending data, I2C has `start` and `end` messages. I'm finding that as I...
The `CapturePin` trait is the input capture analogue to the `PwmPin` trait, representing a single capture channel. Unlike `PwmPin`, there's no `enable` or `disable` methods, because some chips, such as...
I'd like to propose a new `CapturePin` trait for representing a single input capture channel. It is to the `Capture` trait what `PwmPin` is to `Pwm`. Since single-channel singleton abstractions...
At the moment we aren't super explicit about management of the chip select pin for SPI transactions, which means drivers have to either manage these themselves or make big assumptions...
First some background: I'm planning to use embedded Rust in a sound-oriented project and am currently experimenting with the STM32 F4 Discovery which has an onboard DAC with amp and...
It seems like an embedded-hal driver cannot issue a USART break condition using only the embedded-hal serial trait, right? > A break condition is signaled to the module by keeping...
The `Pwm` trait is cumbersome to implement in a driver like the [PCA9685 driver](https://github.com/eldruin/pwm-pca9685-rs) due to the `try_set_period` and `try_get_period` methods, which depend on knowledge of the "real-world" frequency on...
Hello, I updated nightly and got this error trying to compile some code: `rustc 1.46.0-nightly (2753fab7c 2020-07-05)` `417:"checksum embedded-hal 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "fa998ce59ec9765d15216393af37a58961ddcefb14c753b4816ba2191d865fcb"` ``` error[E0119]: conflicting implementations of trait `embedded_hal::digital::v2::toggleable::Default`...
My current project has an in-tree HAL implementation. I now can't see any of the build errors because they're hidden among umpteen pages of deprecation warnings for the v1 hal...
Hi! I cannot find any valuable information about how to handle my case: I need to reconfigure the pin between its alternate function (UART in my case) and GPIO input....