Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
midi.h
Go to the documentation of this file.
1#pragma once
2
9#include <stdbool.h>
10#include <stddef.h>
11#include <stdint.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
18bool midi_notify(uint16_t conn_handle, uint16_t char_handle,
19 const uint8_t *data, size_t len);
20
22void set_midi_ble_name(const char *name);
23
26bool midi_init();
30
31#ifdef __cplusplus
32}
33#endif
bool midi_deinit()
Cleanup the MIDI BLE application and de-initialize the Bluetooth stack.
bool midi_init()
Initialize the Bluetooth stack and register the MIDI BLE application with the Bluedroid driver.
void set_midi_ble_name(const char *name)
Set the name of the BLE device. Must be set before calling midi_init().
bool midi_notify(uint16_t conn_handle, uint16_t char_handle, const uint8_t *data, size_t len)
Send a MIDI BLE notification to the client.