20#ifndef SBL_HW_COMPONENTS_INPUT_KNOB_GATE_HPP_
21#define SBL_HW_COMPONENTS_INPUT_KNOB_GATE_HPP_
33 : threshold_(threshold) {}
36 void arm(uint16_t entry_value) {
42 void update(uint16_t current_value) {
44 int32_t d =
static_cast<int32_t
>(current_value) -
static_cast<int32_t
>(entry_);
46 if (d >
static_cast<int32_t
>(threshold_)) {
52 bool live()
const {
return live_; }
Root namespace for all Sound Byte Libs code.