Home
last modified time | relevance | path

Searched refs:send_buf (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/samples/drivers/uart/native_tty/src/
Dmain.c54 char send_buf[64]; in main() local
59 snprintf(send_buf, 64, "Hello from device %s, num %d", uart0->name, i); in main()
60 send_str(uart0, send_buf); in main()
82 snprintf(send_buf, 64, "Hello from device %s, num %d", uart0->name, i); in main()
83 send_str(uart0, send_buf); in main()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_client.c66 static int http_send_data(int sock, char *send_buf, in http_send_data() argument
91 strncpy(send_buf + end_of_send, in http_send_data()
99 LOG_HEXDUMP_DBG(send_buf, end_of_send, in http_send_data()
102 ret = sendall(sock, send_buf, end_of_send, req_end_timepoint); in http_send_data()
112 memcpy(send_buf + end_of_send, in http_send_data()
141 static int http_flush_data(int sock, const char *send_buf, size_t send_buf_len, in http_flush_data() argument
146 LOG_HEXDUMP_DBG(send_buf, send_buf_len, "Data to send"); in http_flush_data()
148 ret = sendall(sock, send_buf, send_buf_len, req_end_timepoint); in http_flush_data()
559 char send_buf[MAX_SEND_BUF_LEN]; in http_client_req() local
560 const size_t send_buf_max_len = sizeof(send_buf); in http_client_req()
[all …]
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/
Dtest_msgq_attrs.c10 static ZTEST_DMEM uint32_t send_buf[MSGQ_LEN] = { MSG0, MSG1 }; variable
23 ret = k_msgq_put(q, (void *)&send_buf[i], K_NO_WAIT); in attrs_get()
/Zephyr-latest/tests/net/socket/misc/src/
Dmain.c181 uint8_t send_buf[32]; in test_so_bindtodevice() local
182 uint8_t recv_buf[sizeof(send_buf)] = { 0 }; in test_so_bindtodevice()
199 strcpy(send_buf, DEV1_NAME); in test_so_bindtodevice()
205 ret = zsock_sendto(sock_c, send_buf, strlen(send_buf) + 1, 0, in test_so_bindtodevice()
207 zassert_equal(ret, strlen(send_buf) + 1, "sendto failed, %d", errno); in test_so_bindtodevice()
224 strcpy(send_buf, DEV2_NAME); in test_so_bindtodevice()
230 ret = zsock_sendto(sock_c, send_buf, strlen(send_buf) + 1, 0, in test_so_bindtodevice()
232 zassert_equal(ret, strlen(send_buf) + 1, "sendto failed, %d", errno); in test_so_bindtodevice()
262 strcpy(send_buf, DEV1_NAME); in test_so_bindtodevice()
268 ret = zsock_sendto(sock_c, send_buf, strlen(send_buf) + 1, 0, in test_so_bindtodevice()
[all …]
/Zephyr-latest/drivers/sensor/vishay/veml7700/
Dveml7700.c220 uint8_t send_buf[3]; in veml7700_write() local
222 send_buf[0] = cmd; /* byte 0: command code */ in veml7700_write()
223 sys_put_le16(data, &send_buf[1]); /* bytes 1,2: command arguments */ in veml7700_write()
225 return i2c_write_dt(&conf->bus, send_buf, ARRAY_SIZE(send_buf)); in veml7700_write()
/Zephyr-latest/drivers/led_strip/
Dws2812_gpio.c76 static int send_buf(const struct device *dev, uint8_t *buf, size_t len) in send_buf() function
165 return send_buf(dev, (uint8_t *)pixels, num_pixels * config->num_colors); in ws2812_gpio_update_rgb()
/Zephyr-latest/include/zephyr/net/
Dcoap_client.h112 uint8_t send_buf[MAX_COAP_MSG_LEN]; member
/Zephyr-latest/drivers/modem/
Dublox-sara-r4.c294 char send_buf[sizeof("AT+USO**=###," in send_socket_data() local
358 snprintk(send_buf, sizeof(send_buf), in send_socket_data()
363 snprintk(send_buf, sizeof(send_buf), "AT+USOWR=%d,%zu", in send_socket_data()
373 NULL, 0U, send_buf, NULL, K_NO_WAIT); in send_socket_data()
457 char send_buf[sizeof("AT+USECMNG=#,#,!####!,####\r\n")]; in send_cert() local
470 snprintk(send_buf, sizeof(send_buf), in send_cert()
476 NULL, 0U, send_buf, NULL, K_NO_WAIT); in send_cert()
Dquectel-bg9x.c448 char send_buf[sizeof("AT+QISEND=##,####")] = {0}; in send_socket_data() local
457 snprintk(send_buf, sizeof(send_buf), "AT+QISEND=%d,%ld", sock->id, (long) buf_len); in send_socket_data()
465 NULL, 0U, send_buf, NULL, K_NO_WAIT); in send_socket_data()
Dsimcom-sim7080.c222 char send_buf[sizeof("AT+CASEND=#,####")] = { 0 }; in offload_sendto() local
248 ret = snprintk(send_buf, sizeof(send_buf), "AT+CASEND=%d,%ld", sock->id, (long)len); in offload_sendto()
261 ret = modem_cmd_send_nolock(&mctx.iface, &mctx.cmd_handler, NULL, 0U, send_buf, NULL, in offload_sendto()
/Zephyr-latest/drivers/net/
Dppp.c91 uint8_t send_buf[UART_TX_BUF_LEN]; member
94 uint8_t send_buf[UART_BUF_LEN]; member
399 uint8_t *buf = ppp->send_buf; in ppp_send_flush()
451 ppp->send_buf[off++] = data[i]; in ppp_send_bytes()
453 if (off >= sizeof(ppp->send_buf)) { in ppp_send_bytes()
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_client.c206 memset(client->send_buf, 0, sizeof(client->send_buf)); in coap_client_init_request()
216 ret = coap_packet_init(&internal_req->request, client->send_buf, MAX_COAP_MSG_LEN, in coap_client_init_request()
687 ret = coap_ack_init(&ack, req, client->send_buf, MAX_COAP_MSG_LEN, response_code); in send_ack()
707 ret = coap_rst_init(&rst, req, client->send_buf, MAX_COAP_MSG_LEN); in send_rst()
/Zephyr-latest/drivers/adc/
Dadc_ads131m02.c134 uint8_t *send_buf, size_t send_buf_len, in ads131m02_transceive() argument
141 .buf = send_buf, in ads131m02_transceive()
/Zephyr-latest/drivers/smbus/
Dintel_pch_smbus.c842 uint8_t send_count, uint8_t *send_buf, in pch_smbus_block_pcall() argument
854 send_count, send_buf, SMBUS_CMD_BLOCK_PROC); in pch_smbus_block_pcall()
/Zephyr-latest/include/zephyr/drivers/
Dsmbus.h374 uint8_t send_count, uint8_t *send_buf,
/Zephyr-latest/subsys/bluetooth/host/
Dconn.c648 static int send_buf(struct bt_conn *conn, struct net_buf *buf, in send_buf() function
1086 int err = send_buf(conn, buf, buf_len, cb, ud); in bt_conn_tx_processor()