schmitttrigger 1.0.0

A generic SchmittTrigger implementation
Documentation
  • Coverage
  • 0%
    0 out of 6 items documented0 out of 5 items with examples
  • Size
  • Source code size: 2.78 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.24 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • tfeldmann/rust-schmitttrigger
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tfeldmann

Rust Schmitt-Trigger library

Basic usage:

let mut trigger = SchmittTrigger::new(5, 10);
trigger.input(4)  // false
trigger.input(12) // true
trigger.input(6)  // still true
let result = trigger.output() // true

Works with any type that has the PartialEq trait.