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

Encoder input convenience functions. More...

Detailed Description

Encoder input convenience functions.

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

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

sbl::encoder::read<sbl::driver::Gpio>(enc, handle_a, handle_b);

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::encoder
 Convenience layer: read an encoder.
 

Typedefs

using sbl::encoder::Encoder = sbl::components::input::Encoder
 

Functions

template<typename Driver >
void sbl::encoder::read (Encoder &enc, const GpioHandle &a, const GpioHandle &b)
 Read quadrature GPIO pins and feed into Encoder.