uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
expression.h
Go to the documentation of this file.
1 
4 /*
5  * Copyright 2015 Sebastian Neuser
6  *
7  * This file is part of the uMIDI firmware.
8  *
9  * The uMIDI firmware is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * The uMIDI firmware is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with the uMIDI firmware. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef _EXPRESSION_H
24 #define _EXPRESSION_H
25 
26 
27 //---------------- includes ----------------//
28 #include <stdint.h>
29 
30 
31 //---------------- constants ----------------//
33 #define MIDI_NOTE_ENABLE_WAH 42
34 
35 
36 //---------------- data types ----------------//
37 
38 
39 //---------------- functions and procedures ----------------//
40 
42 bool exec_cal(const char* command);
43 
45 bool exec_echo(const char* command);
46 
48 bool exec_mute(const char* command);
49 
54 void handle_enable_switch(void);
55 
58 void init_expression_module(void);
59 
63 void update_expression_value(uint16_t new_value);
64 
67 
68 
69 //---------------- EOF ----------------//
70 #endif // _EXPRESSION_H
71 
bool exec_cal(const char *command)
Handler for the serial command &#39;cal&#39;.
Definition: expression.c:81
bool exec_mute(const char *command)
Handler for the serial command &#39;mute&#39;.
Definition: expression.c:140
bool exec_echo(const char *command)
Handler for the serial command &#39;echo&#39;.
Definition: expression.c:122
void handle_enable_switch(void)
A background task that handles the enable switch.
Definition: expression.c:167
void trigger_expression_conversion(void)
Triggers an ADC conversion of the expression pedal input.
Definition: expression.c:215
void update_expression_value(uint16_t new_value)
Updates the stored expression value.
Definition: expression.c:220
void init_expression_module(void)
Initializes the expression module.
Definition: expression.c:194