3 stable releases
Uses old Rust 2015
1.0.2 | Oct 25, 2018 |
---|---|
1.0.1 | Oct 16, 2018 |
#1119 in Embedded development
9KB
162 lines
Documentation
Example
An example is provided for the stm32f103 µcontroller, see the ./examples folder.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
This crate allows you to wrap a Qei counter in a larger type. This is usefull when your Timer counter is on 16 bit and spend a lot of time overflowing/underflowing. To use this wrapper you have to take samples regularly, but be carefull because the counter should not change for more than (2^16 - 1)/2 between two samples otherwise we can not detect overflows/underflows.
The internal counter is an i64 which should be enough for most use cases.
An example is provided for the stm32f103 µcontroller in this repository.
Dependencies
~71KB