blob: 5716b5abb8976c46e09e4c09c0a5fd2a59cb4eba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
//
// lgl_min_sysex.h
// LibMaple4Midi
//
// Created by Donald D Davis on 4/11/13.
// Copyright (c) 2013 Suspect Devices. All rights reserved.
//
#ifndef __LGL_MIN_SYSEX_H__
#define __LGL_MIN_SYSEX_H__ 1
#include "MidiSpecs.h"
#include "USBMidiTransport.h"
//#include "LGL.h"
#define ARDUINO_MMA_VENDOR_1 0x7D
#define ARDUINO_MMA_VENDOR_2 0x23
#define ARDUINO_MMA_VENDOR_3 0x41
// move to LGL.h
#define LGL_RESET_CMD 0x1e
#define LGL_BOOTLOADER_CMD 0x1f
#define DEFAULT_MIDI_CHANNEL 0x0A
#define DEFAULT_MIDI_DEVICE 0x0A
#define DEFAULT_MIDI_CABLE 0x00
#define MAX_LGL_SYSEX_SIZE ((16+1)/4)
#define MAX_SYSEX_SIZE (128)
// eventually all of this should be in a place for settings which can be written to flash.
extern volatile uint8_t myMidiChannel;
extern volatile uint8_t myMidiDevice;
extern volatile uint8_t myMidiCable;
extern volatile uint8_t myMidiID[];
extern USB_ClassInfo_MIDI_Device_t USB_MIDI_Interface;
extern volatile uint8_t mySysexBuffer[];
extern volatile uint8_t mySysexBufferIndex;
void LglSysexHandler(uint32_t *midiBufferRx,uint32_t *rx_offset,uint32_t *n_unread_bytes);
void minSysexHandler(MIDI_EVENT_PACKET_t e);
void Jump_To_Bootloader(void);
#endif
|