ESP-IDF
t_rfc_port::state
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
t_rfc_port::state
t_rfc_port::state field
Syntax
Show:
Summary
Declaration
from
port_int.h:122
UINT8
state
;
Examples
References
from
examples
Code
Location
Referrer
UINT8
state
;
/* Current state of the connection */
port_int.h:122
p_port
->
state
,
p_port
->
rfc
.
state
,
p_port
->
rfc
.
p_mcb
?
p_port
->
rfc
.
p_mcb
->
state
:
0
)
;
port_api.c:141
RFCOMM_CreateConnection()
(
!
ignore_rfc_state
?
(
p_port
->
rfc
.
state
!=
RFC_STATE_OPENED
)
:
false
)
)
{
port_api.c:490
PORT_CheckConnection()
(
found_port
&&
(
p_port
->
rfc
.
state
<
RFC_STATE_OPENED
)
)
)
{
port_api.c:541
PORT_IsOpening()
if
(
p_port
->
is_server
&&
(
p_port
->
rfc
.
state
!=
RFC_STATE_OPENED
)
)
{
port_api.c:1380
port_write()
||
(
p_port
->
rfc
.
state
!=
RFC_STATE_OPENED
)
port_api.c:1391
port_write()
p_port
->
rfc
.
state
,
port_api.c:1411
port_write()
if
(
(
p_mcb
==
NULL
)
||
(
p_port
->
rfc
.
state
==
RFC_STATE_CLOSED
)
)
{
port_rfc.c:175
port_start_close()
||
(
p_port
->
rfc
.
state
!=
RFC_STATE_OPENED
)
)
{
port_rfc.c:966
PORT_FlowInd()
p_port
->
rfc
.
state
=
RFC_STATE_CLOSED
;
port_rfc.c:1062
port_rfc_closed()
p_port
->
rfc
.
state
=
RFC_STATE_CLOSED
;
port_rfc.c:1103
port_rfc_closed()
if
(
p_port
->
rfc
.
state
==
RFC_STATE_CLOSED
)
{
port_utils.c:231
port_release_port()
RFCOMM_TRACE_DEBUG
(
"%s st:%d, evt:%d\n"
,
__func__
,
p_port
->
rfc
.
state
,
event
)
;
rfc_port_fsm.c:65
rfc_port_sm_execute()
switch
(
p_port
->
rfc
.
state
)
{
rfc_port_fsm.c:72
rfc_port_sm_execute()
p_port
->
rfc
.
state
=
RFC_STATE_ORIG_WAIT_SEC_CHECK
;
rfc_port_fsm.c:115
rfc_port_sm_state_closed()
p_port
->
rfc
.
state
=
RFC_STATE_TERM_WAIT_SEC_CHECK
;
rfc_port_fsm.c:136
rfc_port_sm_state_closed()
RFCOMM_TRACE_ERROR
(
"Port error state %d event %d"
,
p_port
->
rfc
.
state
,
event
)
;
rfc_port_fsm.c:160
rfc_port_sm_state_closed()
RFCOMM_TRACE_ERROR
(
"Port error state %d event %d"
,
p_port
->
rfc
.
state
,
event
)
;
rfc_port_fsm.c:183
rfc_port_sm_sabme_wait_ua()
p_port
->
rfc
.
state
=
RFC_STATE_DISC_WAIT_UA
;
rfc_port_fsm.c:190
rfc_port_sm_sabme_wait_ua()
p_port
->
rfc
.
state
=
RFC_STATE_OPENED
;
rfc_port_fsm.c:203
rfc_port_sm_sabme_wait_ua()
p_port
->
rfc
.
state
=
RFC_STATE_CLOSED
;
rfc_port_fsm.c:229
rfc_port_sm_sabme_wait_ua()
RFCOMM_TRACE_ERROR
(
"Port error state %d event %d"
,
p_port
->
rfc
.
state
,
event
)
;
rfc_port_fsm.c:268
rfc_port_sm_term_wait_sec_check()
p_port
->
rfc
.
state
=
RFC_STATE_CLOSED
;
rfc_port_fsm.c:287
rfc_port_sm_term_wait_sec_check()
p_port
->
rfc
.
state
=
RFC_STATE_OPENED
;
rfc_port_fsm.c:309
rfc_port_sm_term_wait_sec_check()
p_port
->
rfc
.
state
=
RFC_STATE_SABME_WAIT_UA
;
rfc_port_fsm.c:340
rfc_port_sm_orig_wait_sec_check()
RFCOMM_TRACE_ERROR
(
"Port error state %d event %d"
,
p_port
->
rfc
.
state
,
event
)
;
rfc_port_fsm.c:345
rfc_port_sm_orig_wait_sec_check()
RFCOMM_TRACE_ERROR
(
"Port error state %d event %d"
,
p_port
->
rfc
.
state
,
event
)
;
rfc_port_fsm.c:380
rfc_port_sm_opened()
p_port
->
rfc
.
state
=
RFC_STATE_DISC_WAIT_UA
;
rfc_port_fsm.c:387
rfc_port_sm_opened()
p_port
->
rfc
.
state
=
RFC_STATE_CLOSED
;
rfc_port_fsm.c:424
rfc_port_sm_opened()
RFCOMM_TRACE_ERROR
(
"Port error state %d event %d"
,
p_port
->
rfc
.
state
,
event
)
;
rfc_port_fsm.c:441
rfc_port_sm_opened()
RFCOMM_TRACE_ERROR
(
"Port error state %d event %d"
,
p_port
->
rfc
.
state
,
event
)
;
rfc_port_fsm.c:463
rfc_port_sm_disc_wait_ua()
||
(
p_port
->
rfc
.
state
!=
RFC_STATE_OPENED
)
)
{
rfc_port_if.c:277
RFCOMM_ControlReq()
||
(
p_port
->
rfc
.
state
!=
RFC_STATE_OPENED
)
)
{
rfc_port_if.c:310
RFCOMM_FlowReq()
||
(
p_port
->
rfc
.
state
!=
RFC_STATE_OPENED
)
)
{
rfc_port_if.c:342
RFCOMM_LineStatusReq()
||
(
(
p_port
->
rfc
.
state
!=
RFC_STATE_ORIG_WAIT_SEC_CHECK
)
rfc_utils.c:383
rfc_sec_check_complete()
&&
(
p_port
->
rfc
.
state
!=
RFC_STATE_TERM_WAIT_SEC_CHECK
)
)
)
{
rfc_utils.c:384
rfc_sec_check_complete()
p_port
->
rfc
.
state
=
RFC_STATE_CLOSED
;
rfc_utils.c:411
rfc_port_closed()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
t_rfc_port::state
is written by 7 functions and is read by 18 functions:
port_rfc_closed()
rfc_port_sm_state_closed()
rfc_port_sm_sabme_wait_ua()
rfc_port_sm_term_wait_sec_check()
rfc_port_sm_orig_wait_sec_check()
rfc_port_sm_opened()
rfc_port_closed()
All items filtered out
t_rfc_port::state
RFCOMM_CreateConnection()
PORT_CheckConnection()
PORT_IsOpening()
port_write()
port_start_close()
PORT_FlowInd()
port_release_port()
rfc_port_sm_execute()
rfc_port_sm_state_closed()
rfc_port_sm_sabme_wait_ua()
rfc_port_sm_term_wait_sec_check()
rfc_port_sm_orig_wait_sec_check()
rfc_port_sm_opened()
rfc_port_sm_disc_wait_ua()
RFCOMM_ControlReq()
RFCOMM_FlowReq()
RFCOMM_LineStatusReq()
rfc_sec_check_complete()
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