ESP-IDF
i2s_channel_obj_t::state
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
i2s_channel_obj_t::state
i2s_channel_obj_t::state field
i2s driver state. Ensuring the driver working in a correct sequence
Syntax
Show:
Summary
Declaration
from
i2s_private.h:158
i2s_state_t
state
;
Examples
References
from
examples
Code
Location
Referrer
i2s_state_t
state
;
/*!< i2s driver state. Ensuring the driver working in a correct sequence */
i2s_private.h:158
new_chan
->
state
=
I2S_CHAN_STATE_REGISTER
;
i2s_common.c:325
i2s_register_channel()
ESP_GOTO_ON_FALSE
(
handle
->
state
<
I2S_CHAN_STATE_RUNNING
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S has enabled"
)
;
i2s_common.c:409
i2s_channel_register_event_callback()
ESP_RETURN_ON_FALSE
(
handle
->
state
<
I2S_CHAN_STATE_RUNNING
,
ESP_ERR_INVALID_STATE
,
TAG
,
"the channel can't be deleted unless it is disabled"
)
;
i2s_common.c:1029
i2s_del_channel()
chan_info
->
total_dma_buf_size
=
handle
->
state
>=
I2S_CHAN_STATE_READY
?
handle
->
dma
.
desc_num
*
handle
->
dma
.
buf_size
:
0
;
i2s_common.c:1143
i2s_channel_get_info()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"the channel has already enabled or not initialized"
)
;
i2s_common.c:1165
i2s_channel_enable()
handle
->
state
=
I2S_CHAN_STATE_RUNNING
;
i2s_common.c:1170
i2s_channel_enable()
ESP_GOTO_ON_FALSE
(
handle
->
state
>
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"the channel has not been enabled yet"
)
;
i2s_common.c:1191
i2s_channel_disable()
handle
->
state
=
I2S_CHAN_STATE_READY
;
i2s_common.c:1193
i2s_channel_disable()
ESP_RETURN_ON_FALSE
(
tx_handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
TAG
,
"data can only be preloaded when the channel is READY"
)
;
i2s_common.c:1219
i2s_channel_preload_data()
while
(
size
>
0
&&
handle
->
state
==
I2S_CHAN_STATE_RUNNING
)
{
i2s_common.c:1288
i2s_channel_write()
while
(
size
>
0
&&
handle
->
state
==
I2S_CHAN_STATE_RUNNING
)
{
i2s_common.c:1333
i2s_channel_read()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_REGISTER
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"the channel has initialized already"
)
;
i2s_pdm.c:179
i2s_channel_init_pdm_tx_mode()
handle
->
state
=
I2S_CHAN_STATE_READY
;
i2s_pdm.c:209
i2s_channel_init_pdm_tx_mode()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S should be disabled before reconfiguring the clock"
)
;
i2s_pdm.c:229
i2s_channel_reconfig_pdm_tx_clock()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S should be disabled before reconfiguring the slot"
)
;
i2s_pdm.c:279
i2s_channel_reconfig_pdm_tx_slot()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"Invalid state, I2S should be disabled before reconfiguring the gpio"
)
;
i2s_pdm.c:310
i2s_channel_reconfig_pdm_tx_gpio()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_REGISTER
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"the channel has initialized already"
)
;
i2s_pdm.c:466
i2s_channel_init_pdm_rx_mode()
handle
->
state
=
I2S_CHAN_STATE_READY
;
i2s_pdm.c:500
i2s_channel_init_pdm_rx_mode()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S should be disabled before reconfiguring the clock"
)
;
i2s_pdm.c:520
i2s_channel_reconfig_pdm_rx_clock()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S should be disabled before reconfiguring the slot"
)
;
i2s_pdm.c:570
i2s_channel_reconfig_pdm_rx_slot()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"Invalid state, I2S should be disabled before reconfiguring the gpio"
)
;
i2s_pdm.c:600
i2s_channel_reconfig_pdm_rx_gpio()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_REGISTER
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"the channel has initialized already"
)
;
i2s_std.c:223
i2s_channel_init_std_mode()
handle
->
state
=
I2S_CHAN_STATE_READY
;
i2s_std.c:252
i2s_channel_init_std_mode()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S should be disabled before reconfiguring the clock"
)
;
i2s_std.c:272
i2s_channel_reconfig_std_clock()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S should be disabled before reconfiguring the slot"
)
;
i2s_std.c:322
i2s_channel_reconfig_std_slot()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"Invalid state, I2S should be disabled before reconfiguring the gpio"
)
;
i2s_std.c:352
i2s_channel_reconfig_std_gpio()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
i2s_channel_obj_t::state
is written by 6 functions and is read by 20 functions:
i2s_register_channel()
i2s_channel_enable()
i2s_channel_disable()
i2s_channel_init_std_mode()
i2s_channel_init_pdm_tx_mode()
i2s_channel_init_pdm_rx_mode()
All items filtered out
i2s_channel_obj_t::state
i2s_channel_register_event_callback()
i2s_del_channel()
i2s_channel_get_info()
i2s_channel_enable()
i2s_channel_disable()
i2s_channel_preload_data()
i2s_channel_write()
i2s_channel_read()
i2s_channel_init_std_mode()
i2s_channel_reconfig_std_clock()
i2s_channel_reconfig_std_slot()
i2s_channel_reconfig_std_gpio()
i2s_channel_init_pdm_tx_mode()
i2s_channel_reconfig_pdm_tx_clock()
i2s_channel_reconfig_pdm_tx_slot()
i2s_channel_reconfig_pdm_tx_gpio()
i2s_channel_init_pdm_rx_mode()
i2s_channel_reconfig_pdm_rx_clock()
i2s_channel_reconfig_pdm_rx_slot()
i2s_channel_reconfig_pdm_rx_gpio()
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