An I/O device communication module written in Rust.
Project description
R2D2
"Rust Reliable Device Drivers"
r2d2-pal (R2D2 Protocol Abstraction Layer) is a module to define Rust bindings for Python of the linux_embedded_hal crate.
Installation
pip install -U r2d2-pal
Usage
Serial example:
import r2d2
bus = r2d2.SerialBus(
port_name=port_name,
baud_rate=baud_rate,
byte_size=byte_size,
parity=str(parity),
stop_bits=stop_bits,
)
bus.write(b"Hello, World!")
data = bus.read(13, 10.0)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
r2d2_pal-0.1.11.tar.gz
(9.1 kB
view details)
Built Distribution
File details
Details for the file r2d2_pal-0.1.11.tar.gz
.
File metadata
- Download URL: r2d2_pal-0.1.11.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e8467784a2085af4eacfd153ed6d1215acb5f722bfb9958df8c5d0e87be5bf8d
|
|
MD5 |
243dc52e5327bd2ab6d81a7851b3bcae
|
|
BLAKE2b-256 |
1bf3d5f575961089d8b7ecae93b0fcf43d3e45fd4b3d8d5663a3467943b7c8c0
|
File details
Details for the file r2d2_pal-0.1.11-cp38-abi3-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: r2d2_pal-0.1.11-cp38-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 288.0 kB
- Tags: CPython 3.8+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
31431a95ff16741de74ed518e0d986fc66bf7022efd1f11dd715a1b857c8cadb
|
|
MD5 |
65adf2da3ec5b92fb8b6c8b01626e1c1
|
|
BLAKE2b-256 |
ac6ceb076940fcb30710a64fc89f1cb8dce3dcc5677cbb5c1d20c4dc72a27546
|