Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::gate Namespace Reference

Gate input helpers. More...

Detailed Description

Gate input helpers.

Typedefs

using DigitalGateInput = sbl::components::input::DigitalGateInput
 
using DigitalGateConfig = sbl::components::input::DigitalGateConfig
 

Functions

template<typename Driver >
void read (DigitalGateInput &gate, const GpioHandle &handle)
 

Typedef Documentation

◆ DigitalGateInput

◆ DigitalGateConfig

Function Documentation

◆ read()

template<typename Driver >
void sbl::gate::read ( DigitalGateInput &  gate,
const GpioHandle &  handle 
)
inline

Read GPIO pin and feed into DigitalGateInput (debounce + edge detection).

Template Parameters
DriverGPIO driver type (e.g., sbl::driver::Gpio)
Parameters
gateDigitalGateInput instance to update
handleGPIO handle for the gate pin
Note
ISR-safe — single GPIO register read

Definition at line 29 of file input.hpp.

References sbl::components::input::DigitalGateInput::update().