df_server sample
SM2135E_CHECK
is only used within df_server sample.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
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
SM2135E_CHECK
SM2135E_CHECK macro
Syntax
Show:
Summary
Declaration
from
sm2135e.c:17
#define
SM2135E_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
SM2135E_CHECK
(
a
,
str
,
action
,
...
)
\
sm2135e.c:17
SM2135E_CHECK
(
s_sm2135e
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:87
SM2135E_CHECK
(
s_sm2135e
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:107
SM2135E_CHECK
(
s_sm2135e
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:117
SM2135E_CHECK
(
s_sm2135e
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:135
SM2135E_CHECK
(
s_sm2135e
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:143
SM2135E_CHECK
(
channel
<
SM2135E_CHANNEL_MAX
,
"check channel fail"
,
return
ESP_ERR_INVALID_ARG
)
;
sm2135e.c:144
SM2135E_CHECK
(
pin
<
SM2135E_PIN_OUT_MAX
,
"check out pin fail"
,
return
ESP_ERR_INVALID_ARG
)
;
sm2135e.c:145
SM2135E_CHECK
(
s_sm2135e
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:153
SM2135E_CHECK
(
s_sm2135e
->
mapping_addr
[
channel
]
!=
INVALID_ADDR
,
"channel:%d not regist"
,
return
ESP_ERR_INVALID_STATE
,
channel
)
;
sm2135e.c:154
SM2135E_CHECK
(
s_sm2135e
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:182
SM2135E_CHECK
(
s_sm2135e
->
mapping_addr
[
0
]
!=
INVALID_ADDR
||
s_sm2135e
->
mapping_addr
[
1
]
!=
INVALID_ADDR
||
s_sm2135e
->
mapping_addr
[
2
]
!=
INVALID_ADDR
,
"color channel not regist"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:183
SM2135E_CHECK
(
s_sm2135e
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:202
SM2135E_CHECK
(
s_sm2135e
->
mapping_addr
[
3
]
!=
INVALID_ADDR
||
s_sm2135e
->
mapping_addr
[
4
]
!=
INVALID_ADDR
,
"white channel not regist"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:203
SM2135E_CHECK
(
config
,
"config is null"
,
return
ESP_ERR_INVALID_ARG
)
;
sm2135e.c:224
SM2135E_CHECK
(
!
s_sm2135e
,
"already init done"
,
return
ESP_ERR_INVALID_ARG
)
;
sm2135e.c:225
SM2135E_CHECK
(
s_sm2135e
,
"alloc fail"
,
return
ESP_ERR_NO_MEM
)
;
sm2135e.c:228
SM2135E_CHECK
(
err
==
ESP_OK
,
"i2c master init fail"
,
goto
EXIT
)
;
sm2135e.c:240
SM2135E_CHECK
(
err
==
ESP_OK
,
"task create fail"
,
goto
EXIT
)
;
sm2135e.c:244
SM2135E_CHECK
(
s_sm2135e
,
"not init"
,
return
ESP_ERR_INVALID_STATE
)
;
sm2135e.c:258
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