/hal_espressif-3.4.0/examples/peripherals/usb/host/cdc/common/cdc_acm_host/test/ |
D | test_cdc_acm_host.c | 27 static uint8_t tx_buf[] = "HELLO"; variable 148 .user_arg = tx_buf, 157 TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_data_tx_blocking(cdc_dev, tx_buf, sizeof(tx_buf), 1000)); 158 TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_data_tx_blocking(cdc_dev, tx_buf, sizeof(tx_buf), 1000)); 197 .user_arg = tx_buf, 206 … TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_data_tx_blocking(cdc_dev1, tx_buf, sizeof(tx_buf), 1000)); 231 … TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_data_tx_blocking(cdc_dev, tx_buf, sizeof(tx_buf), 1000)); in tx_task() 258 .user_arg = tx_buf, 359 …TEST_ASSERT_EQUAL(ESP_ERR_INVALID_SIZE, cdc_acm_host_data_tx_blocking(cdc_dev, tx_buf, 1024, 1000)… 367 …EQUAL(ESP_ERR_NOT_SUPPORTED, cdc_acm_host_data_tx_blocking(cdc_dev, tx_buf, sizeof(tx_buf), 1000));
|
/hal_espressif-3.4.0/components/esp_http_server/src/ |
D | httpd_ws.c | 161 char tx_buf[192] = { '\0' }; in httpd_ws_respond_server_handshake() local 162 int fmt_len = snprintf(tx_buf, sizeof(tx_buf), in httpd_ws_respond_server_handshake() 168 if (fmt_len < 0 || fmt_len > sizeof(tx_buf)) { in httpd_ws_respond_server_handshake() 175 …int r = snprintf(tx_buf + fmt_len, sizeof(tx_buf) - fmt_len, "Sec-WebSocket-Protocol: %s\r\n", sup… in httpd_ws_respond_server_handshake() 178 … "(snprintf of subprotocol returned %d, buffer size: %d", r, sizeof(tx_buf)); in httpd_ws_respond_server_handshake() 184 if (fmt_len >= sizeof(tx_buf)) { in httpd_ws_respond_server_handshake() 186 …f subprotocol returned %d, desired response len: %d, buffer size: %d", r, fmt_len, sizeof(tx_buf)); in httpd_ws_respond_server_handshake() 191 int r = snprintf(tx_buf + fmt_len, sizeof(tx_buf) - fmt_len, "\r\n"); in httpd_ws_respond_server_handshake() 194 "(snprintf of subprotocol returned %d, buffer size: %d", r, sizeof(tx_buf)); in httpd_ws_respond_server_handshake() 198 if (fmt_len >= sizeof(tx_buf)) { in httpd_ws_respond_server_handshake() [all …]
|
/hal_espressif-3.4.0/examples/mesh/internal_communication/main/ |
D | mesh_main.c | 34 static uint8_t tx_buf[TX_SIZE] = { 0, }; variable 71 data.data = tx_buf; in esp_mesh_p2p_tx_main() 72 data.size = sizeof(tx_buf); in esp_mesh_p2p_tx_main() 93 tx_buf[25] = (send_count >> 24) & 0xff; in esp_mesh_p2p_tx_main() 94 tx_buf[24] = (send_count >> 16) & 0xff; in esp_mesh_p2p_tx_main() 95 tx_buf[23] = (send_count >> 8) & 0xff; in esp_mesh_p2p_tx_main() 96 tx_buf[22] = (send_count >> 0) & 0xff; in esp_mesh_p2p_tx_main() 98 memcpy(tx_buf, (uint8_t *)&light_on, sizeof(light_on)); in esp_mesh_p2p_tx_main() 100 memcpy(tx_buf, (uint8_t *)&light_off, sizeof(light_off)); in esp_mesh_p2p_tx_main()
|
/hal_espressif-3.4.0/components/driver/test/ |
D | test_uart.c | 233 uint8_t *tx_buf = (uint8_t *)malloc(1024); in uart_write_task() local 234 if(tx_buf == NULL) { in uart_write_task() 238 tx_buf[i] = (i & 0xff); in uart_write_task() 242 tx_buf[0] = (i & 0xff); in uart_write_task() 243 tx_buf[1023] = ((~i) & 0xff); in uart_write_task() 244 uart_write_bytes(uart_num, (const char*)tx_buf, 1024); in uart_write_task() 247 free(tx_buf); in uart_write_task()
|
D | test_spi_master.c | 716 …uint8_t tx_buf[320] = {0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0, 0xaa, 0xcc, 0xff, 0xee, 0x5… variable 750 t.tx_buffer = tx_buf + 2 * i;
|
/hal_espressif-3.4.0/components/esp_eth/src/ |
D | esp_eth_mac_openeth.c | 50 uint8_t *tx_buf[TX_BUF_COUNT]; member 248 memcpy(emac->tx_buf[emac->cur_tx_desc], buf, will_write); in emac_opencores_transmit() 346 free(emac->tx_buf[i]); in emac_opencores_del() 372 emac->tx_buf[i] = heap_caps_calloc(1, DMA_BUF_SIZE, MALLOC_CAP_DMA); in esp_eth_mac_new_openeth() 373 if (!(emac->tx_buf[i])) { in esp_eth_mac_new_openeth() 376 openeth_init_tx_desc(openeth_tx_desc(i), emac->tx_buf[i]); in esp_eth_mac_new_openeth() 422 free(emac->tx_buf[i]); in esp_eth_mac_new_openeth()
|
D | esp_eth_mac_esp.c | 56 uint8_t *tx_buf[CONFIG_ETH_DMA_TX_BUFFER_NUM]; member 445 free(emac->tx_buf[i]); in esp_emac_free_driver_obj() 484 emac->tx_buf[i] = heap_caps_calloc(1, CONFIG_ETH_DMA_BUFFER_SIZE, MALLOC_CAP_DMA); in esp_emac_alloc_driver_obj() 485 ESP_GOTO_ON_FALSE(emac->tx_buf[i], ESP_ERR_NO_MEM, err, TAG, "no mem for TX DMA buffers"); in esp_emac_alloc_driver_obj() 586 emac_hal_init(&emac->hal, descriptors, emac->rx_buf, emac->tx_buf); in esp_eth_mac_new_esp32()
|
/hal_espressif-3.4.0/components/driver/ |
D | rmt.c | 85 rmt_item32_t *tx_buf; member 783 p_rmt->tx_buf, in rmt_driver_isr_default() 790 p_rmt->tx_data = p_rmt->tx_buf; in rmt_driver_isr_default() 997 if (p_rmt_obj[channel]->tx_buf) { in rmt_driver_uninstall() 998 free(p_rmt_obj[channel]->tx_buf); in rmt_driver_uninstall() 999 p_rmt_obj[channel]->tx_buf = NULL; in rmt_driver_uninstall() 1206 if (p_rmt_obj[channel]->tx_buf == NULL) { in rmt_translator_init() 1208 p_rmt_obj[channel]->tx_buf = (rmt_item32_t *)malloc(block_size); in rmt_translator_init() 1211 p_rmt_obj[channel]->tx_buf = (rmt_item32_t *)malloc(block_size); in rmt_translator_init() 1213 …p_rmt_obj[channel]->tx_buf = (rmt_item32_t *)heap_caps_calloc(1, block_size, MALLOC_CAP_INTERNAL |… in rmt_translator_init() [all …]
|
/hal_espressif-3.4.0/components/hal/ |
D | emac_hal.c | 124 uint8_t **rx_buf, uint8_t **tx_buf) in emac_hal_init() argument 131 hal->tx_buf = tx_buf; in emac_hal_init() 186 hal->tx_desc[i].Buffer1Addr = (uint32_t)(hal->tx_buf[i]); in emac_hal_reset_desc_chain()
|
/hal_espressif-3.4.0/components/hal/include/hal/ |
D | emac_hal.h | 160 uint8_t **tx_buf; member 168 uint8_t **rx_buf, uint8_t **tx_buf);
|