ESP-IDF
TAG
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (2/5)...
Files
loading (4/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
TAG
TAG variable
Syntax
Show:
Summary
Declaration
from
mcpwm_oper.c:28
static
const
char
*
TAG
=
"mcpwm"
;
Examples
References
from
examples
Code
Location
Referrer
static
const
char
*
TAG
=
"mcpwm"
;
mcpwm_oper.c:28
ESP_RETURN_ON_FALSE
(
group
,
ESP_ERR_NO_MEM
,
TAG
,
"no mem for group (%d)"
,
group_id
)
;
mcpwm_oper.c:35
mcpwm_operator_register_to_group()
ESP_RETURN_ON_FALSE
(
oper_id
>=
0
,
ESP_ERR_NOT_FOUND
,
TAG
,
"no free operators in group (%d)"
,
group_id
)
;
mcpwm_oper.c:54
mcpwm_operator_register_to_group()
ESP_RETURN_ON_ERROR
(
esp_intr_free
(
oper
->
intr
)
,
TAG
,
"uninstall interrupt service failed"
)
;
mcpwm_oper.c:74
mcpwm_operator_destroy()
ESP_GOTO_ON_FALSE
(
config
&&
ret_oper
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"invalid argument"
)
;
mcpwm_oper.c:90
mcpwm_new_operator()
err
,
TAG
,
"invalid group ID:%d"
,
config
->
group_id
)
;
mcpwm_oper.c:92
mcpwm_new_operator()
TAG
,
"invalid interrupt priority:%d"
,
config
->
intr_priority
)
;
mcpwm_oper.c:95
mcpwm_new_operator()
ESP_GOTO_ON_FALSE
(
oper
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"no mem for operator"
)
;
mcpwm_oper.c:99
mcpwm_new_operator()
ESP_GOTO_ON_ERROR
(
mcpwm_operator_register_to_group
(
oper
,
config
->
group_id
)
,
err
,
TAG
,
"register operator failed"
)
;
mcpwm_oper.c:101
mcpwm_new_operator()
ESP_GOTO_ON_ERROR
(
mcpwm_check_intr_priority
(
group
,
config
->
intr_priority
)
,
err
,
TAG
,
"set group interrupt priority failed"
)
;
mcpwm_oper.c:109
mcpwm_new_operator()
ESP_LOGD
(
TAG
,
"new operator (%d,%d) at %p"
,
group_id
,
oper_id
,
oper
)
;
mcpwm_oper.c:129
mcpwm_new_operator()
ESP_RETURN_ON_FALSE
(
oper
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument"
)
;
mcpwm_oper.c:141
mcpwm_del_operator()
ESP_RETURN_ON_FALSE
(
!
oper
->
comparators
[
i
]
,
ESP_ERR_INVALID_STATE
,
TAG
,
"comparator still in working"
)
;
mcpwm_oper.c:143
mcpwm_del_operator()
ESP_RETURN_ON_FALSE
(
!
oper
->
generators
[
i
]
,
ESP_ERR_INVALID_STATE
,
TAG
,
"generator still in working"
)
;
mcpwm_oper.c:146
mcpwm_del_operator()
ESP_RETURN_ON_FALSE
(
!
oper
->
soft_fault
,
ESP_ERR_INVALID_STATE
,
TAG
,
"soft fault still in working"
)
;
mcpwm_oper.c:148
mcpwm_del_operator()
ESP_LOGD
(
TAG
,
"del operator (%d,%d)"
,
group
->
group_id
,
oper_id
)
;
mcpwm_oper.c:163
mcpwm_del_operator()
ESP_RETURN_ON_ERROR
(
mcpwm_operator_destroy
(
oper
)
,
TAG
,
"destroy operator failed"
)
;
mcpwm_oper.c:165
mcpwm_del_operator()
ESP_RETURN_ON_FALSE
(
oper
&&
timer
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument"
)
;
mcpwm_oper.c:171
mcpwm_operator_connect_timer()
ESP_RETURN_ON_FALSE
(
oper
->
group
==
timer
->
group
,
ESP_ERR_INVALID_ARG
,
TAG
,
"operator and timer should reside in the same group"
)
;
mcpwm_oper.c:172
mcpwm_operator_connect_timer()
ESP_LOGD
(
TAG
,
"connect operator (%d) and timer (%d) in group (%d)"
,
oper
->
oper_id
,
timer
->
timer_id
,
group
->
group_id
)
;
mcpwm_oper.c:183
mcpwm_operator_connect_timer()
ESP_RETURN_ON_FALSE
(
oper
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument"
)
;
mcpwm_oper.c:189
mcpwm_operator_apply_carrier()
ESP_RETURN_ON_ERROR
(
mcpwm_select_periph_clock
(
group
,
(
soc_module_clk_t
)
clk_src
)
,
TAG
,
"set group clock failed"
)
;
mcpwm_oper.c:200
mcpwm_operator_apply_carrier()
ESP_RETURN_ON_ERROR
(
mcpwm_set_prescale
(
group
,
config
->
frequency_hz
,
MCPWM_LL_MAX_CARRIER_PRESCALE
*
8
,
&
prescale
)
,
TAG
,
"set prescale failed"
)
;
mcpwm_oper.c:203
mcpwm_operator_apply_carrier()
ESP_RETURN_ON_FALSE
(
prescale
>
0
&&
prescale
<=
MCPWM_LL_MAX_CARRIER_PRESCALE
,
ESP_ERR_INVALID_STATE
,
TAG
,
"group clock cannot match the frequency"
)
;
mcpwm_oper.c:206
mcpwm_operator_apply_carrier()
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid first pulse duration"
)
;
mcpwm_oper.c:216
mcpwm_operator_apply_carrier()
ESP_LOGD
(
TAG
,
"enable carrier modulation for operator(%d,%d), freq=%"
PRIu32
"Hz, duty=%.2f, FPD=%"
PRIu32
"us"
,
mcpwm_oper.c:227
mcpwm_operator_apply_carrier()
ESP_LOGD
(
TAG
,
"disable carrier for operator (%d,%d)"
,
group
->
group_id
,
oper_id
)
;
mcpwm_oper.c:230
mcpwm_operator_apply_carrier()
ESP_RETURN_ON_FALSE
(
oper
&&
cbs
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument"
)
;
mcpwm_oper.c:237
mcpwm_operator_register_event_callbacks()
mcpwm_operator_default_isr
,
oper
,
&
oper
->
intr
)
,
TAG
,
"install interrupt service for operator failed"
)
;
mcpwm_oper.c:262
mcpwm_operator_register_event_callbacks()
ESP_RETURN_ON_FALSE
(
oper
&&
config
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument"
)
;
mcpwm_oper.c:280
mcpwm_operator_set_brake_on_fault()
ESP_RETURN_ON_FALSE
(
group
==
fault
->
group
,
ESP_ERR_INVALID_ARG
,
TAG
,
"fault and operator not in the same group"
)
;
mcpwm_oper.c:290
mcpwm_operator_set_brake_on_fault()
ESP_RETURN_ON_FALSE
(
!
soft_fault
->
oper
||
soft_fault
->
oper
==
oper
,
ESP_ERR_INVALID_STATE
,
TAG
,
"soft fault already used by another operator"
)
;
mcpwm_oper.c:299
mcpwm_operator_set_brake_on_fault()
ESP_RETURN_ON_FALSE
(
false
,
ESP_ERR_INVALID_ARG
,
TAG
,
"unknown fault type:%d"
,
fault
->
type
)
;
mcpwm_oper.c:308
mcpwm_operator_set_brake_on_fault()
ESP_RETURN_ON_FALSE
(
oper
&&
fault
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument"
)
;
mcpwm_oper.c:316
mcpwm_operator_recover_from_fault()
ESP_RETURN_ON_FALSE
(
false
,
ESP_ERR_INVALID_ARG
,
TAG
,
"unknown fault type:%d"
,
fault
->
type
)
;
mcpwm_oper.c:331
mcpwm_operator_recover_from_fault()
ESP_RETURN_ON_FALSE
(
!
fault_signal_is_active
,
ESP_ERR_INVALID_STATE
,
TAG
,
"recover fail, fault signal still active"
)
;
mcpwm_oper.c:347
mcpwm_operator_recover_from_fault()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
TAG
is read by 9 functions:
All items filtered out
TAG
mcpwm_operator_register_to_group()
mcpwm_operator_destroy()
mcpwm_new_operator()
mcpwm_del_operator()
mcpwm_operator_connect_timer()
mcpwm_operator_apply_carrier()
mcpwm_operator_register_event_callbacks()
mcpwm_operator_set_brake_on_fault()
mcpwm_operator_recover_from_fault()
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