ESP-IDF
mcpwm_fault_t::type
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
mcpwm_fault_t::type
mcpwm_fault_t::type field
Syntax
Show:
Summary
Declaration
from
mcpwm_private.h:172
mcpwm_fault_type_t
type
;
Examples
References
from
examples
Code
Location
Referrer
mcpwm_fault_type_t
type
;
// fault type
mcpwm_private.h:172
fault
->
base
.
type
=
MCPWM_FAULT_TYPE_GPIO
;
mcpwm_fault.c:143
mcpwm_new_gpio_fault()
soft_fault
->
base
.
type
=
MCPWM_FAULT_TYPE_SOFT
;
mcpwm_fault.c:193
mcpwm_new_soft_fault()
ESP_RETURN_ON_FALSE
(
fault
->
type
==
MCPWM_FAULT_TYPE_SOFT
,
ESP_ERR_INVALID_ARG
,
TAG
,
"not a valid soft fault"
)
;
mcpwm_fault.c:216
mcpwm_soft_fault_activate()
ESP_RETURN_ON_FALSE
(
fault
->
type
==
MCPWM_FAULT_TYPE_GPIO
,
ESP_ERR_INVALID_ARG
,
TAG
,
"only gpio fault can register event callback"
)
;
mcpwm_fault.c:245
mcpwm_fault_register_event_callbacks()
ESP_RETURN_ON_FALSE
(
fault
->
type
==
MCPWM_FAULT_TYPE_GPIO
,
ESP_ERR_NOT_SUPPORTED
,
TAG
,
"not supported fault type"
)
;
mcpwm_gen.c:282
mcpwm_generator_set_action_on_fault_event()
switch
(
fault
->
type
)
{
mcpwm_oper.c:288
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()
switch
(
fault
->
type
)
{
mcpwm_oper.c:321
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()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
mcpwm_fault_t::type
is written by 2 functions and is read by 5 functions:
mcpwm_new_gpio_fault()
mcpwm_new_soft_fault()
All items filtered out
mcpwm_fault_t::type
mcpwm_soft_fault_activate()
mcpwm_fault_register_event_callbacks()
mcpwm_generator_set_action_on_fault_event()
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