text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
/* Mesh Manual Networking Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #ifndef _...
3,958
/* Mesh IP Internal Networking Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #prag...
3,959
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #if CONFIG_EXAMPLE_GET_AP_INFO_FROM_STDIN /** */ void get_ap_info_from_stdin(void); #endif /** */ char *get_ap_ssid(void); /** */ char *get_ap_password(void); #ifdef __cplusplus } #endif
3,960
/* Iperf example — declarations of command registration functions. This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ...
3,961
#pragma once #ifdef __cplusplus extern "C" { #endif // Register WiFi functions void register_wifi(void); void initialise_wifi(void); #ifdef __cplusplus } #endif
3,962
/* */ /* */ #pragma once #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif typedef enum { ANT_TOTAL_TWO = 2, /**< Two antennas participate in the switch */ ANT_TOTAL_THREE, /**< Three antennas participate in the switch */ ANT_TOTAL_MAX } ant_mun_t; /** typedef struct { ant_mun...
3,963
/* ESPNOW Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #ifndef ESPNOW_EXAMPLE_H ...
3,964
*/ typedef struct { example_espnow_event_id_t id; example_espnow_event_info_t info; } example_espnow_event_t; enum { EXAMPLE_ESPNOW_DATA_BROADCAST, EXAMPLE_ESPNOW_DATA_UNICAST, EXAMPLE_ESPNOW_DATA_MAX, }; /* User defined field of ESPNOW data in this example. */ typedef struct { uint8_t type; ...
3,964
bool broadcast; //Send broadcast ESPNOW data. uint8_t state; //Indicate that if has received broadcast ESPNOW data or not. uint32_t magic; //Magic number which is used to determine which device to send unicast ESPNOW data. uint16_t coun...
3,964
/* */ #pragma once void register_ieee802154_cmd(void);
3,965
/* */ #pragma once #include "esp_openthread_types.h" # define CONFIG_OPENTHREAD_NETWORK_POLLPERIOD_TIME 30000 #if SOC_IEEE802154_SUPPORTED #define ESP_OPENTHREAD_DEFAULT_RADIO_CONFIG() \ { \ .radio_mode = RADIO_MODE_NATIVE, ...
3,966
stop_bits = UART_STOP_BITS_1, \ .flow_ctrl = UART_HW_FLOWCTRL_DISABLE, \ .rx_flow_ctrl_thresh = 0, \ .source_clk = UART_SCLK_DEFAULT, \ }, \ ...
3,966
/* */ #pragma once #include "esp_openthread_types.h" # define CONFIG_OPENTHREAD_NETWORK_POLLPERIOD_TIME 3000 #if SOC_IEEE802154_SUPPORTED #define ESP_OPENTHREAD_DEFAULT_RADIO_CONFIG() \ { \ .radio_mode = RADIO_MODE_NATIVE, ...
3,967
parity = UART_PARITY_DISABLE, \ .stop_bits = UART_STOP_BITS_1, \ .flow_ctrl = UART_HW_FLOWCTRL_DISABLE, \ .rx_flow_ctrl_thresh = 0, \ .source_clk = UART_SCLK_XTAL, \ ...
3,967
/* */ #pragma once #include "esp_openthread_types.h" #if SOC_IEEE802154_SUPPORTED #define ESP_OPENTHREAD_DEFAULT_RADIO_CONFIG() \ { \ .radio_mode = RADIO_MODE_NATIVE, \ } #else #define ESP_OPENTHREAD_DEFAULT_RADIO_C...
3,968
flow_ctrl = UART_HW_FLOWCTRL_DISABLE, \ .rx_flow_ctrl_thresh = 0, \ .source_clk = UART_SCLK_DEFAULT, \ }, \ .rx_pin = 4, \ .tx_pin =...
3,968
data_bits = UART_DATA_8_BITS, \ .parity = UART_PARITY_DISABLE, \ .stop_bits = UART_STOP_BITS_1, \ .flow_ctrl = UART_HW_FLOWCTRL_DISABLE, \ .rx_flow_ctrl_thresh = 0, \ ...
3,968
storage_partition_name = "nvs", \ .netif_queue_size = 10, \ .task_queue_size = 10, \ }
3,968
/* */ #pragma once #if CONFIG_EXTERNAL_COEX_ENABLE #include "esp_coexist.h" #endif #include "esp_openthread_types.h" #define ESP_OPENTHREAD_DEFAULT_RADIO_CONFIG() \ { \ .radio_mode = RADIO_MODE_NATIVE, \ ...
3,969
baud_rate = 460800, \ .data_bits = UART_DATA_8_BITS, \ .parity = UART_PARITY_DISABLE, \ .stop_bits = UART_STOP_BITS_1, \ .flow_ctrl = UART_HW_FLOWCTRL_DISABLE, \ ...
3,969
host_device = SPI2_HOST, \ .bus_config = { \ .mosi_io_num = 3, \ .miso_io_num = 1, \ .sclk_io_num = 0, \ ...
3,969
storage_partition_name = "nvs", \ .netif_queue_size = 10, \ .task_queue_size = 10, \ } #if CONFIG_EXTERNAL_COEX_ENABLE #if CONFIG_EXTERNAL_COEX_WIRE_TYPE == EXTERNAL_COEXIST_WIRE_1 #define ESP_OPENTHREAD_DEFAULT_EXTERNAL_COEX_CONFIG() \ { ...
3,969
grant = CONFIG_EXTERNAL_COEX_GRANT_PIN, \ } #elif CONFIG_EXTERNAL_COEX_WIRE_TYPE == EXTERNAL_COEXIST_WIRE_4 #define ESP_OPENTHREAD_DEFAULT_EXTERNAL_COEX_CONFIG() \ { \ .request = CONFIG_EXTERNAL_COEX_REQUEST_PIN, \ .priority = CONFIG_...
3,969
/* */ #pragma once #include "esp_coexist.h" #include "esp_openthread_types.h" #if CONFIG_OPENTHREAD_RADIO_NATIVE #define ESP_OPENTHREAD_DEFAULT_RADIO_CONFIG() \ { \ .radio_mode = RADIO_MODE_NATIVE, \ } #elif CONFIG_OP...
3,970
flow_ctrl = UART_HW_FLOWCTRL_DISABLE, \ .rx_flow_ctrl_thresh = 0, \ .source_clk = UART_SCLK_DEFAULT, \ }, \ .rx_pin = 4, \ .tx_pin = 5, ...
3,970
spi_device = \ { \ .cs_ena_pretrans = 2, \ .input_delay_ns = 100, \ .mode = 0, \ .clock_speed_hz = 2500 * 1000, \ ...
3,970
host_uart_config = { \ .port = 0, \ .uart_config = \ { \ .baud_rate = HOST_BAUD_RATE, \...
3,970
host_connection_mode = HOST_CONNECTION_MODE_CLI_USB, \ .host_usb_config = USB_SERIAL_JTAG_DRIVER_CONFIG_DEFAULT(), \ } #endif #define ESP_OPENTHREAD_DEFAULT_PORT_CONFIG() \ { \ .storage_partition_name = "nvs", \ .netif_queue_size...
3,970
request = CONFIG_EXTERNAL_COEX_REQUEST_PIN, \ .priority = CONFIG_EXTERNAL_COEX_PRIORITY_PIN, \ .grant = CONFIG_EXTERNAL_COEX_GRANT_PIN, \ } #elif CONFIG_EXTERNAL_COEX_WIRE_TYPE == EXTERNAL_COEXIST_WIRE_4 #define ESP_OPENTHREAD_DEFAULT_EXTERNAL_COEX_CONFIG() \ { ...
3,970
/* */ #include "esp_err.h" #include "esp_openthread.h" /** esp_err_t esp_openthread_state_indicator_init(otInstance *instance); /** esp_err_t esp_openthread_state_indicator_set(uint32_t index, uint32_t red, uint32_t green, uint32_t blue); /** esp_err_t esp_openthread_state_indicator_clear(void);
3,971
/* */ #pragma once void register_jtag_commands(void);
3,972
/* Multiple build configurations example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #p...
3,973
/* Import Prebuilt Library Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma o...
3,974
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif /* This stucture describes the plugin to the rest of the application */ typedef struct { /* A pointer to the plugin name */ const char* name; /* A function which the plugin provides to the application. */ void (*greet)(const char* arg); ...
3,975
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif #define portTICK_PERIOD_MS 1000 void vTaskDelay( const uint32_t xTicksToDelay ); #ifdef __cplusplus } #endif
3,976
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif void esp_restart(void); #ifdef __cplusplus } #endif
3,978
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif #define CHIP_FEATURE_EMB_FLASH (1UL << 0) #define CHIP_FEATURE_BT (1UL << 4) #define CHIP_FEATURE_BLE (1UL << 5) typedef struct { uint32_t features; //!< bit mask of CHIP_FEATURE_x feature flags uint16_t revision; ...
3,979
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif int spi_flash_get_chip_size(void); #ifdef __cplusplus } #endif
3,980
/* */ #pragma once #include #include "esp_netif.h" #ifdef __cplusplus extern "C" { #endif // Register Bridge configuration commands void example_register_br_config_commands(esp_netif_t *br_netif, uint8_t br_port_cnt); #ifdef __cplusplus } #endif
3,981
/* */ #include "lwip/netif.h" #include "lwip/pbuf.h" #include "lwip/prot/ethernet.h" /** */ static inline int lwip_vlan_set(struct netif *netif, struct pbuf *p, const struct eth_addr *src, const struct eth_addr *dst, u16_t eth_type) { u16_t vlan_id...
3,982
/* */ // Maximum number of interface that can be added #define MAX_ETH_NETIF_COUNT (10) typedef struct { esp_netif_t *esp_netif[MAX_ETH_NETIF_COUNT]; uint8_t netif_count; } esp_vlan_netifs; /** */ esp_err_t eth_input_to_netif(esp_eth_handle_t eth_handle, uint8_t *buffer, uint32_t length, void *priv);...
3,983
/* */ #pragma once typedef esp_err_t (*wired_rx_cb_t)(void *buffer, uint16_t len, void *ctx); typedef void (*wired_free_cb_t)(void *buffer, void *ctx); typedef enum { FROM_WIRED, TO_WIRED } mac_spoof_direction_t; void mac_spoof(mac_spoof_direction_t direction, uint8_t *buffer, uint16_t len, uint8_t own_ma...
3,984
/* */ #pragma once /** */ bool is_provisioned(void); /** */ esp_err_t start_provisioning(EventGroupHandle_t *flags, int success_bit, int fail_bit);
3,985
/* cmd_sniffer example — declarations of command registration functions. This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, e...
3,986
/* cmd_pcap example — declarations of command registration functions. This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eith...
3,987
/* */ #pragma once #include "esp_eth_driver.h" #ifdef __cplusplus extern "C" { #endif /** */ esp_err_t example_eth_init(esp_eth_handle_t *eth_handles_out[], uint8_t *eth_cnt_out); #ifdef __cplusplus } #endif
3,988
/* Console example — declarations of command registration functions. This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eithe...
3,989
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #include "esp_eth_phy.h" #include "esp_eth_mac.h" #include "driver/spi_master.h" #define CS_HOLD_TIME_MIN_NS 210 /** typedef struct { spi_host_device_t spi_host_id; /*!) */ static inline uint8_t enc28j60_cal_spi_cs_hold_time(int clock_spe...
3,991
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #include "esp_phy_cert_test.h" typedef struct { struct arg_int *enable; struct arg_end *end; } phy_args_t; #if SOC_WIFI_SUPPORTED typedef struct { struct arg_int *channel; struct arg_int *rate; struct arg_int *attenuation; struct arg...
3,992
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif typedef struct { const char** names; const int* pins; #if CONFIG_EXAMPLE_ENABLE_ADC_FEATURE const int *adc_channels; #endif } pin_configuration_t; void check_sd_card_pins(pin_configuration_t *config, const int pin_count); #ifdef __c...
3,993
/* */ /* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once #include "driver/sdmmc_...
3,994
/* testable.h: Implementation of a testable component. This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or i...
3,995
/* esp_event (event loop library) basic example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied....
3,996
/* esp_event (event loop library) basic example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied....
3,997
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #include "sdkconfig.h" #if CONFIG_EXAMPLE_GPIO_WAKEUP void example_deep_sleep_register_gpio_wakeup(void); #endif #if CONFIG_EXAMPLE_EXT0_WAKEUP void example_deep_sleep_register_ext0_wakeup(void); #endif #if CONFIG_EXAMPLE_EXT1_WAKEUP void example_deep_sle...
3,998
/* */ #include typedef struct { uint32_t in[3]; uint32_t out[4]; } arg_data_t; void get_mstatus_other_cpu(void *arg); void extended_ipc_isr_func(void* arg);
3,999
/* */ #ifndef H_NIMBLE_GATTS_ #define H_NIMBLE_GATTS_ #include "sdkconfig.h" #if CONFIG_BT_NIMBLE_ENABLED #ifdef __cplusplus extern "C" { #endif #include #include "nimble/ble.h" #include "modlog/modlog.h" #include "nimble/nimble_port.h" #include "nimble/nimble_port_freertos.h" #include "host/ble_hs.h" #include "h...
4,000
/* */ #pragma once #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif #if CONFIG_BT_CONTROLLER_ENABLED && (CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED) esp_err_t esp_ble_helper_init(void); #endif #ifdef __cplusplus } #endif
4,001
/* */ #ifndef H_BLUEDROID_GATTS_ #define H_BLUEDROID_GATTS_ #include "sdkconfig.h" #if CONFIG_BT_CONTROLLER_ENABLED && CONFIG_BT_BLE_ENABLED #ifdef __cplusplus extern "C" { #endif #include "esp_bt.h" #include "esp_gap_ble_api.h" #include "esp_gatts_api.h" #include "esp_bt_defs.h" #include "esp_bt_main.h" #include...
4,002
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif void example_wait_gpio_inactive(void); esp_err_t example_register_gpio_wakeup(void); esp_err_t example_register_timer_wakeup(void); esp_err_t example_register_uart_wakeup(void); #if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 void example_regi...
4,003
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif void wake_stub_example(void); #ifdef __cplusplus } #endif
4,004
/* */ #pragma once / / #define BH1750_I2C_ADDR 0x23 #define BH1750_POWER_ON 0x01 #define BH1750_CONTINUOUS_H_RES_MODE 0x10 #define BH1750_CONTINUOUS_H_RES_MODE2 0x11 #define BH1750_CONTINUOUS_L_RES_MODE 0x13 #define BH1750_ONE_TIME_H_RES_MODE 0x20 #define BH1750_ONE_TIME_...
4,005
/* */ #pragma once / / #define BMP180_SENSOR_I2C_ADDR 0x77 #define BMP180_SENSOR_REG_ADDR_WHO_AM_I 0xD0 #define BMP180_SENSOR_REG_ADDR_SOFT_RESET 0xE0 #define BMP180_SENSOR_REG_ADDR_AC1_MSB 0xAA #define BMP180_SENSOR_REG_ADDR_AC1_LSB 0xAB #define BMP180_SENSOR_REG_ADD...
4,006
/* */ #pragma once #include "hal/adc_types.h" #define EXAMPLE_ADC_CHANNEL ADC_CHANNEL_0 #define EXAMPLE_ADC_UNIT ADC_UNIT_1 #define EXAMPLE_ADC_ATTEN ADC_ATTEN_DB_12 #define EXAMPLE_ADC_WIDTH ADC_BITWIDTH_DEFAULT /* Set high threshold, approx. 1.75V*/ #define EXAMPLE_ADC_TRESHOLD 2000
4,007
/* */ #pragma once /* Ints are used here to be able to include the file in assembly as well */ #define EXAMPLE_ADC_CHANNEL 6 // ADC_CHANNEL_6, GPIO34 on ESP32, GPIO7 on ESP32-S3 #define EXAMPLE_ADC_UNIT 0 // ADC_UNIT_1 #define EXAMPLE_ADC_ATTEN 3 // ADC_ATTEN_DB_12 #define EXAMPLE_ADC_WIDTH 0 /...
4,008
/* */ #ifdef __cplusplus extern "C" { #endif #include "esp_efuse.h" // md5_digest_table 584317af6a850ee16ef6206c139d6cf5 // This file was generated from the file esp_efuse_custom_table.csv. DO NOT CHANGE THIS FILE MANUALLY. // If you want to change some fields, you need to change esp_efuse_custom_table.csv file // ...
4,009
/* Console example — various system commands This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */...
4,010
/* Console example — declarations of command registration functions. This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eithe...
4,011
/* */ /* Console example — declarations of command registration functions. This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND...
4,012
/* */ #ifndef _ESP_HID_GAP_H_ #define _ESP_HID_GAP_H_ #define HIDD_IDLE_MODE 0x00 #define HIDD_BLE_MODE 0x01 #define HIDD_BT_MODE 0x02 #define HIDD_BTDM_MODE 0x03 #if CONFIG_BT_HID_DEVICE_ENABLED #if CONFIG_BT_BLE_ENABLED #define HID_DEV_MODE HIDD_BTDM_MODE #else #define HID_DEV_MODE HIDD_BT_MODE #endif #elif CONFI...
4,013
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #include "stdio.h" #include "string.h" #define HCI_H4_CMD_PREAMBLE_SIZE (4) /* HCI Command Opcode group Field (OGF) */ #define HCI_GRP_HOST_CONT_BASEBAND_CMDS (0x03 > 8);} #define UINT8_TO_STREAM(p, u8) {*(p)++ = (uint8_t)(u8);} #define BDA...
4,014
/* */ #pragma once #define BLUFI_EXAMPLE_TAG "BLUFI_EXAMPLE" #define BLUFI_INFO(fmt, ...) ESP_LOGI(BLUFI_EXAMPLE_TAG, fmt, ##__VA_ARGS__) #define BLUFI_ERROR(fmt, ...) ESP_LOGE(BLUFI_EXAMPLE_TAG, fmt, ##__VA_ARGS__) void blufi_dh_negotiate_data_handler(uint8_t *data, int len, uint8_t **output_data, int *output_...
4,015
/* */ #ifndef _ESP_HID_GAP_H_ #define _ESP_HID_GAP_H_ #define HIDH_IDLE_MODE 0x00 #define HIDH_BLE_MODE 0x01 #define HIDH_BT_MODE 0x02 #define HIDH_BTDM_MODE 0x03 #if CONFIG_BT_HID_HOST_ENABLED #if CONFIG_BT_BLE_ENABLED #define HID_HOST_MODE HIDH_BTDM_MODE #else #define HID_HOST_MODE HIDH_BT_MODE #endif #elif CONF...
4,016
CONFIG_BT_NIMBLE_ENABLED struct { esp_bt_cod_t cod; esp_bt_uuid_t uuid; } bt; struct { esp_ble_addr_type_t addr_type; uint16_t appearance; } ble; #else struct { uint8_t addr_type; uint16_t appearance; ...
4,016
/* board.h - Board-specific hooks */ /* */ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #include "esp_ble_mesh_defs.h" #if defined(CONFIG_BLE_MESH_ESP_WROOM_32) #define LED_R GPIO_NUM_25 #define LED_G GPIO_NUM_26 #define LED_B GPIO_NUM_27 ...
4,017
/* board.h - Board-specific hooks */ /* */ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #if defined(CONFIG_BLE_MESH_ESP_WROOM_32) #define LED_R GPIO_NUM_25 #define LED_G GPIO_NUM_26 #define LED_B GPIO_NUM_27 #elif defined(CONFIG_BLE_MESH_E...
4,018
/* board.h - Board-specific hooks */ /* */ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #if defined(CONFIG_BLE_MESH_ESP_WROOM_32) #define LED_R GPIO_NUM_25 #define LED_G GPIO_NUM_26 #define LED_B GPIO_NUM_27 #elif defined(CONFIG_BLE_MESH_E...
4,019
/* board.h - Board-specific hooks */ /* */ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #if defined(CONFIG_BLE_MESH_ESP_WROOM_32) #define LED_R GPIO_NUM_25 #define LED_G GPIO_NUM_26 #define LED_B GPIO_NUM_27 #elif defined(CONFIG_BLE_MESH_E...
4,020
/* board.h - Board-specific hooks */ /* */ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #if defined(CONFIG_BLE_MESH_ESP_WROOM_32) #define LED_R GPIO_NUM_25 #define LED_G GPIO_NUM_26 #define LED_B GPIO_NUM_27 #elif defined(CONFIG_BLE_MESH_E...
4,021
/* board.h - Board-specific hooks */ /* */ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #if defined(CONFIG_BLE_MESH_ESP_WROOM_32) #define LED_R GPIO_NUM_25 #define LED_G GPIO_NUM_26 #define LED_B GPIO_NUM_27 #elif defined(CONFIG_BLE_MESH_E...
4,022
/* board.h - Board-specific hooks */ /* */ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ void board_init(void); #ifdef __cplusplus } #endif /**< __cplusplus */ #endif /* _BOARD_H_ */
4,023
/* board.h - Board-specific hooks */ /* */ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #if defined(CONFIG_BLE_MESH_ESP_WROOM_32) #define LED_R GPIO_NUM_25 #define LED_G GPIO_NUM_26 #define LED_B GPIO_NUM_27 #elif defined(CONFIG_BLE_MESH_E...
4,024
/* board.h - Board-specific hooks */ /* */ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #include "esp_ble_mesh_defs.h" #if defined(CONFIG_BLE_MESH_ESP_WROOM_32) #define LED_R GPIO_NUM_25 #define LED_G GPIO_NUM_26 #define LED_B GPIO_NUM_27 ...
4,025
/* */ #pragma once // Register WiFi functions void register_wifi(void); void initialise_wifi(void);
4,026
/* */ #ifndef _BOARD_H_ #define _BOARD_H_ #include "sdkconfig.h" #include "driver/gpio.h" #include "esp_ble_mesh_defs.h" #ifdef CONFIG_BLE_MESH_ESP_WROOM_32 #define LED_R GPIO_NUM_25 #define LED_G GPIO_NUM_26 #define LED_B GPIO_NUM_27 #elif defined(CONFIG_BLE_MESH_ESP_WROVER) #define LED_R GPIO_NUM_0 #define LED_G ...
4,027
/* */ /** */ #ifndef _GENIE_DLIST_H_ #define _GENIE_DLIST_H_ #include #ifdef __cplusplus extern "C" { #endif struct genie_dnode { union { struct genie_dnode *head; /* ptr to head of list (genie_dlist_t) */ struct genie_dnode *next; /* ptr to next node (genie_dnode_t) */ }; union ...
4,028
CONTAINER_OF(__dn, __typeof__(*__cn), __n) : NULL) /* */ #define GENIE_DLIST_PEEK_HEAD_CONTAINER(__dl, __cn, __n) \ GENIE_DLIST_CONTAINER(genie_dlist_peek_head(__dl), __cn, __n) /* */ #define GENIE_DLIST_PEEK_NEXT_CONTAINER(__dl, __cn, __n) \ ((__cn) ? GENIE_DLIST_CONTAINER(genie_dlist_peek_next(__dl, &(__c...
4,028
= list->tail; } /** */ static inline genie_dnode_t *genie_dlist_peek_head(genie_dlist_t *list) { return genie_dlist_is_empty(list) ? NULL : list->head; } /** */ static inline genie_dnode_t *genie_dlist_peek_head_not_empty(genie_dlist_t *list) { return list->head; } /** */ static inline genie_dnode_t *g...
4,028
insert_point) { genie_dlist_prepend(list, node); } else { node->next = insert_point->next; node->prev = insert_point; insert_point->next->prev = node; insert_point->next = node; } } /** */ static inline void genie_dlist_insert_before(genie_dlist_t *list, genie_...
4,028
// Copyright (C) 2018-2020 Alibaba Group Holding Limited // Adaptations to ESP-IDF Copyright (c) 2020 Espressif Systems (Shanghai) Co. 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...
4,029
// Copyright (C) 2018-2020 Alibaba Group Holding Limited // Adaptations to ESP-IDF Copyright (c) 2020 Espressif Systems (Shanghai) Co. 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...
4,030
// Copyright (C) 2018-2020 Alibaba Group Holding Limited // Adaptations to ESP-IDF Copyright (c) 2020 Espressif Systems (Shanghai) Co. 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...
4,031
h" #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #define CID_ALIBABA 0x01A8 /**< Alibaba Incorporated */ #define GENIE_VENDOR_MODEL_SRV_ID 0x0000 /**< Genie Vendor Model Server ID */ #define GENIE_VENDOR_MODEL_CLI_ID 0x0001 /**< Genie Vendor Model Client ID */ #define ...
4,031
antfin-inc.com/iotconnect/wwfb/dbyytw#1c38cf1b */ #define EVENT_FAULT 0x00 /* malfunction event */ #define EVENT_LOW_BAT 0x01 /* low battery event */ #define EVENT_DEV_UP 0x03 /* device power up */ #define EVENT_HW_RESET 0x23 /* hardware reset event */ #define EVENT...
4,031
// Copyright (C) 2018-2020 Alibaba Group Holding Limited // Adaptations to ESP-IDF Copyright (c) 2020 Espressif Systems (Shanghai) Co. 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...
4,032
// Copyright (C) 2018-2020 Alibaba Group Holding Limited // Adaptations to ESP-IDF Copyright (c) 2020 Espressif Systems (Shanghai) Co. 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...
4,033
/* */ /** */ #ifndef _GENIE_SLIST_H_ #define _GENIE_SLIST_H_ #include #include #include "mesh/utils.h" #ifdef __cplusplus extern "C" { #endif struct genie_snode { struct genie_snode *next; }; typedef struct genie_snode genie_snode_t; struct genie_slist { genie_snode_t *head; genie_snode_t *tail; ...
4,034
CONTAINER_OF((__ln), __typeof__(*(__cn)), __n) : NULL) /* */ #define GENIE_SLIST_PEEK_HEAD_CONTAINER(__sl, __cn, __n) \ GENIE_SLIST_CONTAINER(genie_slist_peek_head(__sl), __cn, __n) /* */ #define GENIE_SLIST_PEEK_TAIL_CONTAINER(__sl, __cn, __n) \ GENIE_SLIST_CONTAINER(genie_slist_peek_tail(__sl), ...
4,034
list->head); } /** */ static inline genie_snode_t *genie_slist_peek_head(genie_slist_t *list) { return list->head; } /** */ static inline genie_snode_t *genie_slist_peek_tail(genie_slist_t *list) { return list->tail; } /** */ static inline genie_snode_t *genie_slist_peek_next_no_check(genie_snode_t *node)...
4,034
list->tail) { list->head = (genie_snode_t *)head; list->tail = (genie_snode_t *)tail; } else { list->tail->next = (genie_snode_t *)head; list->tail = (genie_snode_t *)tail; } } /** */ static inline void genie_slist_merge_slist(genie_slist_t *list, genie_slist_t *list_to...
4,034