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

Configuration of an encoder. More...

#include <encoder.h>

Collaboration diagram for encoder_config:
Collaboration graph

Data Fields

const struct gpio_pininputA
 The GPIO pin that input A is connected to. More...
 
const struct gpio_pininputB
 The GPIO pin that input A is connected to. More...
 
const struct gpio_pininputSwitch
 
enum encoder_type type
 Encoder type (# of phases) More...
 
void(* cw_callback )(void)
 Callback for clockwise rotation or NULL More...
 
void(* ccw_callback )(void)
 Callback for counter-clockwise rotation or NULL More...
 
void(* push_callback )(void)
 Callback for the push button or NULL More...
 

Detailed Description

Configuration of an encoder.

Field Documentation

◆ ccw_callback

void(* encoder_config::ccw_callback) (void)

Callback for counter-clockwise rotation or NULL

◆ cw_callback

void(* encoder_config::cw_callback) (void)

Callback for clockwise rotation or NULL

◆ inputA

const struct gpio_pin* encoder_config::inputA

The GPIO pin that input A is connected to.

◆ inputB

const struct gpio_pin* encoder_config::inputB

The GPIO pin that input A is connected to.

◆ inputSwitch

const struct gpio_pin* encoder_config::inputSwitch

The GPIO pin that the push button is connected to. Set this to NULL if your encoder does not have a momentary switch.

◆ push_callback

void(* encoder_config::push_callback) (void)

Callback for the push button or NULL

◆ type

enum encoder_type encoder_config::type

Encoder type (# of phases)


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