|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Encoder input convenience functions. More...
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. | |
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.