uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
Data Fields
encoder_state Struct Reference

Internal state of an encoder. More...

#include <encoder.h>

Collaboration diagram for encoder_state:
Collaboration graph

Data Fields

bool inputA
 Input A state. More...
 
bool inputB
 Input B state. More...
 
int8_t counter
 Pulse counter. More...
 

Detailed Description

Internal state of an encoder.

The state is used to determine direction of the rotation.

See also
poll_encoder

Field Documentation

◆ counter

int8_t encoder_state::counter

Pulse counter.

◆ inputA

bool encoder_state::inputA

Input A state.

◆ inputB

bool encoder_state::inputB

Input B state.


The documentation for this struct was generated from the following file: