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