Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Main Page
User Manual
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
u
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
a
b
c
k
m
n
p
t
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
i
l
m
p
r
s
t
v
w
Enumerations
Enumerator
a
b
d
f
h
i
l
m
n
o
p
r
s
v
w
Related Symbols
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
g
i
l
m
o
p
s
u
v
Variables
c
e
f
h
i
l
m
n
o
p
s
u
v
Typedefs
a
b
c
e
f
i
k
m
n
p
s
t
u
v
Enumerations
Enumerator
Macros
a
b
c
d
e
f
h
i
n
u
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
MIDI_Interfaces
BLEMIDI
ESP32-NimBLE
util.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ble.h
"
4
5
#define CS_CHECK_ESP(x) \
6
do { \
7
if (auto ret = x; ret != ESP_OK) { \
8
ESP_LOGE("CS-BLEMIDI", "Failed to call '%s': %s (%d)", #x, \
9
esp_err_to_name(ret), static_cast<int>(ret)); \
10
return false; \
11
} \
12
} while (0)
5
#define CS_CHECK_ESP(x) \
…
13
#define CS_CHECK_ZERO(x) \
14
do { \
15
if (auto ret = x; ret != 0) { \
16
ESP_LOGE("CS-BLEMIDI", "Failed to call '%s': (%d)", #x, \
17
static_cast<int>(ret)); \
18
return false; \
19
} \
20
} while (0)
13
#define CS_CHECK_ZERO(x) \
…
21
#define CS_CHECK_ZERO_V(x) \
22
do { \
23
if (auto ret = x; ret != 0) { \
24
ESP_LOGE("CS-BLEMIDI", "Failed to call '%s': (%d)", #x, \
25
static_cast<int>(ret)); \
26
return; \
27
} \
28
} while (0)
21
#define CS_CHECK_ZERO_V(x) \
…
ble.h
Generated by
1.10.0