Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
callbacks.h
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#ifdef __cplusplus
16extern "C" {
17#endif
18
19int cs_midi_ble_characteristic_callback(uint16_t conn_handle,
20 uint16_t attr_handle,
21 struct ble_gatt_access_ctxt *ctxt,
22 void *arg);
23void cs_midi_ble_service_register_callback(struct ble_gatt_register_ctxt *ctxt,
24 void *arg);
25int cs_midi_ble_gap_callback(struct ble_gap_event *event, void *arg);
27void cs_midi_ble_on_reset(int reason);
28
29#ifdef __cplusplus
30} // extern "C"
31#endif
void cs_midi_ble_on_sync(void)
void cs_midi_ble_on_reset(int reason)
int cs_midi_ble_gap_callback(struct ble_gap_event *event, void *arg)
int cs_midi_ble_characteristic_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg)
void cs_midi_ble_service_register_callback(struct ble_gatt_register_ctxt *ctxt, void *arg)