Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Loading...
Searching...
No Matches
src
MIDI_Interfaces
BLEMIDI
ESP32
midi.h
Go to the documentation of this file.
1
#pragma once
2
8
9
#include <stdbool.h>
10
#include <stddef.h>
11
#include <stdint.h>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
18
bool
midi_notify
(uint16_t conn_handle, uint16_t char_handle,
19
const
uint8_t *data,
size_t
len);
20
22
void
set_midi_ble_name
(
const
char
*name);
24
void
set_security_initiate_encryption
(
bool
security_initiate_encryption_);
25
28
bool
midi_init
();
31
bool
midi_deinit
();
32
33
#ifdef __cplusplus
34
}
35
#endif
midi_deinit
bool midi_deinit()
Cleanup the MIDI BLE application and de-initialize the Bluetooth stack.
midi_init
bool midi_init()
Initialize the Bluetooth stack and register the MIDI BLE application with the Bluedroid driver.
set_security_initiate_encryption
void set_security_initiate_encryption(bool security_initiate_encryption_)
Configure whether the Arduino should initiate the bonding/secure connection.
set_midi_ble_name
void set_midi_ble_name(const char *name)
Set the name of the BLE device. Must be set before calling midi_init().
midi_notify
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.
Generated by
1.17.0