ESP-IDF
TAG
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
TAG
TAG variable
Syntax
Show:
Summary
Declaration
from
esp_eth_mac_esp.c:36
static
const
char
*
TAG
=
"esp.emac"
;
Examples
References
from
examples
Code
Location
Referrer
static
const
char
*
TAG
=
"esp.emac"
;
esp_eth_mac_esp.c:36
ESP_GOTO_ON_FALSE
(
eth
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"can't set mac's mediator to null"
)
;
esp_eth_mac_esp.c:92
emac_esp32_set_mediator()
ESP_GOTO_ON_FALSE
(
!
emac_hal_is_mii_busy
(
&
emac
->
hal
)
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"phy is busy"
)
;
esp_eth_mac_esp.c:104
emac_esp32_write_phy_reg()
ESP_GOTO_ON_FALSE
(
!
busy
,
ESP_ERR_TIMEOUT
,
err
,
TAG
,
"phy is busy"
)
;
esp_eth_mac_esp.c:115
emac_esp32_write_phy_reg()
ESP_GOTO_ON_FALSE
(
reg_value
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"can't set reg_value to null"
)
;
esp_eth_mac_esp.c:124
emac_esp32_read_phy_reg()
ESP_GOTO_ON_FALSE
(
!
emac_hal_is_mii_busy
(
&
emac
->
hal
)
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"phy is busy"
)
;
esp_eth_mac_esp.c:126
emac_esp32_read_phy_reg()
ESP_GOTO_ON_FALSE
(
!
busy
,
ESP_ERR_TIMEOUT
,
err
,
TAG
,
"phy is busy"
)
;
esp_eth_mac_esp.c:136
emac_esp32_read_phy_reg()
ESP_GOTO_ON_FALSE
(
addr
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"can't set mac addr to null"
)
;
esp_eth_mac_esp.c:147
emac_esp32_set_addr()
ESP_GOTO_ON_FALSE
(
addr
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"can't set mac addr to null"
)
;
esp_eth_mac_esp.c:159
emac_esp32_get_addr()
ESP_GOTO_ON_ERROR
(
esp_intr_enable
(
emac
->
intr_hdl
)
,
err
,
TAG
,
"enable interrupt failed"
)
;
esp_eth_mac_esp.c:173
emac_esp32_set_link()
ESP_LOGD
(
TAG
,
"emac started"
)
;
esp_eth_mac_esp.c:175
emac_esp32_set_link()
ESP_GOTO_ON_ERROR
(
esp_intr_disable
(
emac
->
intr_hdl
)
,
err
,
TAG
,
"disable interrupt failed"
)
;
esp_eth_mac_esp.c:178
emac_esp32_set_link()
ESP_LOGD
(
TAG
,
"emac stopped"
)
;
esp_eth_mac_esp.c:180
emac_esp32_set_link()
ESP_GOTO_ON_FALSE
(
false
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"unknown link status"
)
;
esp_eth_mac_esp.c:183
emac_esp32_set_link()
ESP_LOGD
(
TAG
,
"working in %iMbps"
,
speed
==
ETH_SPEED_10M
?
10
:
100
)
;
esp_eth_mac_esp.c:211
emac_esp32_set_speed()
ESP_LOGD
(
TAG
,
"working in %s duplex"
,
duplex
==
ETH_DUPLEX_HALF
?
"half"
:
"full"
)
;
esp_eth_mac_esp.c:223
emac_esp32_set_duplex()
ESP_LOGD
(
TAG
,
"Flow control not enabled for the link"
)
;
esp_eth_mac_esp.c:254
emac_esp32_set_peer_pause_ability()
ESP_RETURN_ON_FALSE
(
data
!=
NULL
,
ESP_ERR_INVALID_ARG
,
TAG
,
"cannot set DMA tx desc flag to null"
)
;
esp_eth_mac_esp.c:267
emac_esp_custom_ioctl()
ESP_RETURN_ON_FALSE
(
data
!=
NULL
,
ESP_ERR_INVALID_ARG
,
TAG
,
"cannot clear DMA tx desc flag with null"
)
;
esp_eth_mac_esp.c:271
emac_esp_custom_ioctl()
ESP_RETURN_ON_ERROR
(
ESP_ERR_INVALID_ARG
,
TAG
,
"unknown io command: %i"
,
cmd
)
;
esp_eth_mac_esp.c:275
emac_esp_custom_ioctl()
ESP_LOGD
(
TAG
,
"insufficient TX buffer size"
)
;
esp_eth_mac_esp.c:285
emac_esp32_transmit()
ESP_GOTO_ON_FALSE
(
sent_len
==
exp_len
,
ESP_ERR_INVALID_SIZE
,
err
,
TAG
,
"insufficient TX buffer size"
)
;
esp_eth_mac_esp.c:304
emac_esp32_transmit_multiple_bufs()
ESP_GOTO_ON_FALSE
(
buf
&&
length
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"can't set buf and length to null"
)
;
esp_eth_mac_esp.c:315
emac_esp32_receive()
ESP_GOTO_ON_FALSE
(
expected_len
>=
receive_len
,
ESP_ERR_INVALID_SIZE
,
err
,
TAG
,
"received buffer longer than expected"
)
;
esp_eth_mac_esp.c:319
emac_esp32_receive()
ESP_LOGE
(
TAG
,
"frame copy error"
)
;
esp_eth_mac_esp.c:342
emac_esp32_rx_task()
ESP_LOGE
(
TAG
,
"received frame was truncated"
)
;
esp_eth_mac_esp.c:347
emac_esp32_rx_task()
ESP_LOGD
(
TAG
,
"receive len= %"
PRIu32
,
recv_len
)
;
esp_eth_mac_esp.c:350
emac_esp32_rx_task()
ESP_LOGE
(
TAG
,
"no mem for receive buffer"
)
;
esp_eth_mac_esp.c:355
emac_esp32_rx_task()
ESP_RETURN_ON_FALSE
(
ret
!=
ESP_ERR_INVALID_ARG
,
ESP_FAIL
,
TAG
,
"Set APLL clock coefficients failed"
)
;
esp_eth_mac_esp.c:383
emac_config_pll_clock()
ESP_LOGW
(
TAG
,
"APLL is occupied already, it is working at %"
PRIu32
" Hz"
,
real_freq
)
;
esp_eth_mac_esp.c:385
emac_config_pll_clock()
ESP_ERR_INVALID_STATE
,
TAG
,
"The (A/M)PLL is working at an unusable frequency %"
PRIu32
" Hz"
,
real_freq
)
;
esp_eth_mac_esp.c:405
emac_config_pll_clock()
ESP_GOTO_ON_ERROR
(
eth
->
on_state_changed
(
eth
,
ETH_STATE_LLINIT
,
NULL
)
,
err
,
TAG
,
"lowlevel init failed"
)
;
esp_eth_mac_esp.c:415
emac_esp32_init()
ESP_GOTO_ON_FALSE
(
to
<
emac
->
sw_reset_timeout_ms
/
10
,
ESP_ERR_TIMEOUT
,
err
,
TAG
,
"reset timeout"
)
;
esp_eth_mac_esp.c:425
emac_esp32_init()
ESP_GOTO_ON_ERROR
(
esp_read_mac
(
emac
->
addr
,
ESP_MAC_ETH
)
,
err
,
TAG
,
"fetch ethernet mac address failed"
)
;
esp_eth_mac_esp.c:434
emac_esp32_init()
ESP_GOTO_ON_FALSE
(
emac
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"no mem for esp emac object"
)
;
esp_eth_mac_esp.c:559
emac_esp_alloc_driver_obj()
ESP_GOTO_ON_ERROR
(
emac_esp_new_dma
(
NULL
,
&
emac
->
emac_dma_hndl
)
,
err
,
TAG
,
"create EMAC DMA object failed"
)
;
esp_eth_mac_esp.c:561
emac_esp_alloc_driver_obj()
ESP_GOTO_ON_ERROR
(
esp_pm_lock_create
(
ESP_PM_APB_FREQ_MAX
,
0
,
"emac_esp32"
,
&
emac
->
pm_lock
)
,
err
,
TAG
,
"create pm lock failed"
)
;
esp_eth_mac_esp.c:565
emac_esp_alloc_driver_obj()
ESP_GOTO_ON_FALSE
(
xReturned
==
pdPASS
,
ESP_FAIL
,
err
,
TAG
,
"create emac_rx task failed"
)
;
esp_eth_mac_esp.c:574
emac_esp_alloc_driver_obj()
ESP_GOTO_ON_ERROR
(
emac_esp_iomux_init_mii
(
mii_data_gpio
)
,
err
,
TAG
,
"invalid EMAC MII data plane GPIO"
)
;
esp_eth_mac_esp.c:594
emac_esp_config_data_interface()
ESP_GOTO_ON_ERROR
(
emac_esp_iomux_init_rmii
(
rmii_data_gpio
)
,
err
,
TAG
,
"invalid EMAC RMII data plane GPIO"
)
;
esp_eth_mac_esp.c:608
emac_esp_config_data_interface()
ESP_GOTO_ON_ERROR
(
emac_esp_iomux_rmii_clk_input
(
esp32_emac_config
->
clock_config
.
rmii
.
clock_gpio
)
,
err
,
TAG
,
"invalid EMAC RMII clock input GPIO"
)
;
esp_eth_mac_esp.c:611
emac_esp_config_data_interface()
ESP_GOTO_ON_ERROR
(
emac_config_pll_clock
(
emac
)
,
err
,
TAG
,
"Configure (A/M)PLL for RMII failed"
)
;
esp_eth_mac_esp.c:616
emac_esp_config_data_interface()
err
,
TAG
,
"start APLL clock output failed"
)
;
esp_eth_mac_esp.c:629
emac_esp_config_data_interface()
ESP_GOTO_ON_ERROR
(
emac_esp_iomux_rmii_clk_ouput
(
esp32_emac_config
->
clock_config
.
rmii
.
clock_gpio
)
,
err
,
TAG
,
"invalid EMAC RMII clock output GPIO"
)
;
esp_eth_mac_esp.c:633
emac_esp_config_data_interface()
ESP_GOTO_ON_FALSE
(
false
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"invalid EMAC clock mode"
)
;
esp_eth_mac_esp.c:640
emac_esp_config_data_interface()
ESP_GOTO_ON_FALSE
(
false
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"invalid EMAC Data Interface:%i"
,
esp32_emac_config
->
interface
)
;
esp_eth_mac_esp.c:645
emac_esp_config_data_interface()
ESP_RETURN_ON_FALSE
(
config
,
NULL
,
TAG
,
"can't set mac config to null"
)
;
esp_eth_mac_esp.c:656
esp_eth_mac_new_esp32()
TAG
,
"invalid interrupt priority: %d"
,
esp32_config
->
intr_priority
)
;
esp_eth_mac_esp.c:659
esp_eth_mac_new_esp32()
ESP_GOTO_ON_FALSE
(
ret_code
==
ESP_OK
,
NULL
,
err
,
TAG
,
"alloc driver object failed"
)
;
esp_eth_mac_esp.c:663
esp_eth_mac_new_esp32()
ESP_GOTO_ON_FALSE
(
ret_code
==
ESP_OK
,
NULL
,
err
,
TAG
,
"alloc emac interrupt failed"
)
;
esp_eth_mac_esp.c:686
esp_eth_mac_new_esp32()
ESP_GOTO_ON_FALSE
(
ret_code
==
ESP_OK
,
NULL
,
err
,
TAG
,
"SMI GPIO init failed"
)
;
esp_eth_mac_esp.c:690
esp_eth_mac_new_esp32()
ESP_GOTO_ON_FALSE
(
ret_code
==
ESP_OK
,
NULL
,
err
,
TAG
,
"config emac interface failed"
)
;
esp_eth_mac_esp.c:693
esp_eth_mac_new_esp32()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
TAG
is read by 19 functions:
All items filtered out
TAG
emac_esp32_set_mediator()
emac_esp32_write_phy_reg()
emac_esp32_read_phy_reg()
emac_esp32_set_addr()
emac_esp32_get_addr()
emac_esp32_set_link()
emac_esp32_set_speed()
emac_esp32_set_duplex()
emac_esp32_set_peer_pause_ability()
emac_esp_custom_ioctl()
emac_esp32_transmit()
emac_esp32_transmit_multiple_bufs()
emac_esp32_receive()
emac_esp32_rx_task()
emac_config_pll_clock()
emac_esp32_init()
emac_esp_alloc_driver_obj()
emac_esp_config_data_interface()
esp_eth_mac_new_esp32()
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