Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
app.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdbool.h>
4#include <stdint.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10void midi_ble_instance_handle_connect(uint16_t conn_handle);
11void midi_ble_instance_handle_disconnect(uint16_t conn_handle);
12void midi_ble_instance_handle_mtu(uint16_t conn_handle, uint16_t mtu);
13void midi_ble_instance_handle_subscribe(uint16_t conn_handle,
14 uint16_t char_handle, bool notify);
15void midi_ble_instance_handle_data(uint16_t conn_handle, const uint8_t *data,
16 uint16_t length);
17
18#ifdef __cplusplus
19}
20#endif
21
22#ifdef __cplusplus
23#include "../BLEAPI.hpp"
24
25namespace cs::midi_ble_bluedroid {
26
27bool init(MIDIBLEInstance &instance, BLESettings settings);
28bool notify(BLEConnectionHandle conn_handle,
29 BLECharacteristicHandle char_handle, BLEDataView data);
30
31} // namespace cs::midi_ble_bluedroid
32
33#endif
Type definitions and callback interfaces for communication between the low-level BLE stacks and highe...
void midi_ble_instance_handle_data(uint16_t conn_handle, const uint8_t *data, uint16_t length)
void midi_ble_instance_handle_disconnect(uint16_t conn_handle)
void midi_ble_instance_handle_subscribe(uint16_t conn_handle, uint16_t char_handle, bool notify)
void midi_ble_instance_handle_connect(uint16_t conn_handle)
void midi_ble_instance_handle_mtu(uint16_t conn_handle, uint16_t mtu)
Defines the interface for callback functions registered by the low-level BLE code.
Definition BLEAPI.hpp:127
void notify(BLEDataView data)
bool init(MIDIBLEInstance &instance, BLESettings ble_settings)
Represents a handle to a local GATT characteristic.
Definition BLEAPI.hpp:30
Represents a handle to the connection to another device.
Definition BLEAPI.hpp:19
Non-owning, std::span-style read-only view of BLE data.
Definition BLEAPI.hpp:42
Configuration options for the low-level BLE code.
Definition BLEAPI.hpp:150