summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaveHodder67 <dave.hodder@focusrite.com>2015-07-02 10:18:36 +0100
committerDaveHodder67 <dave.hodder@focusrite.com>2015-07-02 10:18:36 +0100
commitec9c000a36953bdae95d4555164bf4ea129bb0d9 (patch)
tree3fe4e6c89f155afc4b0a71be85a87a9fc68e6998 /include
parentb610731696267a1c3c778c2668870ed249607115 (diff)
downloadlaunchpad-polymaker-ec9c000a36953bdae95d4555164bf4ea129bb0d9.tar.gz
launchpad-polymaker-ec9c000a36953bdae95d4555164bf4ea129bb0d9.zip
tidied up headers
Diffstat (limited to 'include')
-rw-r--r--include/app.h4
-rw-r--r--include/app_defs.h45
2 files changed, 30 insertions, 19 deletions
diff --git a/include/app.h b/include/app.h
index 8f33e48..87c2bbd 100644
--- a/include/app.h
+++ b/include/app.h
@@ -35,6 +35,10 @@
35 35
36// ____________________________________________________________________________ 36// ____________________________________________________________________________
37// 37//
38// Don't modify this file! This declares the binary interface to the library,
39// so modifying it will probably break things.
40// ____________________________________________________________________________
41//
38#include "app_defs.h" 42#include "app_defs.h"
39 43
40/****************************************************************************** 44/******************************************************************************
diff --git a/include/app_defs.h b/include/app_defs.h
index cc7493b..829f8a6 100644
--- a/include/app_defs.h
+++ b/include/app_defs.h
@@ -36,6 +36,10 @@
36 36
37// ____________________________________________________________________________ 37// ____________________________________________________________________________
38// 38//
39// Don't modify this file! This declares the binary interface to the library,
40// so modifying it will probably break things.
41// ____________________________________________________________________________
42//
39// Types 43// Types
40// ____________________________________________________________________________ 44// ____________________________________________________________________________
41 45
@@ -52,26 +56,26 @@ typedef unsigned char u8;
52// App structure 56// App structure
53// ____________________________________________________________________________ 57// ____________________________________________________________________________
54 58
55#define TYPEPAD 0 59#define TYPEPAD 0
56#define TYPESETUP 1 60#define TYPESETUP 1
57 61
58#define MAXLED 63 62#define MAXLED 63
59 63
60// ____________________________________________________________________________ 64// ____________________________________________________________________________
61// 65//
62// Useful MIDI constants 66// Useful MIDI constants
63// ____________________________________________________________________________ 67// ____________________________________________________________________________
64 68
65#define NOTEON 0x90 69#define NOTEON 0x90
66#define NOTEOFF 0x80 70#define NOTEOFF 0x80
67#define POLYAFTERTOUCH 0xA0 71#define POLYAFTERTOUCH 0xA0
68#define CC 0xB0 72#define CC 0xB0
69#define CHANNELAFTERTOUCH 0xD0 73#define CHANNELAFTERTOUCH 0xD0
70#define SONGPOSITIONPOINTER 0xF2 74#define SONGPOSITIONPOINTER 0xF2
71#define MIDITIMINGCLOCK 0xF8 75#define MIDITIMINGCLOCK 0xF8
72#define MIDISTART 0xFA 76#define MIDISTART 0xFA
73#define MIDICONTINUE 0xFB 77#define MIDICONTINUE 0xFB
74#define MIDISTOP 0xFC 78#define MIDISTOP 0xFC
75 79
76// ____________________________________________________________________________ 80// ____________________________________________________________________________
77// 81//
@@ -79,19 +83,22 @@ typedef unsigned char u8;
79// ____________________________________________________________________________ 83// ____________________________________________________________________________
80 84
81// USB MIDI: "Standalone" port 85// USB MIDI: "Standalone" port
82#define USBSTANDALONE 0 86#define USBSTANDALONE 0
83 87
84// USB MIDI: "MIDI" port 88// USB MIDI: "MIDI" port
85#define USBMIDI 1 89#define USBMIDI 1
86 90
87// MIDI DIN port 91// MIDI DIN port
88#define DINMIDI 2 92#define DINMIDI 2
89
90 93
94// ____________________________________________________________________________
95//
91// MIDI Jack Socket Switch IDs 96// MIDI Jack Socket Switch IDs
97// ____________________________________________________________________________
92 98
93#define MIDI_IN_CABLE 0 99#define MIDI_IN_CABLE 0
94#define MIDI_OUT_CABLE 1 100#define MIDI_OUT_CABLE 1
95 101
96// ____________________________________________________________________________ 102// ____________________________________________________________________________
103
97#endif 104#endif