Home
last modified time | relevance | path

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

/AliOS-Things-master/components/mbmaster/src/adu/rtu/
A Drtu.c15 uint8_t *send_buf; in rtu_assemble() local
28 send_buf = handler->mb_frame_buff; in rtu_assemble()
30 send_buf[ADU_SER_ADDR_OFF] = handler->slave_addr; in rtu_assemble()
32 crc_16 = mb_crc16((uint8_t *) send_buf, handler->mb_frame_length); in rtu_assemble()
34 send_buf[handler->mb_frame_length++] = (uint8_t)(crc_16 & 0xFF); in rtu_assemble()
35 send_buf[handler->mb_frame_length++] = (uint8_t)(crc_16 >> 8); in rtu_assemble()
42 debug_len += snprintf(debug_hex, sizeof(debug_hex),"0x%02x ", send_buf[i]); in rtu_assemble()
/AliOS-Things-master/components/http/src/
A Dhttp_client.c131 memcpy(send_buf + idx, buf, cp_len) ; in httpclient_get_info()
179 httpclient_get_info(client, send_buf, send_idx, b_auth, 0) ; in httpclient_send_auth()
194 char *send_buf = NULL; in httpclient_send_header() local
217 send_buf = (char *) malloc(send_buf_size); in httpclient_send_header()
218 if (!send_buf) { in httpclient_send_header()
223 memset(send_buf, 0, send_buf_size); in httpclient_send_header()
295 httpclient_get_info(client, send_buf, &len, "\r\n", 0); in httpclient_send_header()
312 ret = http_tcp_send_wrapper(client, send_buf, len); in httpclient_send_header()
338 if (send_buf) { in httpclient_send_header()
339 free(send_buf); in httpclient_send_header()
[all …]
/AliOS-Things-master/components/ble_host/ble_profiles/
A Dota_server.c427 static uint8_t send_buf[6] = {0xff, 0x03, 0x00, 0x00, 0x00, 0xfe}; in ota_request() local
428 send_buf[2] = offset >> 16 & 0xFF; in ota_request()
429 send_buf[3] = offset >> 8 & 0xFF; in ota_request()
430 send_buf[4] = offset >> 0 & 0xFF; in ota_request()
431 …_gatt_notificate(g_conn_hanlde, g_yoc_ota_handle + YOC_OTA_IDX_TX_VAL, send_buf, sizeof(send_buf)); in ota_request()
455 uint8_t send_buf[4] = {0xff, 0x01, 0x01, 0xfe}; in ble_ota_process() local
456 …_gatt_notificate(g_conn_hanlde, g_yoc_ota_handle + YOC_OTA_IDX_TX_VAL, send_buf, sizeof(send_buf)); in ble_ota_process()
510 uint8_t send_buf[4] = {0xff, 0x04, 0x00, 0xfe}; in ble_ota_process() local
511 …_gatt_notificate(g_conn_hanlde, g_yoc_ota_handle + YOC_OTA_IDX_TX_VAL, send_buf, sizeof(send_buf)); in ble_ota_process()
/AliOS-Things-master/components/linkkit/infra/
A Dinfra_httpc.c95 httpclient_t *client, char *send_buf, int *send_idx, char *buf, in _utils_fill_tx_buffer() argument
112 memcpy(send_buf + idx, buf, cp_len); in _utils_fill_tx_buffer()
117 ret = client->net.write(&client->net, send_buf, in _utils_fill_tx_buffer()
134 char send_buf[HTTPCLIENT_SEND_BUF_SIZE] = { 0 }; in _http_send_header() local
145 memset(send_buf, 0, HTTPCLIENT_SEND_BUF_SIZE); in _http_send_header()
151 ret = _utils_fill_tx_buffer(client, send_buf, &len, buf, strlen(buf)); in _http_send_header()
166 _utils_fill_tx_buffer(client, send_buf, &len, buf, strlen(buf)); in _http_send_header()
171 _utils_fill_tx_buffer(client, send_buf, &len, buf, strlen(buf)); in _http_send_header()
176 _utils_fill_tx_buffer(client, send_buf, &len, "\r\n", 0); in _http_send_header()
179 log_multi_line(LOG_DEBUG_LEVEL, "REQUEST", "%s", send_buf, ">"); in _http_send_header()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/hci_driver/
A Dhci_driver.c55 uint8_t send_buf[HCI_SEND_BUF_SIZE]; member
225 memset(tx.send_buf, 0, HCI_SEND_BUF_SIZE); in hci_tp_tx_callback()
261 memcpy(tx.send_buf, &tx.type, 1); in process_tx()
262 memcpy(tx.send_buf + 1, tx.buf->data, bytes); in process_tx()
264 ret = hci_tp_send(tx.send_buf, bytes + 1, hci_tp_tx_callback); in process_tx()
334 memset(tx.send_buf, 0, HCI_SEND_BUF_SIZE); in h4_open()
/AliOS-Things-master/components/py_engine/framework/
A Dsh1106.py205 send_buf = bytearray(1 + len(buf))
206 send_buf[0] = 0x40
208 send_buf[i+1] = buf[i]
209 print(send_buf)
210 self.i2c.write(send_buf)
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dconn.c1475 static bool send_buf(struct bt_conn *conn, struct net_buf *buf) in send_buf() function
1593 if (!send_buf(conn, buf)) { in bt_conn_process_tx()

Completed in 16 milliseconds