librfn
An ad-hoc utility library
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | rotenc |
Rotary encoder click counts and state tracking. More... | |
Macros | |
#define | ROTENC_VAR_INIT { 0 } |
Static initializer for a rotary encoder. More... | |
Typedefs | |
typedef struct rotenc | rotenc_t |
Rotary encoder click counts and state tracking. More... | |
Functions | |
void | rotenc_decode (rotenc_t *r, uint8_t state) |
Handle a state update. More... | |
uint16_t | rotenc_count14 (rotenc_t *r) |
Read a 14-bit count of the current knob position. More... | |