Registry / other / embedded-hal-bus

embedded-hal-bus

JSON →
library0.3.0rscratesunverified

Bus/Device connection mechanisms for embedded-hal, a Hardware Abstraction Layer for embedded systems.

# Cargo.toml [dependencies] embedded-hal-bus = "0.3.0"
INSTALL
IMPORT
SIG · EMBEDDED-HAL-BUS
E
embedded-hal-bus
otherrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

I2cBus
use embedded_hal_bus::i2c::I2cBus;

Creates an I2C bus from an embedded-hal I2C peripheral.

use embedded_hal_bus::i2c::I2cBus; use embedded_hal::i2c::I2c; // Requires an I2C peripheral implementing I2c // let bus = I2cBus::new(i2c_peripheral);
Debug
Known issues
gotchaRequires an embedded-hal implementation for your specific hardware.
fix
Add a HAL crate for your microcontroller (e.g., stm32f4xx-hal).
affects: *
Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Meta
1
Amazon
1
Resources
embedded-hal-bus — cargo add embedded-hal-bus · libregistry