diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-11-23 18:52:02 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-11-23 18:52:02 -0500 |
commit | 2e23689b8e3222982082c1f5a4f8ce7686f9658b (patch) | |
tree | 397456339b357744d7d59d13b32055e2c9881f63 /tmk_core/protocol/lufa/lufa.h | |
parent | 3d7aaa31e41a9c96e785b0c089d74dfda525dfbe (diff) | |
download | qmk_firmware-2e23689b8e3222982082c1f5a4f8ce7686f9658b.tar.gz |
converted to new format
Diffstat (limited to 'tmk_core/protocol/lufa/lufa.h')
-rw-r--r-- | tmk_core/protocol/lufa/lufa.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tmk_core/protocol/lufa/lufa.h b/tmk_core/protocol/lufa/lufa.h index 198964f90..99b089f42 100644 --- a/tmk_core/protocol/lufa/lufa.h +++ b/tmk_core/protocol/lufa/lufa.h @@ -73,13 +73,19 @@ typedef struct { MidiDevice midi_device; void sysex_callback(MidiDevice * device, uint16_t start, uint8_t length, uint8_t * data); - uint32_t decode_uint32_chunk(uint8_t * data); - uint32_t decode_uint8_chunk(uint8_t * data); - void encode_uint32_chunk(uint32_t data, uint8_t * pointer); - void encode_uint8_chunk(uint8_t data, uint8_t * pointer); void sysex_buffer_callback(MidiDevice * device, uint8_t length, uint8_t * data); void send_unicode_midi(uint32_t unicode); - void send_bytes_sysex(uint8_t type, uint8_t * bytes, uint8_t length); + void send_bytes_sysex(uint8_t message_type, uint8_t data_type, uint8_t * bytes, uint8_t length); + + __attribute__ ((weak)) + bool sysex_process_quantum(uint8_t length, uint8_t * data); + + __attribute__ ((weak)) + bool sysex_process_keyboard(uint8_t length, uint8_t * data); + + __attribute__ ((weak)) + bool sysex_process_user(uint8_t length, uint8_t * data); + #endif // #if LUFA_VERSION_INTEGER < 0x120730 |