ESP-IDF
TAG
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/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
dac_continuous.c:85
static
const
char
*
TAG
=
"dac_continuous"
;
Examples
References
from
examples
Code
Location
Referrer
static
const
char
*
TAG
=
"dac_continuous"
;
dac_continuous.c:85
ESP_RETURN_ON_FALSE
(
handle
->
desc
,
ESP_ERR_NO_MEM
,
TAG
,
"failed to allocate dma descriptor array"
)
;
dac_continuous.c:125
s_dac_alloc_dma_desc()
ESP_RETURN_ON_FALSE
(
handle
->
bufs
,
ESP_ERR_NO_MEM
,
TAG
,
"failed to allocate dma buffer array"
)
;
dac_continuous.c:127
s_dac_alloc_dma_desc()
ESP_RETURN_ON_FALSE
(
descs
,
ESP_ERR_NO_MEM
,
TAG
,
"failed to allocate dma descriptors"
)
;
dac_continuous.c:129
s_dac_alloc_dma_desc()
ESP_GOTO_ON_FALSE
(
handle
->
desc
[
cnt
]
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"failed to allocate dma descriptor"
)
;
dac_continuous.c:133
s_dac_alloc_dma_desc()
ESP_LOGD
(
TAG
,
"desc[%d] %p"
,
cnt
,
handle
->
desc
[
cnt
]
)
;
dac_continuous.c:134
s_dac_alloc_dma_desc()
ESP_GOTO_ON_FALSE
(
handle
->
bufs
[
cnt
]
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"failed to allocate dma buffer"
)
;
dac_continuous.c:137
s_dac_alloc_dma_desc()
DAC_NULL_POINTER_CHECK
(
cont_cfg
)
;
dac_continuous.c:203
dac_continuous_new_channels()
DAC_NULL_POINTER_CHECK
(
ret_handle
)
;
dac_continuous.c:204
dac_continuous_new_channels()
ESP_RETURN_ON_FALSE
(
cont_cfg
->
chan_mask
<=
DAC_CHANNEL_MASK_ALL
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid dac channel id"
)
;
dac_continuous.c:205
dac_continuous_new_channels()
ESP_RETURN_ON_FALSE
(
cont_cfg
->
desc_num
>
1
,
ESP_ERR_INVALID_STATE
,
TAG
,
"at least two DMA descriptor needed"
)
;
dac_continuous.c:206
dac_continuous_new_channels()
ESP_RETURN_ON_FALSE
(
!
s_dma_in_use
,
ESP_ERR_INVALID_STATE
,
TAG
,
"DMA already in use"
)
;
dac_continuous.c:207
dac_continuous_new_channels()
err4
,
TAG
,
"register dac channel %"
PRIu32
" failed"
,
i
)
;
dac_continuous.c:215
dac_continuous_new_channels()
ESP_RETURN_ON_FALSE
(
handle
,
ESP_ERR_NO_MEM
,
TAG
,
"no memory for the dac continuous mode structure"
)
;
dac_continuous.c:221
dac_continuous_new_channels()
ESP_GOTO_ON_FALSE
(
handle
->
desc_pool
,
ESP_ERR_NO_MEM
,
err3
,
TAG
,
"no memory for message queue"
)
;
dac_continuous.c:226
dac_continuous_new_channels()
ESP_GOTO_ON_FALSE
(
handle
->
mutex
,
ESP_ERR_NO_MEM
,
err3
,
TAG
,
"no memory for channels mutex"
)
;
dac_continuous.c:227
dac_continuous_new_channels()
ESP_GOTO_ON_ERROR
(
esp_pm_lock_create
(
pm_lock_type
,
0
,
"dac_driver"
,
&
handle
->
pm_lock
)
,
err3
,
TAG
,
"Failed to create DAC pm lock"
)
;
dac_continuous.c:232
dac_continuous_new_channels()
ESP_GOTO_ON_ERROR
(
s_dac_alloc_dma_desc
(
handle
)
,
err2
,
TAG
,
"Failed to allocate memory for DMA buffers"
)
;
dac_continuous.c:243
dac_continuous_new_channels()
err2
,
TAG
,
"Failed to initialize DAC DMA peripheral"
)
;
dac_continuous.c:249
dac_continuous_new_channels()
err1
,
TAG
,
"Failed to register DAC DMA interrupt"
)
;
dac_continuous.c:253
dac_continuous_new_channels()
DAC_NULL_POINTER_CHECK
(
handle
)
;
dac_continuous.c:286
dac_continuous_del_channels()
ESP_RETURN_ON_FALSE
(
!
atomic_load
(
&
handle
->
is_enabled
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"dac continuous output not disabled yet"
)
;
dac_continuous.c:287
dac_continuous_del_channels()
ESP_RETURN_ON_ERROR
(
esp_intr_free
(
handle
->
intr_handle
)
,
TAG
,
"Failed to deregister DMA interrupt"
)
;
dac_continuous.c:291
dac_continuous_del_channels()
ESP_RETURN_ON_ERROR
(
dac_dma_periph_deinit
(
)
,
TAG
,
"Failed to deinitialize DAC DMA peripheral"
)
;
dac_continuous.c:295
dac_continuous_del_channels()
DAC_NULL_POINTER_CHECK
(
handle
)
;
dac_continuous.c:332
dac_continuous_register_event_callback()
DAC_NULL_POINTER_CHECK
(
handle
)
;
dac_continuous.c:356
dac_continuous_enable()
ESP_RETURN_ON_FALSE
(
!
atomic_load
(
&
handle
->
is_enabled
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"dac continuous has already enabled"
)
;
dac_continuous.c:357
dac_continuous_enable()
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"the descriptor pool is not cleared"
)
;
dac_continuous.c:363
dac_continuous_enable()
DAC_NULL_POINTER_CHECK
(
handle
)
;
dac_continuous.c:385
dac_continuous_disable()
ESP_RETURN_ON_FALSE
(
atomic_load
(
&
handle
->
is_enabled
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"dac continuous has already disabled"
)
;
dac_continuous.c:386
dac_continuous_disable()
DAC_NULL_POINTER_CHECK
(
handle
)
;
dac_continuous.c:407
dac_continuous_start_async_writing()
ESP_RETURN_ON_FALSE
(
atomic_load
(
&
handle
->
is_enabled
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"dac continuous has not been enabled"
)
;
dac_continuous.c:408
dac_continuous_start_async_writing()
ESP_RETURN_ON_FALSE
(
handle
->
cbs
.
on_convert_done
,
ESP_ERR_INVALID_STATE
,
TAG
,
dac_continuous.c:409
dac_continuous_start_async_writing()
DAC_NULL_POINTER_CHECK
(
handle
)
;
dac_continuous.c:436
dac_continuous_stop_async_writing()
ESP_RETURN_ON_FALSE
(
atomic_load
(
&
handle
->
is_async
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"dac asynchronous writing has not been started"
)
;
dac_continuous.c:437
dac_continuous_stop_async_writing()
DAC_NULL_POINTER_CHECK_ISR
(
handle
)
;
dac_continuous.c:480
dac_continuous_write_asynchronously()
DAC_NULL_POINTER_CHECK_ISR
(
dma_buf
)
;
dac_continuous.c:481
dac_continuous_write_asynchronously()
DAC_NULL_POINTER_CHECK_ISR
(
data
)
;
dac_continuous.c:482
dac_continuous_write_asynchronously()
ESP_RETURN_ON_FALSE_ISR
(
atomic_load
(
&
handle
->
is_async
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"The asynchronous writing has not started"
)
;
dac_continuous.c:483
dac_continuous_write_asynchronously()
ESP_RETURN_ON_FALSE_ISR
(
i
<
handle
->
cfg
.
desc_num
,
ESP_ERR_NOT_FOUND
,
TAG
,
"Not found the corresponding DMA buffer"
)
;
dac_continuous.c:491
dac_continuous_write_asynchronously()
DAC_NULL_POINTER_CHECK
(
handle
)
;
dac_continuous.c:502
dac_continuous_write_cyclically()
ESP_RETURN_ON_FALSE
(
atomic_load
(
&
handle
->
is_enabled
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"This set of DAC channels has not been enabled"
)
;
dac_continuous.c:503
dac_continuous_write_cyclically()
ESP_RETURN_ON_FALSE
(
!
atomic_load
(
&
handle
->
is_async
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"Asynchronous writing is running, can't write cyclically"
)
;
dac_continuous.c:504
dac_continuous_write_cyclically()
ESP_RETURN_ON_FALSE
(
buf_size
<=
handle
->
cfg
.
buf_size
*
handle
->
cfg
.
desc_num
,
ESP_ERR_INVALID_ARG
,
TAG
,
dac_continuous.c:505
dac_continuous_write_cyclically()
ESP_ERR_TIMEOUT
,
TAG
,
"Get available descriptor timeout"
)
;
dac_continuous.c:552
s_dac_wait_to_load_dma_data()
DAC_NULL_POINTER_CHECK
(
handle
)
;
dac_continuous.c:582
dac_continuous_write()
DAC_NULL_POINTER_CHECK
(
buf
)
;
dac_continuous.c:583
dac_continuous_write()
ESP_RETURN_ON_FALSE
(
atomic_load
(
&
handle
->
is_enabled
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"This set of DAC channels has not been enabled"
)
;
dac_continuous.c:584
dac_continuous_write()
ESP_RETURN_ON_FALSE
(
!
atomic_load
(
&
handle
->
is_async
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"Asynchronous writing is running, can't write synchronously"
)
;
dac_continuous.c:585
dac_continuous_write()
ESP_RETURN_ON_FALSE
(
xSemaphoreTake
(
handle
->
mutex
,
timeout_tick
)
==
pdTRUE
,
ESP_ERR_TIMEOUT
,
TAG
,
"Take semaphore timeout"
)
;
dac_continuous.c:589
dac_continuous_write()
ESP_GOTO_ON_ERROR
(
s_dac_wait_to_load_dma_data
(
handle
,
buf
,
buf_size
,
&
w_size
,
timeout_tick
)
,
err
,
TAG
,
"Load data failed"
)
;
dac_continuous.c:611
dac_continuous_write()
ESP_GOTO_ON_ERROR
(
s_dac_wait_to_load_dma_data
(
handle
,
buf
,
buf_size
,
&
w_size
,
timeout_tick
)
,
err
,
TAG
,
"Load data failed"
)
;
dac_continuous.c:618
dac_continuous_write()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
TAG
is read by 12 functions:
All items filtered out
TAG
s_dac_alloc_dma_desc()
dac_continuous_new_channels()
dac_continuous_del_channels()
dac_continuous_register_event_callback()
dac_continuous_enable()
dac_continuous_disable()
dac_continuous_start_async_writing()
dac_continuous_stop_async_writing()
dac_continuous_write_asynchronously()
dac_continuous_write_cyclically()
s_dac_wait_to_load_dma_data()
dac_continuous_write()
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