Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
input.hpp File Reference

Encoder input convenience functions. More...

#include <sbl/types.hpp>
#include <sbl/components/control/encoder.hpp>
Include dependency graph for input.hpp:

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 
namespace  sbl::encoder
 

Typedefs

using sbl::encoder::Encoder = sbl::components::control::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.
 

Detailed Description

Encoder input convenience functions.

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

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

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

Definition in file input.hpp.