diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2016-11-21 12:54:06 -0500 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2016-11-21 12:54:06 -0500 |
| commit | b57cf3c0c851f2fb0e32c955b16fc6f0ad236e54 (patch) | |
| tree | 24556bc878acdb2f7237ae4e15b803451bb91da5 /tmk_core/protocol/lufa/lufa.h | |
| parent | ab6557c1a04b7f6a1d262d07f9b42e7e28d8028a (diff) | |
| download | qmk_firmware-b57cf3c0c851f2fb0e32c955b16fc6f0ad236e54.tar.gz qmk_firmware-b57cf3c0c851f2fb0e32c955b16fc6f0ad236e54.zip | |
more structure to the package
Diffstat (limited to 'tmk_core/protocol/lufa/lufa.h')
| -rw-r--r-- | tmk_core/protocol/lufa/lufa.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tmk_core/protocol/lufa/lufa.h b/tmk_core/protocol/lufa/lufa.h index 3fec797b6..198964f90 100644 --- a/tmk_core/protocol/lufa/lufa.h +++ b/tmk_core/protocol/lufa/lufa.h | |||
| @@ -68,9 +68,18 @@ typedef struct { | |||
| 68 | } __attribute__ ((packed)) report_extra_t; | 68 | } __attribute__ ((packed)) report_extra_t; |
| 69 | 69 | ||
| 70 | #ifdef MIDI_ENABLE | 70 | #ifdef MIDI_ENABLE |
| 71 | void MIDI_Task(void); | 71 | #define MIDI_SYSEX_BUFFER 16 |
| 72 | MidiDevice midi_device; | 72 | void MIDI_Task(void); |
| 73 | void send_unicode_midi(uint32_t unicode); | 73 | MidiDevice midi_device; |
| 74 | |||
| 75 | void sysex_callback(MidiDevice * device, uint16_t start, uint8_t length, uint8_t * data); | ||
| 76 | uint32_t decode_uint32_chunk(uint8_t * data); | ||
| 77 | uint32_t decode_uint8_chunk(uint8_t * data); | ||
| 78 | void encode_uint32_chunk(uint32_t data, uint8_t * pointer); | ||
| 79 | void encode_uint8_chunk(uint8_t data, uint8_t * pointer); | ||
| 80 | void sysex_buffer_callback(MidiDevice * device, uint8_t length, uint8_t * data); | ||
| 81 | void send_unicode_midi(uint32_t unicode); | ||
| 82 | void send_bytes_sysex(uint8_t type, uint8_t * bytes, uint8_t length); | ||
| 74 | #endif | 83 | #endif |
| 75 | 84 | ||
| 76 | // #if LUFA_VERSION_INTEGER < 0x120730 | 85 | // #if LUFA_VERSION_INTEGER < 0x120730 |
