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

Configuration structure for the HMI module. More...

#include <hmi.h>

Collaboration diagram for hmi_config:
Collaboration graph

Data Fields

const struct gpio_headerinput_header
 the pin header that is connected to the HMI board's X2 header More...
 
const struct gpio_headeroutput_header
 the pin header that is connected to the HMI board's X1 header More...
 
void(* button1_handler )(void)
 this handler is called when button 1 is pressed More...
 
void(* button2_handler )(void)
 this handler is called when button 2 is pressed More...
 
void(* encoder1cw_handler )(void)
 this handler is called when encoder 1 is rotated clockwise More...
 
void(* encoder1ccw_handler )(void)
 this handler is called when encoder 1 is rotated counter-clockwise More...
 
void(* encoder1push_handler )(void)
 this handler is called when the switch in encoder 1 is pressed More...
 
void(* encoder2cw_handler )(void)
 this handler is called when encoder 2 is rotated clockwise More...
 
void(* encoder2ccw_handler )(void)
 this handler is called when encoder 2 is rotated counter-clockwise More...
 
void(* encoder2push_handler )(void)
 this handler is called when the switch in encoder 2 is pressed More...
 

Detailed Description

Configuration structure for the HMI module.

Field Documentation

◆ button1_handler

void(* hmi_config::button1_handler) (void)

this handler is called when button 1 is pressed

◆ button2_handler

void(* hmi_config::button2_handler) (void)

this handler is called when button 2 is pressed

◆ encoder1ccw_handler

void(* hmi_config::encoder1ccw_handler) (void)

this handler is called when encoder 1 is rotated counter-clockwise

◆ encoder1cw_handler

void(* hmi_config::encoder1cw_handler) (void)

this handler is called when encoder 1 is rotated clockwise

◆ encoder1push_handler

void(* hmi_config::encoder1push_handler) (void)

this handler is called when the switch in encoder 1 is pressed

◆ encoder2ccw_handler

void(* hmi_config::encoder2ccw_handler) (void)

this handler is called when encoder 2 is rotated counter-clockwise

◆ encoder2cw_handler

void(* hmi_config::encoder2cw_handler) (void)

this handler is called when encoder 2 is rotated clockwise

◆ encoder2push_handler

void(* hmi_config::encoder2push_handler) (void)

this handler is called when the switch in encoder 2 is pressed

◆ input_header

const struct gpio_header* hmi_config::input_header

the pin header that is connected to the HMI board's X2 header

◆ output_header

const struct gpio_header* hmi_config::output_header

the pin header that is connected to the HMI board's X1 header


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