Home
last modified time | relevance | path

Searched refs:recv_data (Results 1 – 21 of 21) sorted by relevance

/device/board/bearpi/bearpi_hm_nano/app/C3_e53_sc1_pls/src/
DE53_SC1.c115 uint8_t recv_data[BH1750_RECV_DATA_LEN] = { 0 }; in E53SC1ReadData() local
116 …ret = IoTI2cRead(WIFI_IOT_I2C_IDX_1, (BH1750_ADDR << 1) | 0x01, recv_data, sizeof(recv_data)); // … in E53SC1ReadData()
120 …*data = (float)(((recv_data[0] << DATA_WIDTH_8_BIT) + recv_data[1]) / BH1750_COEFFICIENT_LUX); // … in E53SC1ReadData()
/device/board/bearpi/bearpi_hm_nano/app/D8_iot_cloud_oc_light/src/
DE53_SC1.c113 uint8_t recv_data[BH1750_RECV_DATA_LEN] = { 0 }; in E53SC1ReadData() local
114 …ret = IoTI2cRead(WIFI_IOT_I2C_IDX_1, (BH1750_ADDR << 1) | 0x01, recv_data, sizeof(recv_data)); // … in E53SC1ReadData()
118 …*data = (float)(((recv_data[0] << DATA_WIDTH_8_BIT) + recv_data[1]) / BH1750_COEFFICIENT_LUX); // … in E53SC1ReadData()
/device/board/talkweb/niobe407/applications/301_network_tcpclient/
Dtcp_client.c28 char recv_data[512] = {0}; in tcp_client() local
54 recv_data_len = recv(sock, recv_data, 511, 0); in tcp_client()
58 recv_data[recv_data_len] = '\0'; in tcp_client()
60 printf("recv:%s\n", recv_data); in tcp_client()
61 write(sock, recv_data, recv_data_len); in tcp_client()
DREADME_zh.md140 char recv_data[512]={0};
177 recv_data_len = recv(sock, recv_data, 511, 0);
180 recv_data[recv_data_len] = '\0';
183 printf("recv:%s\n",recv_data);
185 write(sock,recv_data,recv_data_len);
/device/board/talkweb/niobe407/applications/302_network_tcpserver/
Dtcp_server.c36 char recv_data[TCP_SERVER_RCV_DATA_SIZE] = {0}; in tcp_server() local
72 recv_data_len = recv(connected, recv_data, RECV_BUFFER_MAX, 0); in tcp_server()
76 recv_data[recv_data_len] = '\0'; in tcp_server()
79 printf("recv %s\n", recv_data); in tcp_server()
80 write(connected, recv_data, recv_data_len); in tcp_server()
DREADME_zh.md168 char recv_data[512]={0};
222 recv_data_len = recv(connected, recv_data, 511, 0);
227 recv_data[recv_data_len] = '\0';
229 printf("recv %s\n",recv_data);
232 write(connected,recv_data,recv_data_len);
243 if (recv_data) free(recv_data);
/device/soc/hisilicon/hi3861v100/sdk_liteos/app/demo/src/
Dapp_demo_i2c.c72 hi_u8 recv_data[I2C_REG_ARRAY_LEN] = { 0 }; in i2c_demo_writeread() local
78 memset_s(recv_data, I2C_REG_ARRAY_LEN, 0x0, sizeof(recv_data)); in i2c_demo_writeread()
83 es8311_i2c_data.receive_buf = recv_data; in i2c_demo_writeread()
92 printf("----- revData[%d] = 0x%x! -----\r\n", i, recv_data[i]); in i2c_demo_writeread()
/device/board/bearpi/bearpi_hm_nano/app/D6_iot_cloud_oc/src/
DE53_IA1.c223 uint8_t recv_data[BH1750_RECV_DATA_LEN] = { 0 }; in E53IA1ReadData() local
224 …ret = IoTI2cRead(WIFI_IOT_I2C_IDX_1, (BH1750_ADDR << 1) | 0x01, recv_data, sizeof(recv_data)); // … in E53IA1ReadData()
228 …ReadData->Lux = (float)(((recv_data[0] << DATA_WIDTH_8_BIT) + recv_data[1]) / BH1750_COEFFICIENT_L… in E53IA1ReadData()
Doc_mqtt.c72 … void (*cmd_rsp_cb)(uint8_t *recv_data, size_t recv_size, uint8_t **resp_data, size_t *resp_size);
179 …void (*cmd_rsp_cb)(uint8_t *recv_data, uint32_t recv_size, uint8_t **resp_data, uint32_t *resp_siz… in oc_set_cmd_rsp_cb() argument
/device/board/bearpi/bearpi_hm_nano/app/C2_e53_ia1_temp_humi_pls/src/
DE53_IA1.c223 uint8_t recv_data[BH1750_RECV_DATA_LEN] = { 0 }; in E53IA1ReadData() local
224 …ret = IoTI2cRead(WIFI_IOT_I2C_IDX_1, (BH1750_ADDR << 1) | 0x01, recv_data, sizeof(recv_data)); // … in E53IA1ReadData()
228 …ReadData->Lux = (float)(((recv_data[0] << DATA_WIDTH_8_BIT) + recv_data[1]) / BH1750_COEFFICIENT_L… in E53IA1ReadData()
/device/board/bearpi/bearpi_hm_nano/app/D11_iot_cloud_oc_agriculture/src/
DE53_IA1.c223 uint8_t recv_data[BH1750_RECV_DATA_LEN] = { 0 }; in E53IA1ReadData() local
224 …ret = IoTI2cRead(WIFI_IOT_I2C_IDX_1, (BH1750_ADDR << 1) | 0x01, recv_data, sizeof(recv_data)); // … in E53IA1ReadData()
228 …ReadData->Lux = (float)(((recv_data[0] << DATA_WIDTH_8_BIT) + recv_data[1]) / BH1750_COEFFICIENT_L… in E53IA1ReadData()
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_cli/
Dcli_uart.c104 uint8_t *recv_data = (uint8_t *)os_malloc(buf_len); in cli_uart_cmd() local
105 if (recv_data == NULL) { in cli_uart_cmd()
113 int data_len = bk_uart_read_bytes(uart_id, recv_data, buf_len, time_out); in cli_uart_cmd()
120 CLI_LOGI("recv_buffer[%d]=0x%x\n", i, recv_data[i]); in cli_uart_cmd()
123 if (recv_data) { in cli_uart_cmd()
124 os_free(recv_data); in cli_uart_cmd()
126 recv_data = NULL; in cli_uart_cmd()
/device/board/bearpi/bearpi_hm_nano/app/D6_iot_cloud_oc/
DREADME.md38 > void oc_set_cmd_rsp_cb(void(*cmd_rsp_cb)(uint8_t *recv_data, size_t recv_size, uint8_t **resp_dat…
44 |recv_data | 接收到的数据。 |
209 void oc_cmd_rsp_cb(uint8_t *recv_data, size_t recv_size, uint8_t **resp_data, size_t *resp_size)
216 app_msg->msg.cmd.payload = (char *)recv_data;
218 printf("recv data is %.*s\n", recv_size, recv_data);
221 free(recv_data);
Diot_cloud_oc_sample.c124 void MsgRcvCallback(uint8_t *recv_data, size_t recv_size, uint8_t **resp_data, size_t *resp_size) in MsgRcvCallback() argument
131 app_msg->msg.cmd.payload = (char *)recv_data; in MsgRcvCallback()
133 printf("recv data is %s\n", recv_data); in MsgRcvCallback()
136 free(recv_data); in MsgRcvCallback()
/device/board/bearpi/bearpi_hm_nano/app/D6_iot_cloud_oc/include/
Doc_mqtt.h158 void oc_set_cmd_rsp_cb(void (*cmd_rsp_cb)(uint8_t *recv_data, uint32_t recv_size,
/device/board/unionman/unionpi_tiger/hardware/bt/src/
Dhci_h5.c189 RTB_QUEUE_HEAD *recv_data; // Unreliable packets queue member
949 skb_queue_tail(rtk_h5.recv_data, rx_skb); in rtk_notify_hw_h5_init_result()
1328 skb_queue_tail(rtk_h5.recv_data, h5->rx_skb); in h5_complete_rx_pkt()
1490 while (h5_data_ready_running && (skb_queue_get_length(rtk_h5.recv_data) == 0)) { in data_ready_cb_thread()
1495 if (h5_data_ready_running && (skb = skb_dequeue_head(rtk_h5.recv_data)) != NULL) { in data_ready_cb_thread()
1658 rtk_h5.recv_data = RtbQueueInit(); in hci_h5_int_init()
2031 skb_queue_tail(rtk_h5.recv_data, rtk_h5.internal_skb); in h5_wait_controller_baudrate_ready_timeout_handler()
Duserial_vendor.c108 RTB_QUEUE_HEAD *recv_data; member
298 vnd_userial.recv_data = RtbQueueInit(); in userial_vendor_init()
730 RtbQueueTail(vnd_userial.recv_data, skb_data); in userial_enqueue_coex_rawdata()
989 skb_data = RtbDequeueHead(vnd_userial.recv_data); in userial_coex_handler()
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/libbt-vendor/src/
Dhci_h5.c196 RTB_QUEUE_HEAD *recv_data; // Unreliable packets queue member
1341 skb_queue_tail(rtk_h5.recv_data, rx_skb); in rtk_notify_hw_h5_init_result()
1792 skb_queue_tail(rtk_h5.recv_data, h5->rx_skb); in h5_complete_rx_pkt()
1970 while (h5_data_ready_running && (skb_queue_get_length(rtk_h5.recv_data) == 0)) in data_ready_cb_thread()
1976 if (h5_data_ready_running && (skb = skb_dequeue_head(rtk_h5.recv_data)) != NULL) in data_ready_cb_thread()
2173 rtk_h5.recv_data = RtbQueueInit(); in hci_h5_int_init()
2581 skb_queue_tail(rtk_h5.recv_data, rtk_h5.internal_skb); in h5_wait_controller_baudrate_ready_timeout_handler()
Duserial_vendor.c110 RTB_QUEUE_HEAD *recv_data; member
308 vnd_userial.recv_data = RtbQueueInit(); in userial_vendor_init()
748 RtbQueueTail(vnd_userial.recv_data, skb_data); in userial_enqueue_coex_rawdata()
1025 skb_data = RtbDequeueHead(vnd_userial.recv_data); in userial_coex_handler()
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/
Drtw_btcoex.c1331 u8 recv_data[255]; in rtw_btcoex_recvmsgbysocket() local
1366 _rtw_memset(recv_data, 0, sizeof(recv_data)); in rtw_btcoex_recvmsgbysocket()
1367 _rtw_memcpy(recv_data, skb->data + 8, recv_length); in rtw_btcoex_recvmsgbysocket()
1369 parse_res = rtw_btcoex_parse_recv_data(recv_data, recv_length); in rtw_btcoex_recvmsgbysocket()
1401 rtw_btcoex_parse_hci_cmd(pbtcoexadapter, recv_data, recv_length); in rtw_btcoex_recvmsgbysocket()
1451 rtw_btcoex_parse_hci_cmd(pbtcoexadapter, recv_data, recv_length); in rtw_btcoex_recvmsgbysocket()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/input/sensor/stk3x1x/
Dstk3x1x.c1827 int32_t recv_data; in stk_recv_store() local
1834 recv_data = stk3x1x_i2c_smbus_read_byte_data(ps_data->client, value); in stk_recv_store()
1835 printk("%s: reg 0x%x=0x%x\n", __func__, (int)value, recv_data); in stk_recv_store()
1836 atomic_set(&ps_data->recv_reg, recv_data); in stk_recv_store()