Control Surface main
MIDI Control Surface library for Arduino
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
midi.h File Reference

Detailed Description

Public MIDI over Bluetooth Low Energy API.

Definition in file midi.h.

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
+ Include dependency graph for midi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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.
 
void set_midi_ble_name (const char *name)
 Set the name of the BLE device. Must be set before calling midi_init().
 
void set_security_initiate_encryption (bool security_initiate_encryption_)
 Configure whether the Arduino should initiate the bonding/secure connection.
 
bool midi_init ()
 Initialize the Bluetooth stack and register the MIDI BLE application with the Bluedroid driver.
 
bool midi_deinit ()
 Cleanup the MIDI BLE application and de-initialize the Bluetooth stack.
 

Function Documentation

◆ 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.

◆ 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().

◆ set_security_initiate_encryption()

void set_security_initiate_encryption ( bool security_initiate_encryption_)

Configure whether the Arduino should initiate the bonding/secure connection.

◆ midi_init()

bool midi_init ( )

Initialize the Bluetooth stack and register the MIDI BLE application with the Bluedroid driver.

◆ midi_deinit()

bool midi_deinit ( )

Cleanup the MIDI BLE application and de-initialize the Bluetooth stack.