text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
event_cb = wifi_prov_scheme_ble_event_cb_free_ble, \ .user_data = NULL \ } /* This scheme specific event handler is to be used when application #define WIFI_PROV_SCHEME_BLE_EVENT_HANDLER_FREE_BT { \ .event_cb = wifi_prov_scheme_ble_event_cb_free_bt, \ .user_data = NU...
3,386
// Copyright 2019 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 applic...
3,387
// Copyright 2019 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 applic...
3,388
/* */ #ifndef _WIFI_PROV_CONFIG_H_ #define _WIFI_PROV_CONFIG_H_ #include "esp_netif_ip_addr.h" #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef enum { WIFI_PROV_STA_CONNECTING, WIFI_PROV_STA_CONNECTED, WIFI_PROV_STA_DISCONNECTED } wifi_prov_sta_state_t; /** */ typedef enum ...
3,389
< SSID of the AP to which the slave is to be connected */ char password[64]; /*!< Password of the AP */ char bssid[6]; /*!< BSSID of the AP */ uint8_t channel; /*!< Channel of the AP */ } wifi_prov_config_set_data_t; /** */ typedef struct wifi_prov_ctx wifi_prov_ctx_t; /** */ typede...
3,389
// Copyright 2019 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 applic...
3,390
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: wifi_ctrl.proto */ #ifndef PROTOBUF_C_wifi_5fctrl_2eproto__INCLUDED #define PROTOBUF_C_wifi_5fctrl_2eproto__INCLUDED #include PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # error This file was generated by a newer ...
3,391
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: wifi_constants.proto */ #ifndef PROTOBUF_C_wifi_5fconstants_2eproto__INCLUDED #define PROTOBUF_C_wifi_5fconstants_2eproto__INCLUDED #include PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # error This file was genera...
3,393
/* */ #ifndef _PROV_WIFI_CTRL_H_ #define _PROV_WIFI_CTRL_H_ #ifdef __cplusplus extern "C" { #endif /** */ typedef struct wifi_ctrl_handlers { /** */ esp_err_t (*ctrl_reset)(void); /** */ esp_err_t (*ctrl_reprov)(void); } wifi_ctrl_handlers_t; /** */ esp_err_t wifi_ctrl_handler(uint32_...
3,395
/* */ #pragma once #include #include #include "wifi_provisioning/manager.h" #include "wifi_provisioning/wifi_config.h" #include "wifi_provisioning/wifi_scan.h" #include "wifi_ctrl.h" /** */ esp_err_t wifi_prov_mgr_done(void); /** */ esp_err_t wifi_prov_mgr_wifi_scan_start(bool blocking, bool passive, ...
3,396
#pragma once #include "sdkconfig.h" /* put target-specific macros into include/target/idf_performance_target.h */ #include "idf_performance_target.h" /* Define default values in this file with #ifndef if the value could been overwritten in the target-specific headers */ #ifndef IDF_PERFORMANCE_MAX_FREERTOS_SPINLOC...
3,397
*/ #if !CONFIG_FREERTOS_SMP // IDF-5224 #ifndef IDF_PERFORMANCE_MAX_VFS_OPEN_WRITE_CLOSE_TIME #define IDF_PERFORMANCE_MAX_VFS_OPEN_WRITE_CLOSE_TIME 20000 #endif #ifndef IDF_PERFORMANCE_MAX_VFS_OPEN_WRITE_CLOSE_TIME_PSRAM #define IDF_PERFORMANCE_MAX_VFS_OPEN_WRITE_CLOSE_TIME_PSRAM ...
3,397
CONFIG_FREERTOS_SMP // IDF-5112 #ifndef IDF_PERFORMANCE_MIN_EVENT_DISPATCH #define IDF_PERFORMANCE_MIN_EVENT_DISPATCH 25000 #endif #ifndef IDF_PERFORMANCE_MIN_EVENT_DISPATCH_PSRAM #define IDF_PERFORMANCE_MIN_EVENT_DISPATCH_PSRAM 21000 #endif #else #ifn...
3,397
/* */ #pragma once #include "sdkconfig.h" #ifdef CONFIG_XTAL_FREQ_26 #define IDF_PERFORMANCE_MAX_ESP_TIMER_GET_TIME_PER_CALL 1900 #else #define IDF_PERFORMANCE_MAX_ESP_TIMER_GET_TIME_PER_CALL 1200 #endif // SHA256 hardware throughput at 160 MHz, threshold set lower t...
3,398
/* */ #pragma once
3,399
/* */ #pragma once #include "sdkconfig.h" #define IDF_PERFORMANCE_MIN_AES_CBC_THROUGHPUT_MBSEC 43 // SHA256 hardware throughput at 160 MHz, threshold set lower than worst case #define IDF_PERFORMANCE_MIN_SHA256_THROUGHPUT_MBSEC 90 // esp_sha() time to process ...
3,400
/* */ #pragma once #include "sdkconfig.h" // AES-CBC hardware throughput (accounts for worst-case performance with PSRAM workaround) #define IDF_PERFORMANCE_MIN_AES_CBC_THROUGHPUT_MBSEC 8.2 // SHA256 hardware throughput at 240MHz, threshold set lower than worst case #if CONFIG_FREERTOS_S...
3,401
CONFIG_FREERTOS_SMP // IDF-5224 #ifndef IDF_PERFORMANCE_MIN_SDIO_THROUGHPUT_KBSEC_FRHOST_4BIT #define IDF_PERFORMANCE_MIN_SDIO_THROUGHPUT_KBSEC_FRHOST_4BIT 11000 // TODO: IDF-5490 #endif #else #ifndef IDF_PERFORMANCE_MIN_SDIO_THROUGHPUT_KBSEC_FRHOST_4BIT #define IDF_PERFORMANCE_MIN_SDIO_THROUGHPUT_K...
3,401
/* */ #pragma once #define IDF_PERFORMANCE_MAX_ESP_TIMER_GET_TIME_PER_CALL 1200 // ECC peripheral output at 160MHz #define IDF_PERFORMANCE_MAX_ECP_P192_POINT_MULTIPLY_OP 5000 #define IDF_PERFORMANCE_MAX_ECP_P192_POINT_VERIFY_OP 60 #define I...
3,402
/* */ #pragma once #define IDF_PERFORMANCE_MAX_ESP_TIMER_GET_TIME_PER_CALL 1900 #define IDF_PERFORMANCE_MIN_AES_CBC_THROUGHPUT_MBSEC 43 // SHA256 hardware throughput at 160 MHz, threshold set lower than worst case #define IDF_PERFORMANCE_MIN_SHA256_THROUGHPUT_MBSE...
3,403
/* */ #pragma once #define IDF_PERFORMANCE_MIN_AES_CBC_THROUGHPUT_MBSEC 43 // SHA256 hardware throughput at 240MHz, threshold set lower than worst case #define IDF_PERFORMANCE_MIN_SHA256_THROUGHPUT_MBSEC 90 // esp_sha() time to process 32KB of input data from R...
3,404
/* */ #pragma once #define IDF_PERFORMANCE_MIN_AES_CBC_THROUGHPUT_MBSEC 43.0 #define IDF_PERFORMANCE_MIN_AES_GCM_CRYPT_TAG_THROUGHPUT_MBSEC 30.0 #define IDF_PERFORMANCE_MIN_AES_GCM_UPDATE_THROUGHPUT_MBSEC 2.1 // SHA256 hardware throughput at 240MHz, th...
3,405
/* */ /* Spinlock performance on esp32p4 is slower. May need to adjust these values once IDF-7898 is fixed */ #define IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP 380 #define IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP_UNICORE 135
3,406
/* */ #pragma once #include #include #include "esp_err.h" #include "esp_attr.h" #include "soc/soc_caps.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct dedic_gpio_bundle_t *dedic_gpio_bundle_handle_t; /** */ typedef struct { const int *gpio_array; /*! low_dedic_channel_num ~ high_dedic_chan...
3,407
< No interrupt */ DEDIC_GPIO_INTR_LOW_LEVEL = 2, /*!< Interrupt on low level */ DEDIC_GPIO_INTR_HIGH_LEVEL, /*!< Interrupt on high level */ DEDIC_GPIO_INTR_NEG_EDGE, /*!< Interrupt on negedge */ DEDIC_GPIO_INTR_POS_EDGE, /*!< Interrupt on posedge */ DEDIC_GPIO_INTR_BOTH_EDGE /*!< I...
3,407
/* */ #pragma once #include #include #include "sdkconfig.h" #include "esp_err.h" #include "esp_intr_alloc.h" #include "soc/soc_caps.h" #include "hal/gpio_types.h" #include "esp_rom_gpio.h" #include "driver/gpio_etm.h" #ifdef __cplusplus extern "C" { #endif #define GPIO_PIN_COUNT (SOC_GPIO_PI...
3,408
SOC_GPIO_SUPPORT_HOLD_SINGLE_IO_IN_DSLP /** */ void gpio_deep_sleep_hold_en(void); /** */ void gpio_deep_sleep_hold_dis(void); #endif //!SOC_GPIO_SUPPORT_HOLD_SINGLE_IO_IN_DSLP /** */ void gpio_iomux_in(uint32_t gpio_num, uint32_t signal_idx); /** */ void gpio_iomux_out(uint8_t gpio_num, int func, bool oen_i...
3,408
/* */ #pragma once #include "soc/soc_caps.h" #include "esp_err.h" #include "driver/gpio.h" #ifdef __cplusplus extern "C" { #endif #if SOC_LP_GPIO_MATRIX_SUPPORTED /** */ esp_err_t lp_gpio_connect_in_signal(gpio_num_t gpio_num, uint32_t signal_idx, bool inv); /** */ esp_err_t lp_gpio_connect_out_signal(gpio_num_...
3,409
/* */ #pragma once #include #include #include "esp_err.h" #include "soc/soc_caps.h" #include "hal/rtc_io_types.h" #include "driver/gpio.h" #ifdef __cplusplus extern "C" { #endif /** */ bool rtc_gpio_is_valid_gpio(gpio_num_t gpio_num); #define RTC_GPIO_IS_VALID_GPIO(gpio_num) rtc_gpio_is_valid_gpio(gpio_num) #...
3,410
/* */ #pragma once #include #include "esp_err.h" #include "esp_etm.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef enum { GPIO_ETM_EVENT_EDGE_POS, /*!< A rising edge on the GPIO will generate an ETM event signal */ GPIO_ETM_EVENT_EDGE_NEG, /*!< A falling edge on the GPIO will generate an ETM even...
3,411
< Which action to take by the ETM task module */ } gpio_etm_task_config_t; /** */ esp_err_t gpio_new_etm_task(const gpio_etm_task_config_t *config, esp_etm_task_handle_t *ret_task); /** */ esp_err_t gpio_etm_task_add_gpio(esp_etm_task_handle_t task, int gpio_num); /** */ esp_err_t gpio_etm_task_rm_gpio(esp_etm_ta...
3,411
/* */ #pragma once #include #include #include "esp_err.h" #include "hal/glitch_filter_types.h" #include "driver/gpio.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct gpio_glitch_filter_t *gpio_glitch_filter_handle_t; /** */ typedef struct { glitch_filter_clock_source_t clk_src; /*!< Clock s...
3,412
/* */ #pragma once #include "sdkconfig.h" #include #include "soc/soc_caps.h" #include "driver/gpio.h" #ifdef __cplusplus extern "C" { #endif #if CONFIG_GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL /** */ esp_err_t gpio_sleep_pupd_config_apply(gpio_num_t gpio_num); /** */ esp_err_t gpio_sleep_pupd_config_unapply(gpio_...
3,413
/* */ #pragma once #include #include "esp_err.h" #include "driver/gpio_filter.h" #include "esp_heap_caps.h" #define FILTER_MEM_ALLOC_CAPS MALLOC_CAP_DEFAULT #define GLITCH_FILTER_PM_LOCK_NAME_LEN_MAX 16 #ifdef __cplusplus extern "C" { #endif typedef struct gpio_glitch_filter_t gpio_glitch_filter_t; typedef e...
3,414
/* */ #pragma once #include "sdkconfig.h" #include "soc/gpio_num.h" #ifdef __cplusplus extern "C" { #endif #ifdef CONFIG_IDF_TARGET_ESP32 // The input-only rtcio pins do not have pull-up/down resistors (not support pull-up/down) #define RTCIO_SUPPORT_PU_PD(num) (rtc_io_desc[num].pullup != 0) #define TEST_GPIO_P...
3,415
GPIO_NUM_1, //GPIO1 GPIO_NUM_2, //GPIO2 GPIO_NUM_3, //GPIO3 GPIO_NUM_4, //GPIO4 GPIO_NUM_5, //GPIO5 GPIO_NUM_6, //GPIO6 GPIO_NUM_7, //GPIO7 GPIO_NUM_8, //GPIO8 GPIO_NUM_9, //GPIO9 GPIO_NUM_10, //GPIO10 GPIO_NUM_11, //GPIO11 GPIO_NUM_12, /...
3,415
/* */ #include "sdkconfig.h" #include "soc/gpio_sig_map.h" #ifdef __cplusplus extern "C" { #endif // GPIO self-test pins (GPIO_MODE_INPUT_OUTPUT) #define TEST_GPIO_INPUT_OUTPUT_IO1 (4) #define TEST_GPIO_INPUT_OUTPUT_IO2 (5) #if CONFIG_IDF_TARGET_ESP32 #define TEST_GPIO_EXT_OUT_IO (18) ...
3,416
/* */ #pragma once #include "esp_vfs_common.h" #ifdef __cplusplus extern "C" { #endif /** */ void uart_vfs_dev_register(void); /** */ int uart_vfs_dev_port_set_rx_line_endings(int uart_num, esp_line_endings_t mode); /** */ int uart_vfs_dev_port_set_tx_line_endings(int uart_num, esp_line_endings_t mode); /** ...
3,417
/* */ #ifndef _UART_SELECT_H_ #define _UART_SELECT_H_ #ifdef __cplusplus extern "C" { #endif #include "driver/uart.h" typedef enum { UART_SELECT_READ_NOTIF, UART_SELECT_WRITE_NOTIF, UART_SELECT_ERROR_NOTIF, } uart_select_notif_t; typedef void (*uart_select_notif_callback_t)(uart_port_t uart_num, uart...
3,418
/* */ #pragma once #include "esp_err.h" #include "esp_intr_alloc.h" #include "soc/soc_caps.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" #include "hal/uart_types.h" #ifdef __cplusplus extern "C" { #endif /* @brief When calling `uart_set_pin`, instead of GPIO number, `UART_PIN_NO_CHANGE` */ #define...
3,419
/* */ #pragma once #include #include #include "esp_err.h" #include "sd_protocol_types.h" #include "driver/gpio.h" #include "driver/spi_master.h" #ifdef __cplusplus extern "C" { #endif /// Handle representing an SD SPI device typedef int sdspi_dev_handle_t; #if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S...
3,420
io_int_enable = &sdspi_host_io_int_enable, \ .io_int_wait = &sdspi_host_io_int_wait, \ .command_timeout_ms = 0, \ .get_real_freq = &sdspi_host_get_real_freq, \ .input_delay_phase = SDMMC_DELAY_PHASE_0, \ .set_input_delay = NULL \ } /** */ typedef struct { spi_host_device_t host_id; ///< SPI ho...
3,420
host_id = SDSPI_DEFAULT_HOST, \ .gpio_cs = GPIO_NUM_13, \ .gpio_cd = SDSPI_SLOT_NO_CD, \ .gpio_wp = SDSPI_SLOT_NO_WP, \ .gpio_int = GPIO_NUM_NC, \ .gpio_wp_polarity = SDSPI_IO_ACTIVE_LOW, \ } /** */ esp_err_t sdspi_host_init(void); /** */ esp_err_t sdspi_host_init_device(const sdspi_devi...
3,420
/* */ #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 */ /** */ void sdmmc_test_spi_skip_i...
3,421
/* */ #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
3,422
/* */ #pragma once #include #include #include "esp_err.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" #include "driver/sdspi_host.h" /// Control tokens used to frame data transfers /// (see section 7.3.3 of SD simplified spec) /// Token sent before single/multi block reads and single block writes ...
3,423
/// MASK and VAL are used to check if a token is an error token #define TOKEN_ERR_MASK 0b11110000 #define TOKEN_ERR_VAL 0b00000000 /// Argument is out of range #define TOKEN_ERR_RANGE BIT(3) /// Card internal ECC error #define TOKEN_ERR_CARD_ECC BIT(2) /// Card controller error #define TOKEN_ERR_INTER...
3,423
< Size of the command without any response #define SDSPI_CMD_R1_SIZE (SDSPI_CMD_SIZE+SDSPI_NCR_MIN_SIZE+1) //!< Size of the command with R1 response #define SDSPI_CMD_R2_SIZE (SDSPI_CMD_SIZE+SDSPI_NCR_MIN_SIZE+2) //!< Size of the command with R1b response #define SDSPI_CMD_R3_SIZE (SDSPI_CMD_SIZE+...
3,423
< Response format R2 (2 bytes) #define SDSPI_CMD_FLAG_RSP_R3 BIT(5) //!< Response format R3 (5 bytes) #define SDSPI_CMD_FLAG_RSP_R4 BIT(6) //!< Response format R4 (5 bytes) #define SDSPI_CMD_FLAG_RSP_R5 BIT(7) //!< Response format R5 (2 bytes) #define SDSPI_CMD_FLAG_RSP_R7 BIT(8) //!< Response format R7 (5 ...
3,423
/* */ #pragma once #include #include #ifdef __cplusplus extern "C" { #endif /** */ uint8_t sdspi_crc7(const uint8_t *data, size_t size); /** */ uint16_t sdspi_crc16(const uint8_t* data, size_t size); #ifdef __cplusplus } #endif
3,424
/* */ #pragma once #include #include "esp_err.h" #include "hal/rmt_types.h" #include "driver/rmt_types.h" #ifdef __cplusplus extern "C" { #endif /** @cond */ typedef struct rmt_encoder_t rmt_encoder_t; /** @endcond */ /** */ typedef enum { RMT_ENCODING_RESET = 0, /*!< The encoding session is in re...
3,425
< How to represent BIT0 in RMT symbol */ rmt_symbol_word_t bit1; /*!< How to represent BIT1 in RMT symbol */ struct { uint32_t msb_first: 1; /*!< Whether to encode MSB bit first */ } flags; /*!< Encoder config flag */ } rmt_bytes_encoder_config_t; /** */ typedef struct { } rmt_co...
3,425
/* */ #pragma once #include #include #include #include "hal/rmt_types.h" #include "hal/gpio_types.h" // for gpio_num_t #ifdef __cplusplus extern "C" { #endif /** */ typedef struct rmt_channel_t *rmt_channel_handle_t; /** */ typedef struct rmt_sync_manager_t *rmt_sync_manager_handle_t; /** */ typedef struct...
3,426
< Indicating if the current received data are the last part of the transaction */ } flags; /*!< Extra flags */ } rmt_rx_done_event_data_t; /** */ typedef bool (*rmt_rx_done_callback_t)(rmt_channel_handle_t rx_chan, const rmt_rx_done_event_data_t *edata, void *user_ctx); #ifdef __cplusplus } #endi...
3,426
/* */ #pragma once #include #include #include "esp_err.h" #include "driver/rmt_common.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { rmt_rx_done_callback_t on_recv_done; /*!< Event callback, invoked when the RMT channel reception is finished o...
3,427
*/ int intr_priority; /*!< RMT interrupt priority, if set to 0, the driver will try to allocate an interrupt with a relative low priority (1,2,3) */ struct { uint32_t invert_in: 1; /*!< Whether to invert the incoming RMT channel signal */ uint32_...
3,427
< Set this flag if the incoming data is very long, and the driver can only receive the data piece by piece, because the user buffer is not sufficient to save all the data. */ } flags; /*!< Receive specific config flags */ } rmt_receive_config_t; /** */...
3,427
/* */ #pragma once #include #include "esp_err.h" #include "driver/rmt_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { uint32_t frequency_hz; /*!< Carrier wave frequency, in Hz, 0 means disabling the carrier */ float duty_cycle; /*!< Carrier wave duty cycle (0~100%) */ str...
3,428
/* */ #pragma once #include #include #include "esp_err.h" #include "driver/rmt_common.h" #include "driver/rmt_encoder.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { rmt_tx_done_callback_t on_trans_done; /*!< Event callback, invoked when transmission is finished */ } rmt_tx_event_callbacks...
3,429
*/ size_t trans_queue_depth; /*!< Depth of internal transfer queue, increase this value can support more transfers pending in the background */ int intr_priority; /*!< RMT interrupt priority, if set to 0, the driver will try to allocate an interrupt with a relati...
3,429
< Set the output level for the "End Of Transmission" */ uint32_t queue_nonblocking : 1; /*!< If set, when the transaction queue is full, driver will not block the thread but return directly */ } flags; /*!< Transmit specific config flags */ } rmt_transmit_config_t; /** */ typede...
3,429
/* */ // DO NOT USE THESE APIS IN YOUR APPLICATIONS // The following APIs are for internal test. #pragma once #include "esp_err.h" #include "driver/rmt_types.h" #ifdef __cplusplus extern "C" { #endif /** */ esp_err_t rmt_get_channel_id(rmt_channel_handle_t channel, int *ret_id); #ifdef __cplusplus } #endif
3,430
/* */ #pragma once #include "driver/rmt_encoder.h" #ifdef __cplusplus extern "C" { #endif esp_err_t test_rmt_new_led_strip_encoder(rmt_encoder_handle_t *ret_encoder); esp_err_t test_rmt_new_nec_protocol_encoder(rmt_encoder_handle_t *ret_encoder); #ifdef __cplusplus } #endif
3,431
/* */ #pragma once #define TEST_RMT_GPIO_NUM_A 0 #define TEST_RMT_GPIO_NUM_B 2
3,432
/* */ #pragma once #include #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "freertos/idf_additions.h" #include "esp_err.h" #include "soc/soc_caps.h" #include "soc/gdma_channel.h" #include "hal/rmt_types.h" #include "hal/rmt_hal.h" #include "hal/...
3,433
CACHE_LL_L2MEM_NON_CACHE_ADDR(addr) : 0) #else #define RMT_GET_NON_CACHE_ADDR(addr) (addr) #endif typedef struct { struct { rmt_symbol_word_t symbols[SOC_RMT_MEM_WORDS_PER_CHANNEL]; } channels[SOC_RMT_CHANNELS_PER_GROUP]; } rmt_block_mem_t; // RMTMEM address is declared in .peripherals.ld extern rmt_...
3,433
/* */ #pragma once #include #include "driver/ana_cmpr_types.h" #ifdef __cplusplus extern "C" { #endif ana_cmpr_unit_t ana_cmpr_priv_get_unit_by_handle(ana_cmpr_handle_t cmpr); #ifdef __cplusplus } #endif
3,434
/* */ #pragma once #include #include "esp_err.h" #include "esp_etm.h" #include "driver/ana_cmpr_types.h" #if SOC_ANA_CMPR_SUPPORT_ETM #ifdef __cplusplus extern "C" { #endif /** typedef enum { ANA_CMPR_EVENT_POS_CROSS, /*!< Positive cross event when the source signal becomes higher than the referenc...
3,435
/* */ #pragma once #include #include "soc/soc_caps.h" #include "soc/clk_tree_defs.h" #ifdef __cplusplus extern "C" { #endif /** typedef int ana_cmpr_unit_t; #define ANA_CMPR_UNIT_0 0 /*!< @deprecated Analog comparator unit 0 */ /** typedef enum { ANA_CMPR_REF_SRC_INTERNAL, /*!< Analog Compara...
3,436
< Negative cross can trigger event interrupt */ ANA_CMPR_CROSS_ANY, /*!< Any cross can trigger event interrupt */ } ana_cmpr_cross_type_t; /** typedef enum { ANA_CMPR_REF_VOLT_0_PCT_VDD, /*!< Internal reference voltage equals to 0% VDD */ ANA_CMPR_REF_VOLT_10_PCT_VDD, /*!< Internal referen...
3,436
< The cross type of the target signal to the reference signal. } ana_cmpr_cross_event_data_t; /** */ typedef bool (*ana_cmpr_cross_cb_t)(ana_cmpr_handle_t cmpr, const ana_cmpr_cross_event_data_t *edata, void *user_ctx); #ifdef __cplusplus } #endif
3,436
/* */ #include #include #include "esp_err.h" #include "driver/ana_cmpr_types.h" #ifdef __cplusplus extern "C" { #endif /** typedef struct { ana_cmpr_unit_t unit; /*!< Analog comparator unit */ ana_cmpr_clk_src_t clk_src; /*!< The clock source of the analog comparator,...
3,437
< Analog comparator driver flags */ } ana_cmpr_config_t; /** typedef struct { ana_cmpr_ref_voltage_t ref_volt; /*!< The internal reference voltage. It can be specified to a certain fixed percentage of */ } ana_cmpr_internal_ref_config_t; /** typedef stru...
3,437
/* */ #include #include "sdkconfig.h" #include "esp_attr.h" #include "unity.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_rom_sys.h" #include "soc/soc_caps.h" #include "driver/ana_cmpr.h" /** */ bool test_ana_cmpr_on_cross_callback(ana_cmpr_handle_t cmpr, const ana_cmpr_cross_event_dat...
3,438
/* */ #pragma once #include "esp_log.h" /** */ #define RUN_MQTT_BROKER_TEST(test_name) \ do { \ ESP_LOGI("mqtt_test", "Running test:" #test_name "()"); \ TEST_ASSERT_TRUE_MESSAGE(test_name(), "Mqtt test failed: " #test_name "() "); \ ES...
3,439
/* */ #pragma once #include "soc/soc_caps.h" /** */ void connect_test_fixture_setup(void); /** */ void connect_test_fixture_teardown(void);
3,440
/* */ #pragma once #include "esp_log.h" /** */ #define RUN_MQTT5_BROKER_TEST(test_name) \ do { \ ESP_LOGI("mqtt5_test", "Running test:" #test_name "()"); \ TEST_ASSERT_TRUE_MESSAGE(test_name(), "Mqtt5 test failed: " #test_name "() "); \ ...
3,441
// Copyright 2017-2019 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...
3,442
< HID device stack started */ ESP_HIDD_CONNECT_EVENT, /*!< HID device connected */ ESP_HIDD_PROTOCOL_MODE_EVENT, /*!< HID device protocol mode change */ ESP_HIDD_CONTROL_EVENT, /*!< HID device control request */ ESP_HIDD_OUTPUT_EVENT, ...
3,442
< HID device operation status */ } stop; /*!< HID callback param of ESP_HIDD_STOP_EVENT */ /** */ struct { esp_hidd_dev_t *dev; /*!< HID device structure */ esp_err_t status; /*!< HID device operation status, ...
3,442
< HID report usage */ uint16_t report_id; /*!< HID report index */ uint16_t length; /*!< data length */ uint8_t *data; /*!< The pointer to the data */ uint8_t map_index; /*!< HID config report map in...
3,442
< HID device feature report type, used only for Classic Bluetooth */ } feature; /*!< HID callback param of ESP_HIDD_FEATURE_EVENT */ /** */ struct { esp_hidd_dev_t *dev; /*!< HID device structure */ uint8_t protocol_mode; ...
3,442
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #include #include #include /* HID Report Map Values */ #define HID_RM_INPUT 0x80 #define HID_RM_OUTPUT 0x90 #define HID_RM_FEATURE 0xb0 #define HID_RM_COLLECTION 0xa0 #de...
3,443
Mask of (keyboard|mouse|ESP_HIDH_COD_*) */ typedef enum { ESP_HID_COD_MIN_GENERIC, ESP_HID_COD_MIN_JOYSTICK, ESP_HID_COD_MIN_GAMEPAD, ESP_HID_COD_MIN_REMOTE, ESP_HID_COD_MIN_SENSOR, ESP_HID_COD_MIN_TABLET, ESP_HID_COD_MIN_CARD_READER, ESP_HID_COD_MIN_MAX } esp_hid_cod_min_t; /* HID tra...
3,443
< Reports discovered in the report map */ } esp_hid_report_map_t; /** */ typedef struct { const uint8_t *data; /*!< Pointer to the HID report map data */ uint16_t len; /*!< HID report map data length */ } esp_hid_raw_report_map_t; /** */ typedef struct { uint16_t ven...
3,443
< USB address */ } esp_hid_address_t; /* */ esp_hid_report_map_t *esp_hid_parse_report_map(const uint8_t *hid_rm, size_t hid_rm_len); /* */ void esp_hid_free_report_map(esp_hid_report_map_t *map); /** */ esp_hid_usage_t esp_hid_usage_from_appearance(uint16_t appearance); /** */ esp_hid_usage_t esp_hid_usage_fro...
3,443
// Copyright 2017-2019 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...
3,444
// Copyright 2017-2019 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...
3,445
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #include "sdkconfig.h" #if CONFIG_GATTC_ENABLE #include "esp_hidh_gattc.h" #endif #if CONFIG_BLUEDROID_ENABLED #include "esp_hidh_bluedroid.h" #endif #if CONFIG_BT_NIMBLE_ENABLED #include "esp_hidh_nimble.h" #endif #ifdef __cplusplus } #endif
3,446
/* */ #pragma once #include "sdkconfig.h" #include "esp_err.h" #include "esp_log.h" #include "esp_event.h" #include "esp_hid_common.h" #ifdef __cplusplus extern "C" { #endif /** */ struct esp_hidh_dev_s; typedef struct esp_hidh_dev_s esp_hidh_dev_t; ESP_EVENT_DECLARE_BASE(ESP_HIDH_EVENTS); /** */ typedef enum ...
3,447
< HID host stack stopped, used only for Classic Bluetooth */ ESP_HIDH_CONN_REQUEST_EVENT, /*!< HID device requested connection, used only for USB */ ESP_HIDH_MAX_EVENT, /*!< HID events end marker */ } esp_hidh_event_t; /** */ typedef union { /** */ s...
3,447
< HID callback param of ESP_HIDH_OPEN_EVENT */ /** */ struct { esp_hidh_dev_t *dev; /*!< HID Remote bluetooth device. */ int reason; /*!< Reason why the connection was closed. BLE Only */ esp_err_t status; ...
3,447
< HID report usage */ uint16_t report_id; /*!< HID report index */ uint16_t length; /*!< HID data length */ uint8_t *data; /*!< The pointer to the HID data */ uint8_t map_index; /*!< ...
3,447
< HID host operation status, used only for Classic Bluetooth */ esp_hid_trans_type_t trans_type; /*!< HID host feature transaction type, used only for Classic Bluetooth */ } feature; /*!< HID callback param of ESP_HIDH_FEATURE_EVENT */ /** */ str...
3,447
h" #ifdef __cplusplus } #endif
3,447
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #include "sdkconfig.h" #if CONFIG_BT_NIMBLE_ENABLED /** */ esp_hidh_dev_t *esp_hidh_dev_open(uint8_t *bda, esp_hid_transport_t transport, uint8_t remote_addr_type); #endif /* CONFIG_BT_NIMBLE_ENABLED */ #ifdef __cplusplus } #endif
3,448
// Copyright 2017-2019 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...
3,449
// Copyright 2017-2019 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...
3,450
/* */ #pragma once #include "esp_err.h" #include "esp_hidd.h" #include "esp_hid_common.h" #ifdef __cplusplus extern "C" { #endif typedef union { struct { uint16_t notify_enable : 1; uint16_t indicate_enable : 1; uint16_t reserved : 14; }; uint16_t value; } hidd_le_ccc_value_t; ...
3,451
/* */ #pragma once #include "esp_hidh.h" #include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include "sys/queue.h" #include "esp_timer.h" #if CONFIG_BT_NIMBLE_ENABLED #include "nimble/ble.h" #endif #ifdef __cplusplus extern "C" { #endif /** */ typedef struct esp_hidh_dev_report_s { struct esp_hidh_de...
3,452