df_server sample
BP5758D_CHECK
is only used within df_server sample.
Symbol previews are coming soon...
Symbols
loading (1/4)...
Files
loading (2/4)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
df_server sample
BP5758D_CHECK
BP5758D_CHECK macro
Syntax
Show:
Summary
Declaration
from
bp5758d.c:17
#define
BP5758D_CHECK
(
a
,
str
,
action
,
...
)
\
if
(
unlikely
(
!
(
a
)
)
)
{
\
ESP_LOGE
(
TAG
,
str
,
##
__VA_ARGS__
)
;
\
action
;
\
}
Arguments
Argument
a
str
action
Examples
References
from
examples
Code
Location
#define
BP5758D_CHECK
(
a
,
str
,
action
,
...
)
\
bp5758d.c:17
BP5758D_CHECK
(
s_bp5758d
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
bp5758d.c:131
BP5758D_CHECK
(
s_bp5758d
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
bp5758d.c:139
BP5758D_CHECK
(
s_bp5758d
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
bp5758d.c:148
BP5758D_CHECK
(
channel
<
BP5758D_CHANNEL_MAX
,
"check channel fail"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:149
BP5758D_CHECK
(
pin
<
BP5758D_PIN_OUT_MAX
,
"check out pin fail"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:150
BP5758D_CHECK
(
s_bp5758d
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
bp5758d.c:159
BP5758D_CHECK
(
s_bp5758d
->
mapping_addr
[
channel
]
!=
INVALID_ADDR
,
"channel:%d not regist"
,
return
ESP_ERR_INVALID_STATE
,
channel
)
;
bp5758d.c:160
BP5758D_CHECK
(
value
<=
1023
,
"value out of range"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:161
BP5758D_CHECK
(
s_bp5758d
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
bp5758d.c:180
BP5758D_CHECK
(
s_bp5758d
->
mapping_addr
[
0
]
!=
INVALID_ADDR
||
s_bp5758d
->
mapping_addr
[
1
]
!=
INVALID_ADDR
||
s_bp5758d
->
mapping_addr
[
2
]
!=
INVALID_ADDR
,
"color channel not regist"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:181
BP5758D_CHECK
(
s_bp5758d
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
bp5758d.c:204
BP5758D_CHECK
(
s_bp5758d
->
mapping_addr
[
3
]
!=
INVALID_ADDR
||
s_bp5758d
->
mapping_addr
[
4
]
!=
INVALID_ADDR
,
"white channel not regist"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:205
BP5758D_CHECK
(
s_bp5758d
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
bp5758d.c:225
BP5758D_CHECK
(
s_bp5758d
->
mapping_addr
[
3
]
!=
INVALID_ADDR
||
s_bp5758d
->
mapping_addr
[
4
]
!=
INVALID_ADDR
,
"white channel not regist"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:226
BP5758D_CHECK
(
s_bp5758d
->
mapping_addr
[
0
]
!=
INVALID_ADDR
||
s_bp5758d
->
mapping_addr
[
1
]
!=
INVALID_ADDR
||
s_bp5758d
->
mapping_addr
[
2
]
!=
INVALID_ADDR
,
"color channel not regist"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:227
BP5758D_CHECK
(
config
,
"config is null"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:257
BP5758D_CHECK
(
config
->
current
,
"current is null"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:258
BP5758D_CHECK
(
!
s_bp5758d
,
"already init done"
,
return
ESP_ERR_INVALID_ARG
)
;
bp5758d.c:259
BP5758D_CHECK
(
s_bp5758d
,
"alloc fail"
,
return
ESP_ERR_NO_MEM
)
;
bp5758d.c:262
BP5758D_CHECK
(
err
==
ESP_OK
,
"i2c master init fail"
,
goto
EXIT
)
;
bp5758d.c:272
BP5758D_CHECK
(
err
==
ESP_OK
,
"task create fail"
,
goto
EXIT
)
;
bp5758d.c:276
BP5758D_CHECK
(
s_bp5758d
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
bp5758d.c:291
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out