sfc6xxx_rs/lib.rs
1//! # SFC6XXX-rs
2//! This libraray is meant to provide an platform independant rust driver for
3//! Sensirion's SFC6xxx mass flow controllers. The code was based arround the official
4//! [python SHDLC](https://sensirion.github.io/python-uart-sfx6xxx/) library and should match
5//! match its interface, while using Rust's powerful Result type.
6//! ## Testing
7//! Several tests have been written to tests this library's functionality and a majority of them
8//! are in device.rs. Most test reads and checks values but several functions like
9//! [get_serial_number](device::Device::get_serial_number) and [get_article_code](device::Device::get_article_code)
10//! cannot be accuratley tested. In these cases the code checks to see if the response errored and nothing else.
11
12pub mod device;
13pub use serialport;
14pub use sfc_core;