83#include "periph_cpu.h"
84#include "periph_conf.h"
94#define QDEC_DEV(x) (x)
101#define QDEC_UNDEF (UINT_FAST8_MAX)
114#ifndef HAVE_QDEC_MODE_T
132#ifndef HAVE_TIMER_ISR_CTX_T
int32_t qdec_init(qdec_t dev, qdec_mode_t mode, qdec_cb_t cb, void *arg)
Initialize a QDEC device.
int32_t qdec_read_and_reset(qdec_t dev)
Read the current value of the given qdec device and reset it.
qdec_mode_t
Default QDEC mode definition.
uint_fast8_t qdec_t
Default QDEC type definition.
int32_t qdec_read(qdec_t dev)
Read the current value of the given qdec device.
void qdec_stop(qdec_t qdec)
Stop the given qdec timer.
void qdec_start(qdec_t qdec)
Start the given qdec timer.
void(* qdec_cb_t)(void *arg)
Signature of event callback functions triggered from interrupts.
Default interrupt context entry holding callback and argument.
qdec_cb_t cb
callback executed from qdec interrupt
void * arg
optional argument given to that callback