Nanomidi
Simple stream-based MIDI message encoder and decoder
nanomidi_internal.h
Go to the documentation of this file.
1 /*
2  * This file is part of nanomidi.
3  *
4  * Copyright (C) 2018 Adam Heinrich <adam@adamh.cz>
5  *
6  * Nanomidi is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Nanomidi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with nanomidi. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef NANOMIDI_INTERNAL_H
21 #define NANOMIDI_INTERNAL_H
22 
23 #ifdef ARDUINO
24 #include <../include/nanomidi/messages.h>
25 #else
26 #include <nanomidi/messages.h>
27 #endif
28 
29 #define DATA_BYTE(data) ((data) & 0x7f)
30 #define USB_BYTE0(cable, cin) ((uint8_t)(((cable) << 4) | ((cin) & 0x0f)))
31 #define MIDI_TYPE_SYSTEM_BASE MIDI_TYPE_SYSEX
32 
35  MIDI_TYPE_EOX = 0xf7,
36 };
37 
38 #endif /* NANOMIDI_INTERNAL_H */
midi_type_sysex
Definition: nanomidi_internal.h:33
System Exclusive Message (SysEx)
Definition: messages.h:77
Definition: nanomidi_internal.h:35
Definition: nanomidi_internal.h:34