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
input.hpp File Reference

Button input convenience functions. More...

Detailed Description

Button input convenience functions.

Composes GPIO driver reads with Button update in a single call.

Usage: #include <sbl/hw/hal/button/input.hpp>

sbl::button::read<sbl::driver::Gpio>(btn, handle);

Definition in file input.hpp.

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::button
 Convenience layer: read a button.
 

Typedefs

using sbl::button::Button = sbl::components::input::Button
 
using sbl::button::ButtonConfig = sbl::components::input::ButtonConfig
 

Functions

template<typename Driver >
void sbl::button::read (Button &btn, const GpioHandle &handle)
 Read GPIO pin and feed into Button (debounce + edge detection)