Control Surface
main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
src
MIDI_Interfaces
BLEMIDI
ESP32-NimBLE
events.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ble.h
"
4
5
#if CS_MIDI_BLE_ESP_IDF_NIMBLE
6
#include <host/ble_gap.h>
7
#include <host/ble_gatt.h>
8
#else
9
#include <nimble/nimble/host/include/host/ble_gap.h>
10
#include <nimble/nimble/host/include/host/ble_gatt.h>
11
#endif
12
13
#include "
ble-macro-fix.h
"
14
15
#include "
../BLEAPI.hpp
"
16
17
namespace
cs::midi_ble_nimble
{
18
19
struct
MIDIBLEState
{
20
constexpr
static
uint16_t
invalid_handle
= 0xFFFF;
21
MIDIBLEInstance
*
instance
=
nullptr
;
22
uint16_t
midi_characteristic_handle
=
invalid_handle
;
23
uint8_t
address_type
= 0;
24
BLESettings
settings
;
25
};
26
27
extern
MIDIBLEState
*
state
;
28
29
}
// namespace cs::midi_ble_nimble
30
31
#include "events.ipp"
BLEAPI.hpp
Type definitions and callback interfaces for communication between the low-level BLE stacks and highe...
ble-macro-fix.h
ble.h
MIDIBLEInstance
Defines the interface for callback functions registered by the low-level BLE code.
Definition
BLEAPI.hpp:127
cs::midi_ble_nimble
Definition
advertise.hpp:5
cs::midi_ble_nimble::state
MIDIBLEState * state
BLESettings
Configuration options for the low-level BLE code.
Definition
BLEAPI.hpp:150
cs::midi_ble_nimble::MIDIBLEState
Definition
events.hpp:19
cs::midi_ble_nimble::MIDIBLEState::instance
MIDIBLEInstance * instance
Definition
events.hpp:21
cs::midi_ble_nimble::MIDIBLEState::settings
BLESettings settings
Definition
events.hpp:24
cs::midi_ble_nimble::MIDIBLEState::address_type
uint8_t address_type
Definition
events.hpp:23
cs::midi_ble_nimble::MIDIBLEState::invalid_handle
static constexpr uint16_t invalid_handle
Definition
events.hpp:20
cs::midi_ble_nimble::MIDIBLEState::midi_characteristic_handle
uint16_t midi_characteristic_handle
Definition
events.hpp:22
Generated by
1.10.0