sfc6xxx-rs

Crates.iosfc6xxx-rs
lib.rssfc6xxx-rs
version0.1.0
created_at2025-06-27 17:25:44.483837+00
updated_at2025-06-27 17:25:44.483837+00
descriptionA pure rust implementation of the SHDLC driver for sensirion's SFC6XXX mass flow controllers
homepage
repositoryhttps://github.com/EggShark/sfc-rs
max_upload_size
id1729073
size49,718
EggShark (EggShark)

documentation

README

SFC6xxx-rs

A pure rust implementation of the SHDLC driver for Sensirions SFC6xxx mass flow controllers. The api was made to model the official python library, while adding rust best practices. The bare minimum code needed to get started looks like:

let port = serialport::new("/dev/ttyUSB0", 115200).open_native().unwrap();
let mut device = Device::new(port, 0).unwrap();
// set the devices flow rate
device.set_setpoint(4).unwrap();
// read in the measured value of the device
device.read_measured_value();

Testing

All device functions have an associated test that were passing on a SFC6000D-5slm

Commit count: 0

cargo fmt