ESP-IDF
TOUCH_CHECK
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (4/5)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
TOUCH_CHECK
TOUCH_CHECK macro
Syntax
Show:
Summary
Declaration
from
touch_sensor_common.c:26
#define
TOUCH_CHECK
(
a
,
str
,
ret_val
)
(
{
\
if
(
!
(
a
)
)
{
\
ESP_LOGE
(
TOUCH_TAG
,
"%s(%d): %s"
,
__FUNCTION__
,
__LINE__
,
str
)
;
\
return
(
ret_val
)
;
\
}
\
}
)
Arguments
Argument
a
str
ret_val
Examples
References
from
examples
Code
Location
#define
TOUCH_CHECK
(
a
,
str
,
ret_val
)
(
{
\
touch_sensor_common.c:26
TOUCH_CHECK
(
channel
<
SOC_TOUCH_SENSOR_NUM
&&
channel
>=
0
,
"Touch channel error"
,
ESP_ERR_INVALID_ARG
)
;
\
touch_sensor_common.c:34
TOUCH_CHECK
(
(
(
refh
<
TOUCH_HVOLT_MAX
)
&&
(
refh
>=
(
int
)
TOUCH_HVOLT_KEEP
)
)
,
"touch refh error"
,
touch_sensor_common.c:58
TOUCH_CHECK
(
(
(
refl
<
TOUCH_LVOLT_MAX
)
&&
(
refh
>=
(
int
)
TOUCH_LVOLT_KEEP
)
)
,
"touch refl error"
,
touch_sensor_common.c:60
TOUCH_CHECK
(
(
(
atten
<
TOUCH_HVOLT_ATTEN_MAX
)
&&
(
refh
>=
(
int
)
TOUCH_HVOLT_ATTEN_KEEP
)
)
,
"touch atten error"
,
touch_sensor_common.c:62
TOUCH_CHECK
(
touch_num
<
SOC_TOUCH_SENSOR_NUM
,
"Touch channel error"
,
ESP_ERR_INVALID_ARG
)
;
touch_sensor_common.c:92
TOUCH_CHECK
(
slope
<
TOUCH_PAD_SLOPE_MAX
,
"touch slope error"
,
ESP_ERR_INVALID_ARG
)
;
touch_sensor_common.c:93
TOUCH_CHECK
(
opt
<
TOUCH_PAD_TIE_OPT_MAX
,
"touch opt error"
,
ESP_ERR_INVALID_ARG
)
;
touch_sensor_common.c:94
TOUCH_CHECK
(
touch_num
<
SOC_TOUCH_SENSOR_NUM
,
"Touch channel error"
,
ESP_ERR_INVALID_ARG
)
;
touch_sensor_common.c:109
TOUCH_CHECK
(
(
mode
<
TOUCH_FSM_MODE_MAX
)
,
"touch fsm mode error"
,
ESP_ERR_INVALID_ARG
)
;
touch_sensor_common.c:150
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