text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
< ADC1 channel 1 is GPIO1 */ ADC1_CHANNEL_2, /*!< ADC1 channel 2 is GPIO2 */ ADC1_CHANNEL_3, /*!< ADC1 channel 3 is GPIO3 */ ADC1_CHANNEL_4, /*!< ADC1 channel 4 is GPIO4 */ ADC1_CHANNEL_MAX, } adc1_channel_t; #elif CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_E...
968
< ADC2 channel 1 is GPIO0 (ESP32), GPIO12 (ESP32-S2) */ ADC2_CHANNEL_2, /*!< ADC2 channel 2 is GPIO2 (ESP32), GPIO13 (ESP32-S2) */ ADC2_CHANNEL_3, /*!< ADC2 channel 3 is GPIO15 (ESP32), GPIO14 (ESP32-S2) */ ADC2_CHANNEL_4, /*!< ADC2 channel 4 is GPIO13 (ESP32), GPIO15 (ESP32-S2) */ ADC2_CH...
968
uint32_t conv_num_each_intr; ///< Bytes of data that can be converted in 1 interrupt. This should be in multiples of `SOC_ADC_DIGI_DATA_BYTES_PER_CONV`. uint32_t adc1_chan_mask; ///< Channel list of ADC1 to be initialized. uint32_t adc2_chan_mask; ///< Channel list of ADC2 to be initialize...
968
adc_digi_output_format_t format; ///< ADC DMA conversion output format, see `adc_digi_output_format_t`. } adc_digi_configuration_t; #endif // #if SOC_ADC_DMA_SUPPORTED #ifdef __cplusplus } #endif
968
/* */ #pragma once #include #include "esp_err.h" #include "driver/gpio.h" #include "driver/sigmadelta_types_legacy.h" #if !CONFIG_SDM_SUPPRESS_DEPRECATE_WARN #warning "The legacy sigma-delta driver is deprecated, please use driver/sdm.h" #endif #ifdef __cplusplus extern "C" { #endif /** */ esp_err_t sigmadelta_...
969
/* */ #pragma once #include #include #include "esp_bit_defs.h" #include "soc/soc_caps.h" #include "hal/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef enum { MCPWM0A = 0, /*! 1 MCPWM_UNIT_1, /*!<MCPWM unit1 selected*/ #endif MCPWM_UNIT_MAX, /*!<Max number of MCPWM units...
970
<Enable carrier output inversion*/ MCPWM_CARRIER_OUT_IVT_EN, /*!<Disable carrier output inversion*/ } mcpwm_carrier_out_ivt_t; /** */ typedef enum { MCPWM_SELECT_F0, /*!<Select F0 as input*/ MCPWM_SELECT_F1, /*!<Select F1 as input*/ MCPWM_SELECT_F2, /*!<Select F2 as input*/ } mcpwm_fault_signal_t; ...
970
<the input sync signal will be routed to its sync output path*/ MCPWM_SWSYNC_SOURCE_TEZ, /*!<sync signal generated when timer counts to zero*/ MCPWM_SWSYNC_SOURCE_TEP, /*!<sync signal generated when timer counts to peak*/ MCPWM_SWSYNC_SOURCE_DISABLED, /*!<timer does not generate sync sign...
970
<For asymmetric MCPWM*/ MCPWM_UP_DOWN_COUNTER, /*!<For symmetric MCPWM, frequency is half of MCPWM frequency set*/ MCPWM_COUNTER_MAX, /*!<Maximum counter mode*/ } mcpwm_counter_type_t; /** */ typedef enum { MCPWM_DUTY_MODE_0 = 0, /*!<Active high duty, i.e. duty cycle proportional to high time f...
970
<Bypass the deadtime*/ MCPWM_BYPASS_RED, /*!<MCPWMXA Out = MCPWMXA In with no delay, MCPWMXB Out = MCPWMXA In with falling edge delay*/ MCPWM_BYPASS_FED, /*!<MCPWMXA Out = MCPWMXA In with rising edge delay, MCPWMXB Out = MCPWMXB In with no delay*/ MCPWM_ACTIVE_HIGH_MODE, ...
970
<MCPWMXA Out = MCPWMXB Out = MCPWMXB In with rising edge delay as well as falling edge delay*/ MCPWM_DEADTIME_TYPE_MAX, /*!<Maximum number of supported dead time modes*/ } mcpwm_deadtime_type_t; /** */ typedef enum { MCPWM_ACTION_NO_CHANGE = 0, /*!<No change in the output*/ MCPWM_ACTION_FORCE_...
970
< @deprecated Make MCPWMXA output toggle*/ /// @deprecated MCPWM select action to be taken on MCPWMXB when fault occurs typedef mcpwm_output_action_t mcpwm_action_on_pwmxb_t; #define MCPWM_NO_CHANGE_IN_MCPWMXB MCPWM_ACTION_NO_CHANGE /*!< @deprecated No change in MCPWMXB output*/ #define MCPWM_FORCE_MCPWMXB_LOW ...
970
<Corresponding timestamp when event occurs. Clock rate = APB(usually 80M)*/ } cap_event_data_t; /** typedef bool (*cap_isr_cb_t)(mcpwm_unit_t mcpwm, mcpwm_capture_channel_id_t cap_channel, const cap_event_data_t *edata, void *user_data); /** */ typedef struct { uint32_t frequency; ...
970
5%)*/ uint8_t pulse_width_in_os; /*!<Set pulse width of first pulse in one shot mode = (carrier period)*(pulse_width_in_os + 1), should be less then 16*/ mcpwm_carrier_out_ivt_t carrier_ivt_mode; /*!<Invert output of carrier*/ } mcpwm_carrier_config_t; /** */ typedef struct { mcpwm_captur...
970
<Counting direction to be set after sync */ } mcpwm_sync_config_t; #ifdef __cplusplus } #endif
970
/* */ #pragma once #include #include "sdkconfig.h" #include "esp_err.h" #include "driver/pcnt_types_legacy.h" #if !CONFIG_PCNT_SUPPRESS_DEPRECATE_WARN #warning "legacy pcnt driver is deprecated, please migrate to use driver/pulse_cnt.h" #endif #ifdef __cplusplus extern "C" { #endif /** */ esp_err_t pcnt_unit_co...
971
/* */ #pragma once #warning driver/periph_ctrl.h header is no longer used, and will be removed in future versions. #include "esp_private/periph_ctrl.h"
972
/* */ #pragma once #include #include #include "esp_err.h" #include "hal/parlio_types.h" #include "hal/gpio_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct parlio_tx_unit_t *parlio_tx_unit_handle_t; /** */ typedef struct parlio_rx_unit_t *parlio_rx_unit_handle_t; /** */ typedef struct p...
973
/* */ #pragma once #include #include #include #include "esp_err.h" #include "driver/parlio_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { size_t trans_queue_depth; /*!< Depth of internal transaction queue */ size_t max_recv_size; ...
974
< The the external clock input pin. Only be valid when select PARLIO_CLK_SRC_EXTERNAL as clock source. Set to -1 if not needed */ gpio_num_t clk_out_gpio_num; /*!< The sample/bit clock output pin. Set to -1 if not needed */ gpio_num_t valid_gpio_num; /*!< GPIO number of t...
974
g. I2S bclk), a non-free-running clock will start when there are data transporting and stop when the bus idle (e.g. SPI). This flag only takes effect when select PARLIO_CLK_SRC_EXTERNAL as clock source */ ...
974
So that the signals that have attached to those GPIO won't be overwritten. Mainly used for self communication or self monitoring */ } flags; /*!< RX driver flags */ } parlio_rx_unit_config_t; /** */ esp_err_t parlio_n...
974
*/ parlio_sample_edge_t sample_edge; /*!< Parallel IO sample edge */ parlio_bit_pack_order_t bit_pack_order; /*!< Set how we pack the bits into one bytes */ uint32_t eof_data_len; /*!< Set the data length to trigger the End Of Frame (EOF, i.e. transaction done...
974
< Extra flags */ } parlio_rx_level_delimiter_config_t; /** */ esp_err_t parlio_new_rx_level_delimiter(const parlio_rx_level_delimiter_config_t *config, parlio_rx_delimiter_handle_t *ret_delimiter); /** */ typedef struct { uint32_t valid_sig_line_id; /*...
974
< Set how we pack the bits into one bytes */ uint32_t eof_data_len; /*!< Set the data length to trigger the End Of Frame (EOF, i.e. transaction done) interrupt, if the data length is set to `0`, that mean the EOF will only triggers ...
974
< Whether data bit is included in the end pulse, only valid when `has_end_pulse` is true */ uint32_t has_end_pulse: 1; /*!< Whether there's an end pulse to terminate the transaction, if no, the transaction will be terminated by user confi...
974
< Set the data length to trigger the End Of Frame (EOF, i.e. transaction done) interrupt, if the data length is set to `0`, that mean the EOF will only triggers when the end pulse detected, please ensure th...
974
< The delimiter of this receiving transaction */ struct { uint32_t partial_rx_en: 1; /*!< Whether this is an infinite transaction that supposed to receive continuously and partially */ uint32_t indirect_mount: 1; /*!< This flag only take effect when `partial_rx_en` i...
974
< The data buffer address that just finished receiving */ size_t recv_bytes; /*!< The number of received bytes in the data buffer */ } parlio_rx_event_data_t; /** */ typedef bool (*parlio_rx_callback_t)(parlio_rx_unit_handle_t rx_unit, const parlio_rx_event_data_t *edata, void *user_d...
974
/* */ #pragma once #include #include #include "esp_err.h" #include "driver/parlio_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { parlio_clock_source_t clk_src; /*!< Parallel IO internal clock source */ gpio_num_t clk_in_gpio_num; /*!< If the clock source is input from exter...
975
< Parallel IO data GPIO numbers, if any GPIO is not used, you can set it to `-1` */ gpio_num_t clk_out_gpio_num; /*!< GPIO number of the output clock signal, the clock is synced with TX data */ gpio_num_t valid_gpio_num; /*!< GPIO number of the valid signal, which stays high when transferring data. ...
975
e. by data_gpio_nums[PARLIO_TX_UNIT_MAX_DATA_WIDTH-1]. High level to enable the clock output, low to disable */ uint32_t io_loop_back: 1; /*!< For debug/test, the signal output from the GPIO will be fed to the input path as well */ } flags; /*!< Extra configuration flags */ } parlio_tx_...
975
< The value on the data line when the parallel IO is in idle state */ } parlio_transmit_config_t; /** */ esp_err_t parlio_tx_unit_transmit(parlio_tx_unit_handle_t tx_unit, const void *payload, size_t payload_bits, const parlio_transmit_config_t *config); /** */ esp_err_t parlio_tx_unit_wait_all_done(parlio_tx_unit_...
975
/* */ #pragma once #include "sdkconfig.h" #ifdef __cplusplus extern "C" { #endif #if CONFIG_PARLIO_ISR_IRAM_SAFE #define TEST_PARLIO_CALLBACK_ATTR IRAM_ATTR #define TEST_PARLIO_MEM_ALLOC_CAPS (MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT) #else #define TEST_PARLIO_CALLBACK_ATTR #define TEST_PARLIO_MEM_ALLOC_CAPS MALLO...
976
/* */ #pragma once #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "soc/soc_caps.h" #include "soc/gdma_channel.h" #include "hal/parlio_types.h" #include "hal/parlio_hal.h" #include "hal/parlio_ll.h" #include "hal/dma_types.h" #include "hal/cache_hal.h" #include "hal/cache_ll.h" #include "rom/cache.h" ...
977
(parlio_dma_desc_t *)(CACHE_LL_L2MEM_NON_CACHE_ADDR(desc)) : NULL) #else #define PARLIO_GET_NON_CACHED_DESC_ADDR(desc) (desc) #endif // CACHE_LL_L2MEM_NON_CACHE_ADDR #if SOC_PERIPH_CLK_CTRL_SHARED #define PARLIO_CLOCK_SRC_ATOMIC() PERIPH_RCC_ATOMIC() #else #define PARLIO_CLOCK_SRC_ATOMIC() #endif #if !SOC_RCC_IS_I...
977
/* */ #pragma once #include_next "lwip/sockets.h" #include "sdkconfig.h" #ifdef __cplusplus extern "C" { #endif static inline int accept(int s,struct sockaddr *addr,socklen_t *addrlen) { return lwip_accept(s,addr,addrlen); } static inline int bind(int s,const struct sockaddr *name, socklen_t namelen) { return lwip_...
978
/* */ #pragma once #include #include_next "lwip/netdb.h" #include "sdkconfig.h" #ifdef __cplusplus extern "C" { #endif static inline int gethostbyname_r(const char *name, struct hostent *ret, char *buf, size_t buflen, struct hostent **result, int *h_errnop) { return lwip_gethostbyname_r(name, ret, buf, buflen, res...
979
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
980
/* */ #ifndef __ESP_SNTP_H__ #define __ESP_SNTP_H__ #include "lwip/err.h" #include "lwip/ip.h" #ifdef __cplusplus extern "C" { #endif /* */ /// Aliases for esp_sntp prefixed API (inherently thread safe) #define esp_sntp_sync_time sntp_sync_time #define esp_sntp_set_sync_mode sntp_set_sync_mode #define esp_sntp_...
981
< Smooth time updating. Time error is gradually reduced using adjtime function. If the difference between SNTP response time and system time is large (more than 35 minutes) then update immediately. */ } sntp_sync_mode_t; /// SNTP sync status typedef enum { SNTP_SYNC_STATUS_RESET, // Reset status. SNTP_...
981
defined(ESP_LWIP_COMPONENT_BUILD) && !defined(ESP_NETIF_COMPONENT_BUILD) /** */ static inline __attribute__((deprecated("use esp_sntp_setoperatingmode() instead"))) void sntp_setoperatingmode(u8_t operating_mode) { esp_sntp_setoperatingmode((esp_sntp_operatingmode_t)operating_mode); } static inline __attribute__(...
981
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #include #include "esp_err.h" #include "lwip/ip_addr.h" /** typedef void *esp_ping_handle_t; /** typedef struct { /** void *cb_args; /** void (*on_ping_success)(esp_ping_handle_t hdl, void *args); /** void (*on_ping_timeout)(esp_...
982
< Target IP address, either IPv4 or IPv6 */ uint32_t task_stack_size; /*!< Stack size of internal ping task */ uint32_t task_prio; /*!< Priority of internal ping task */ uint32_t interface; /*!< Netif index, interface=0 means NETIF_NO_INDEX*/ } esp_ping_config_t; /** #define ESP_PING_DEFAULT_CO...
982
< Type of service of a ping procedure */ ESP_PING_PROF_TTL, /*!< Time to live of a ping procedure */ ESP_PING_PROF_REQUEST, /*!< Number of request packets sent out */ ESP_PING_PROF_REPLY, /*!< Number of reply packets received */ ESP_PING_PROF_IPADDR, /*!< IP address of replied target */ ESP_P...
982
/* #ifndef LWIP_PING_H #define LWIP_PING_H #ifdef __cplusplus extern "C" { #endif /** */ #ifndef PING_USE_SOCKETS #define PING_USE_SOCKETS LWIP_SOCKET #endif int ping_init(void) __attribute__ ((deprecated)); #ifdef ESP_PING void ping_deinit(void) __attribute__ ((deprecated)); #endif #if !PING_USE_SOCKETS voi...
983
// Copyright 2017 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
984
/* */ #ifndef __DHCPS_H__ #define __DHCPS_H__ #include "sdkconfig.h" #include #include "lwip/ip_addr.h" #include "lwip/err.h" #ifdef __cplusplus extern "C" { #endif typedef struct dhcps_state{ s16_t state; } dhcps_state; typedef struct dhcps_msg { u8_t op, htype, hlen, hops; u8_t xid[4]; ...
985
= 0; } static inline bool dhcps_dns_enabled (dhcps_offer_t offer) { return (offer & OFFER_DNS) != 0; } typedef struct dhcps_t dhcps_t; /** */ dhcps_t *dhcps_new(void); /** */ void dhcps_delete(dhcps_t *dhcps); /** */ err_t dhcps_start(dhcps_t *dhcps, struct netif *netif, ip4_addr_t ip); /** */ err_t dhcps...
985
/* */ #pragma once #warning "sntp.h in IDF's lwip port folder is deprecated. Please include esp_sntp.h" /* */ #include "esp_sntp.h"
986
/** */ /* */ #ifndef LWIP_HDR_SYS_SOCKETS_H #define LWIP_HDR_SYS_SOCKETS_H #include "lwip/sockets.h" /* SOMAXCONN is expected to be found in this header too, while for ESP32 port is defined in net/if.h */ #include #endif /* LWIP_HDR_SYS_SOCKETS_H */
987
/* */ #ifndef __ARCH_CC_H__ #define __ARCH_CC_H__ #include #include #include #include #include "sdkconfig.h" #include "arch/sys_arch.h" #ifdef __cplusplus extern "C" { #endif #ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN #endif // BYTE_ORDER #define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS #define htons(x)...
988
h" #define LWIP_ESP_LOG_FUNC(format, ...) ESP_LOG_LEVEL(ESP_LOG_DEBUG, "lwip", format, ##__VA_ARGS__) #define LWIP_PLATFORM_DIAG(x) LWIP_ESP_LOG_FUNC x #else // lwip debugs routed to printf #define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0) #endif #ifdef NDEBUG #define LWIP_NOASSERT 1 #else // Assertions enable...
988
) #define LWIP_ERROR(message, expression, handler) do { if (!(expression)) { \ handler;}} while(0) #endif // LWIP_DEBUG #endif /* NDEBUG */ #ifdef __cplusplus } #endif #endif /* __ARCH_CC_H__ */
988
/* */ #ifdef __cplusplus extern "C" { #endif void esp_vfs_lwip_sockets_register(void); #ifdef __cplusplus } #endif
989
/* */ #ifndef __PERF_H__ #define __PERF_H__ #define PERF_START /* null definition */ #define PERF_STOP(x) /* null definition */ #endif /* __PERF_H__ */
990
/* */ #ifndef LWIP_ESP_DEFAULT_HOOKS_H_ #define LWIP_ESP_DEFAULT_HOOKS_H_ #include "lwip/ip_addr.h" #include "lwip/arch.h" #include "lwip/err.h" #include "lwip/pbuf.h" #include "netif/dhcp_state.h" #ifdef ESP_IDF_LWIP_HOOK_FILENAME #include ESP_IDF_LWIP_HOOK_FILENAME #endif #ifdef __cplusplus extern "C" { #endif ...
991
.. */ #if defined(CONFIG_LWIP_HOOK_ND6_GET_GW_CUSTOM) || defined(CONFIG_LWIP_HOOK_ND6_GET_GW_DEFAULT) const ip6_addr_t *lwip_hook_nd6_get_gw(struct netif *netif, const ip6_addr_t *dest); #define LWIP_HOOK_ND6_GET_GW lwip_hook_nd6_get_gw #endif /* CONFIG_LWIP_HOOK_ND6_GET_GATEWAY... */ #if defined(CONFIG_LWIP_HOOK_IP...
991
.. */ #ifdef CONFIG_LWIP_IPV4 struct netif * ip4_route_src_hook(const ip4_addr_t *src,const ip4_addr_t *dest); struct dhcp; struct netif; struct dhcp_msg; void dhcp_parse_extra_opts(struct dhcp *dhcp, uint8_t state, uint8_t option, uint8_t len, struct pbuf* p, uint16_t offset); void dhcp_append_extra_opts(struct net...
991
/* */ #pragma once #include #include #ifdef __cplusplus extern "C" { #endif #define IPV6_MULTICAST_IF 0x300 #define IPV6_MULTICAST_HOPS 0x301 #define IPV6_MULTICAST_LOOP 0x302 struct lwip_sock; bool lwip_setsockopt_impl_ext(struct lwip_sock* sock, int level, int optname, const void *optval, uint32_t optlen,...
992
/** */ /* */ #include "lwip/netdb.h" #ifdef __cplusplus extern "C" { #endif #ifdef ESP_PLATFORM int getnameinfo(const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags); #endif #ifdef __cplusplus } #endif
993
/* */ #ifndef LWIP_HDR_ESP_LWIPOPTS_H #define LWIP_HDR_ESP_LWIPOPTS_H #include "sdkconfig.h" #include // For memcpy #include // For malloc/free #include #include #include #include #include #include #include "esp_task.h" #include "esp_random.h" #include "sdkconfig.h" #include "sntp/sntp_get_set_time.h"...
994
", sys_thread_tcpip(LWIP_CORE_LOCK_QUERY_HOLDER)); } while(0) #endif /* CONFIG_LWIP_CHECK_THREAD_SAFETY */ #else #define LWIP_TCPIP_CORE_LOCKING 0 #define LWIP_TCPIP_CORE_LOCKING_INPUT 0 #ifdef CONFIG_LWIP_CHECK_THREAD_SAFETY #define LWIP_ASSERT_CORE_LOCKED() do { LWIP_ASSERT("Required to run in TCPIP co...
994
( dhcp_set_state(dhcp, DHCP_STATE_BOUND), \ dhcp_network_changed(netif), \ (result) = ERR_OK , \ true ) : \ false) #else #define LWIP_HOOK_DHCP_PRE_DISCOVERY(netif, result) (false) #endif /* CONFIG_LWIP_DHCP_RESTORE_LAST_IP */ /...
994
Please use ESP_IDF_LWIP_HOOK_FILENAME to insert additional hook #endif #define LWIP_HOOK_FILENAME "lwip_default_hooks.h" #define LWIP_HOOK_IP4_ROUTE_SRC ip4_route_src_hook #if LWIP_NETCONN_FULLDUPLEX #define LWIP_DONE_SOCK(sock) done_socket(sock) #else #define LWIP_DONE_SOCK(sock) ...
994
..) ESP_LOGI("lwip", __VA_ARGS__) #define ESP_PING 1 #define ESP_HAS_SELECT 1 #define ESP_IP4_ROUTE 1 #define ESP_AUTO_IP 1 #define ESP_PBUF 1 #define ESP_PPP 1 #define ESP_IPV6 ...
994
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP */ #define mem_clib_malloc malloc #define mem_clib_calloc calloc #endif /* CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP */ /* */ #if !LWIP_IPV4 && !LWIP_IPV6 #error "Please enable at least one IP stack (either IPv4 or IPv6 or both)" #endif #ifdef __cplusplus } #endif #endif /* LWIP_HDR...
994
/* */ #ifndef LWIP_ESP_DHCP_STATE_H #define LWIP_ESP_DHCP_STATE_H #include #include "lwip/netif.h" #ifdef __cplusplus extern "C" { #endif bool dhcp_ip_addr_restore(struct netif *netif); void dhcp_ip_addr_store(struct netif *netif); void dhcp_ip_addr_erase(struct netif *netif); #ifdef __cplusplus } #endif #end...
995
/* */ #ifndef INET_H_ #define INET_H_ #include "lwip/inet.h" #endif /* INET_H_ */
996
/* */ #ifndef _NETINET_TCP_H #define _NETINET_TCP_H #include "lwip/tcp.h" #endif /* _NETINET_TCP_H */
997
/* */ #ifndef IN_H_ #define IN_H_ #include "lwip/inet.h" #define IN6_IS_ADDR_MULTICAST(a) IN_MULTICAST(a) #endif /* IN_H_ */
998
/* */ #ifndef __SNTP_GET_SET_TIME_H__ #define __SNTP_GET_SET_TIME_H__ #include #ifdef __cplusplus extern "C" { #endif /* */ /* */ uint32_t sntp_get_sync_interval(void); /** */ void sntp_set_system_time(uint32_t sec, uint32_t us); /** */ void sntp_get_system_time(uint32_t* sec, uint32_t* us); #ifdef __cpl...
999
/* */ #ifndef _LWIP_DEBUG_H #define _LWIP_DEBUG_H #ifdef __cplusplus extern "C" { #endif void dbg_lwip_tcp_pcb_show(void); void dbg_lwip_udp_pcb_show(void); void dbg_lwip_tcp_rxtx_show(void); void dbg_lwip_udp_rxtx_show(void); void dbg_lwip_mem_cnt_show(void); #ifdef __cplusplus } #endif #endif // _LWIP_DEBUG_H
1,000
/* */ #ifndef __SYS_ARCH_H__ #define __SYS_ARCH_H__ #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "freertos/semphr.h" #ifdef __cplusplus extern "C" { #endif typedef SemaphoreHandle_t sys_sem_t; typedef SemaphoreHandle_t sys_mutex_t; typedef TaskHandle_t sys_thread_t...
1,001
pdFALSE : pdTRUE ) #define sys_sem_set_invalid( x ) ( ( *x ) = NULL ) void sys_delay_ms(uint32_t ms); sys_sem_t* sys_thread_sem_init(void); void sys_thread_sem_deinit(void); sys_sem_t* sys_thread_sem_get(void); typedef enum { LWIP_CORE_LOCK_QUERY_HOLDER, LWIP_CORE_LOCK_MARK_HOLDER, LWIP_CORE_LOCK_UNMARK_...
1,001
/* */ #pragma once
1,002
/* */ #pragma once #include "sdkconfig.h" #ifdef LWIP_HDR_LINUX_SYS_SOCKETS_H // only if we prefer linux system sockets, include from system paths #include_next #elif CONFIG_IDF_TARGET_LINUX // need to declare, as on linux we bypass IDF vfs and wrap posix io functions extern int fcntl(int s, int cmd, ...); #endif //...
1,003
/* */ #pragma once #ifdef LWIP_HDR_LINUX_SYS_SOCKETS_H /* only if we prefer linux system sockets, include from system paths */ #include_next #else /* Include lwip sockets by default */ #include "lwip/sockets.h" #endif /* LWIP_HDR_LINUX_SYS_SOCKETS_H */
1,004
/* */ #ifndef LWIP_ARCH_CC_H #define LWIP_ARCH_CC_H /* see https://sourceforge.net/p/predef/wiki/OperatingSystems/ */ #if defined __ANDROID__ #define LWIP_UNIX_ANDROID #elif defined __linux__ #define LWIP_UNIX_LINUX #elif defined __APPLE__ #define LWIP_UNIX_MACH #elif defined __OpenBSD__ #define LWIP_UNIX_OPENBSD #el...
1,005
/* */ #pragma once static inline void esp_vfs_lwip_sockets_register(void) {}
1,006
/* */ #pragma once #include "sd_protocol_defs.h"
1,007
/* */ #pragma once #include "sdkconfig.h" #include "sdmmc_types.h" #include "soc/soc_caps.h" #ifdef __cplusplus extern "C" { #endif #define SDMMC_HOST_SLOT_0 0 ///< SDMMC slot 0 #define SDMMC_HOST_SLOT_1 1 ///< SDMMC slot 1 /** */ #define SDMMC_HOST_DEFAULT() {\ .flags = SDMMC_HOST_FLAG_8BIT ...
1,008
command_timeout_ms = 0, \ .get_real_freq = &sdmmc_host_get_real_freq, \ .input_delay_phase = SDMMC_DELAY_PHASE_0, \ .set_input_delay = &sdmmc_host_set_input_delay \ } #define SDMMC_SLOT_NO_CD GPIO_NUM_NC ///< indicates that card detect line is not used #define SDMMC_SLOT_NO_WP GPIO_NUM_NC ...
1,008
cd = SDMMC_SLOT_NO_CD, \ .wp = SDMMC_SLOT_NO_WP, \ .width = SDMMC_SLOT_WIDTH_DEFAULT, \ .flags = 0, \ } #elif CONFIG_IDF_TARGET_ESP32S3 #define SDMMC_SLOT_CONFIG_DEFAULT() {\ .clk = GPIO_NUM_14, \ .cmd = GPIO_NUM_15, \ .d0 = GPIO_NUM_2, \ .d1 = GPIO_NUM_4, \ .d2 = GPIO_NUM_12, \ ....
1,008
/* */ #pragma once #include "soc/soc_caps.h" #if SOC_SDMMC_HOST_SUPPORTED #include #include #include "esp_err.h" #include "driver/sdmmc_types.h" #include "driver/sdmmc_default_configs.h" #include "driver/gpio.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { #ifdef SOC_SDMMC_USE_GPIO_MATRIX ...
1,009
/* */ #pragma once #include "sd_protocol_types.h"
1,010
/* */ #pragma once #include "sd_protocol_types.h" #ifdef __cplusplus extern "C" { #endif /* Defines for readability */ #define SLOT_0 0 #define SLOT_1 1 #define NO_DDR 0 #define WITH_DDR 1 /* Helper functions to initialize/deinintalize the host (SDMMC/SDSPI) inside the test */ #if SOC_SDMMC_HOST_SUPPORTED /** ...
1,011
/* */ #pragma once #include #include "sdkconfig.h" #include "soc/soc_caps.h" #include "driver/sdspi_host.h" #if SOC_SDMMC_HOST_SUPPORTED #include "driver/sdmmc_host.h" #endif #include "driver/gpio.h" #include "driver/spi_common.h" #ifdef __cplusplus extern "C" { #endif /** */ /** */ typedef struct { bool s...
1,012
/* */ #pragma once #include "sd_protocol_types.h" #ifdef __cplusplus extern "C" { #endif /** */ void sdmmc_test_rw_performance(sdmmc_card_t *card, FILE *perf_log); /** */ void sdmmc_test_rw_unaligned_buffer(sdmmc_card_t* card); /** */ void sdmmc_test_rw_with_offset(sdmmc_card_t* card); #ifdef __cplusplus }; #...
1,013
/* */ #pragma once #include "driver/sdmmc_types.h" #ifdef __cplusplus extern "C" { #endif /** */ void sdmmc_test_sd_erase_blocks(sdmmc_card_t* card); #ifdef __cplusplus }; #endif
1,014
/* */ #pragma once #include "sd_protocol_types.h" #ifdef __cplusplus extern "C" { #endif /** */ void sdmmc_test_cd_input(int gpio_cd_num, const sdmmc_host_t* config); /** */ void sdmmc_test_wp_input(int gpio_wp_num, const sdmmc_host_t* config); #ifdef __cplusplus }; #endif
1,015
/* */ #pragma once #include #include #include "esp_err.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" #include "soc/sdmmc_periph.h" typedef struct { uint32_t sdmmc_status; ///< masked SDMMC interrupt status uint32_t dma_status; ///< masked DMA interrupt status } sdmmc_event_t; ...
1,016
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif //Interrupt hardware source table //This table is decided by hardware, don't touch this. typedef enum { ETS_WIFI_MAC_INTR_SOURCE = 0, /**< interrupt of WiFi MAC, level*/ ETS_WIFI_MAC_NMI_SOURCE, /**< interru...
1,017
*/ ETS_GPIO_INTR_SOURCE, /**< interrupt of GPIO, level*/ ETS_GPIO_NMI_SOURCE, /**< interrupt of GPIO, NMI*/ ETS_SPI1_INTR_SOURCE, /**< interrupt of SPI1, level, SPI1 is for flash read/write, do not use this*/ ETS_SPI2_INTR_SOURCE, ...
1,017
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif /** */ typedef enum { GPIO_NUM_NC = -1, /*!< Use to signal not connected to S/W */ GPIO_NUM_0 = 0, /*!< GPIO0, input and output */ GPIO_NUM_1 = 1, /*!< GPIO1, input and output */ GPIO_NUM_2 = 2, /*!< GPIO2, input and output */ ...
1,019
< GPIO15, input and output */ GPIO_NUM_16 = 16, /*!< GPIO16, input and output */ GPIO_NUM_17 = 17, /*!< GPIO17, input and output */ GPIO_NUM_18 = 18, /*!< GPIO18, input and output */ GPIO_NUM_19 = 19, /*!< GPIO19, input and output */ GPIO_NUM_20 = 20, /*!< GPIO20, input and output */ G...
1,019
/* */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif #define MODEM_CLKRST_CLK_CONF_REG (DR_REG_MODEM_CLKRST_BASE + 0x0) /* MODEM_CLKRST_CLK_EN : R/W ;bitpos:[0] ;default: 1'b0 ; */ /*description: .*/ #define MODEM_CLKRST_CLK_EN (BIT(0)) #define MODEM_CLKRST_CLK_EN_M ...
1,021
*/ #define MODEM_CLKRST_LP_TIMER_SEL_XTAL (BIT(2)) #define MODEM_CLKRST_LP_TIMER_SEL_XTAL_M (BIT(2)) #define MODEM_CLKRST_LP_TIMER_SEL_XTAL_V 0x1 #define MODEM_CLKRST_LP_TIMER_SEL_XTAL_S 2 /* MODEM_CLKRST_LP_TIMER_SEL_8M : R/W ;bitpos:[1] ;default: 1'b0 ; */ /*description: .*/ #define MODEM_CLKRST_LP_TIMER_SEL_8M...
1,021
*/ #define MODEM_CLKRST_COEX_LPCLK_SEL_XTAL32K (BIT(3)) #define MODEM_CLKRST_COEX_LPCLK_SEL_XTAL32K_M (BIT(3)) #define MODEM_CLKRST_COEX_LPCLK_SEL_XTAL32K_V 0x1 #define MODEM_CLKRST_COEX_LPCLK_SEL_XTAL32K_S 3 /* MODEM_CLKRST_COEX_LPCLK_SEL_XTAL : R/W ;bitpos:[2] ;default: 1'b0 ; */ /*description: .*/ #define MODE...
1,021
*/ #define MODEM_CLKRST_BLETIMER_CLK_IS_ACTIVE (BIT(1)) #define MODEM_CLKRST_BLETIMER_CLK_IS_ACTIVE_M (BIT(1)) #define MODEM_CLKRST_BLETIMER_CLK_IS_ACTIVE_V 0x1 #define MODEM_CLKRST_BLETIMER_CLK_IS_ACTIVE_S 1 /* MODEM_CLKRST_BLETIMER_USE_XTAL : R/W ;bitpos:[0] ;default: 1'b1 ; */ /*description: .*/ #define MODEM_...
1,021