Debian Codegraph @

architecture/esp32/gramo-bt-midi/components/blemidi/include/blemidi.h

raw
1 /*
2 BLE MIDI driver based on a heavy-lifted version of https://github.com/midibox/esp32-idf-blemidi by Thorsten Klose ([email protected]). The driver can act both as a server and as a client.
3 */
4
5 #ifndef _BLEMIDI_H
6 #define _BLEMIDI_H
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 #include <stdint.h>
13
14
15 extern int32_t blemidi_init(void *callback_midi_message_received, const char* device_name, const char* remote_name, void *arg);
16
17 extern int32_t blemidi_send_message(uint8_t blemidi_port, uint8_t *stream, size_t len);
18
19 extern int32_t blemidi_outbuffer_flush(uint8_t blemidi_port);
20
21 extern void blemidi_tick(void);
22
23 extern uint8_t blemidi_timestamp_high(void);
24
25 extern uint8_t blemidi_timestamp_low(void);
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif /* _BLEMIDI_H */