| Crates.io | sfc6xxx-rs |
| lib.rs | sfc6xxx-rs |
| version | 0.1.0 |
| created_at | 2025-06-27 17:25:44.483837+00 |
| updated_at | 2025-06-27 17:25:44.483837+00 |
| description | A pure rust implementation of the SHDLC driver for sensirion's SFC6XXX mass flow controllers |
| homepage | |
| repository | https://github.com/EggShark/sfc-rs |
| max_upload_size | |
| id | 1729073 |
| size | 49,718 |
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();
All device functions have an associated test that were passing on a SFC6000D-5slm