Home
last modified time | relevance | path

Searched refs:pdata (Results 1 – 25 of 111) sorted by relevance

12345

/AliOS-Things-master/components/sensor/hal/
A Dsensor_static_calibrate.c62 dev_3axis_data_t* pdata=(dev_3axis_data_t*)buf; in sensor_static_calibrate_3axis_default() local
64 memcpy(&datatmp,pdata,sizeof(dev_3axis_data_t)); in sensor_static_calibrate_3axis_default()
85 dev_3axis_data_t* pdata=(dev_3axis_data_t*)buf; in sensor_static_calibrate_3axis() local
88 memcpy(&datatmp,pdata,sizeof(dev_3axis_data_t)); in sensor_static_calibrate_3axis()
93 pdata->data[DST_X] += ppara->offset; in sensor_static_calibrate_3axis()
99 pdata->data[DST_Y] += ppara->offset; in sensor_static_calibrate_3axis()
105 pdata->data[DST_Z] += ppara->offset; in sensor_static_calibrate_3axis()
110 dev_1axis_data_t* pdata=(dev_1axis_data_t*)buf; in sensor_static_calibrate_1axis_default() local
111 pdata->data += default_1axis_para.offset; in sensor_static_calibrate_1axis_default()
116 dev_1axis_data_t* pdata=(dev_1axis_data_t*)buf; in sensor_static_calibrate_1axis() local
[all …]
/AliOS-Things-master/components/ble_host/bt_host/hci_driver/
A Dh4_driver.c171 uint8_t *pdata = data; in hci_event_recv() local
181 if (*pdata++ != H4_EVT) { in hci_event_recv()
189 hdr.evt = *pdata++; in hci_event_recv()
190 hdr.len = *pdata++; in hci_event_recv()
197 sub_event = *pdata++; in hci_event_recv()
248 uint8_t *pdata = data; in hci_acl_recv() local
257 if (*pdata++ != H4_ACL) { in hci_acl_recv()
265 handle = ((*pdata + 1) << 16) | (*(pdata)); in hci_acl_recv()
266 pdata += 2; in hci_acl_recv()
267 acl_len = ((*pdata + 1) << 16) | (*(pdata)); in hci_acl_recv()
[all …]
A Dh5_driver.c90 uint8_t *pdata = data; in hci_h5_event_recv() local
96 if (pdata == NULL || len == 0) { in hci_h5_event_recv()
104 hdr.evt = *pdata++; in hci_h5_event_recv()
105 hdr.len = *pdata++; in hci_h5_event_recv()
112 sub_event = *pdata++; in hci_h5_event_recv()
/AliOS-Things-master/components/sensor/drv/
A Ddrv_baro_bosch_bmp38x.c618 partial_data1 = (sensitivity / 16777216) * pdata->p; in drv_baro_bosch_bmp380_compensate_baro()
621 partial_data4 = (partial_data3 * pdata->p) / 8192; in drv_baro_bosch_bmp380_compensate_baro()
622 partial_data5 = (partial_data4 * pdata->p) / 512; in drv_baro_bosch_bmp380_compensate_baro()
623 partial_data6 = (int64_t)((uint64_t)pdata->p * (uint64_t)pdata->p); in drv_baro_bosch_bmp380_compensate_baro()
625 partial_data3 = (partial_data2 * pdata->p) / 128; in drv_baro_bosch_bmp380_compensate_baro()
629 pdata->p = comp_baro; in drv_baro_bosch_bmp380_compensate_baro()
644 ret = drv_baro_bosch_bmp380_read_uncomp_baro(drv, pdata); in drv_baro_bosch_bmp380_read_baro()
648 ret = drv_baro_bosch_bmp380_compensate_baro(pdata); in drv_baro_bosch_bmp380_read_baro()
681 pdata->t = (int32_t)(comp_temp); in drv_baro_bosch_bmp380_comp_temp()
779 barometer_data_t* pdata = (barometer_data_t*)buf; in drv_baro_bosch_bmp380_read() local
[all …]
A Ddrv_temp_humi_si_si7006.c57 temperature_data_t *pdata = (temperature_data_t *)buf; in drv_temp_si_si7006_read() local
95 pdata->t = (int)(temp * 10); in drv_temp_si_si7006_read()
96 pdata->timestamp = aos_now_ms(); in drv_temp_si_si7006_read()
183 humidity_data_t *pdata = (humidity_data_t *)buf; in drv_humi_si_si7006_read() local
217 pdata->h = (int)(humi * 10); in drv_humi_si_si7006_read()
218 pdata->timestamp = aos_now_ms(); in drv_humi_si_si7006_read()
A Ddrv_tvoc_sensirion_sgp30.c98 static int drv_sgp30_read_raw_data(i2c_dev_t *drv, integer_data_t *pdata) in drv_sgp30_read_raw_data() argument
118 pdata->data = ((uint16_t)data[3] << 8) | data[4]; in drv_sgp30_read_raw_data()
120 pdata->data = ((uint16_t)data[0] << 8) | data[1]; in drv_sgp30_read_raw_data()
193 integer_data_t *pdata = (integer_data_t *)buf; in drv_tvoc_sensirion_sgp30_read() local
204 ret = drv_sgp30_read_raw_data(&sgp30_ctx, pdata); in drv_tvoc_sensirion_sgp30_read()
208 pdata->timestamp = aos_now_ms(); in drv_tvoc_sensirion_sgp30_read()
A Ddrv_baro_bosch_bmp280.c618 comp_baro = (((uint32_t)(((int)1048576) - pdata->p) - in drv_baro_bosch_bmp280_compensate_baro()
648 pdata->p = comp_baro; in drv_baro_bosch_bmp280_compensate_baro()
658 ret = drv_baro_bosch_bmp280_read_uncomp_baro(drv, pdata); in drv_baro_bosch_bmp280_read_baro()
662 ret = drv_baro_bosch_bmp280_compensate_baro(pdata); in drv_baro_bosch_bmp280_read_baro()
675 ((((pdata->t >> BMP280_SHIFT_BY_03_BITS) - in drv_baro_bosch_bmp280_comp_temp()
680 v_x2_u32r = (((((pdata->t >> BMP280_SHIFT_BY_04_BITS) - in drv_baro_bosch_bmp280_comp_temp()
682 ((pdata->t >> BMP280_SHIFT_BY_04_BITS) - in drv_baro_bosch_bmp280_comp_temp()
690 pdata->t = in drv_baro_bosch_bmp280_comp_temp()
765 barometer_data_t *pdata = (barometer_data_t *)buf; in drv_baro_bosch_bmp280_read() local
780 ret = drv_baro_bosch_bmp280_read_baro(&bmp280_ctx, pdata); in drv_baro_bosch_bmp280_read()
[all …]
A Ddrv_baro_rohm_bm1383a.c320 barometer_data_t* pdata = (barometer_data_t*)buf; in drv_baro_rohm_bm1383a_read() local
339 pdata->p |= (((uint32_t)data[i]) << (8*i)); in drv_baro_rohm_bm1383a_read()
345 if((pdata->p & 0x00800000) != 0){ in drv_baro_rohm_bm1383a_read()
346 pdata->p |= 0xFF000000; in drv_baro_rohm_bm1383a_read()
348 pdata->p = (pdata->p * 25)/2048; in drv_baro_rohm_bm1383a_read()
351 pdata->p -= PRESSURE_VALUES_OFFSET; in drv_baro_rohm_bm1383a_read()
355 pdata->timestamp = aos_now_ms(); in drv_baro_rohm_bm1383a_read()
A Ddrv_temp_humi_sensirion_sht30.c171 temperature_data_t *pdata = (temperature_data_t*)buf; in drv_temp_sensirion_sht30_read() local
185 pdata->t = g_sht30_data_new.temperature / 100.0f; in drv_temp_sensirion_sht30_read()
187 pdata->timestamp = aos_now_ms(); in drv_temp_sensirion_sht30_read()
240 humidity_data_t *pdata = (humidity_data_t*)buf; in drv_humi_sensirion_sht30_read() local
254 pdata->h = g_sht30_data_new.humidity / 100; in drv_humi_sensirion_sht30_read()
256 pdata->timestamp = aos_now_ms(); in drv_humi_sensirion_sht30_read()
A Ddrv_temp_humi_sensirion_sht31.c171 temperature_data_t *pdata = (temperature_data_t*)buf; in drv_temp_sensirion_sht31_read() local
185 pdata->t = g_sht31_data_new.temperature / 100.0f; in drv_temp_sensirion_sht31_read()
187 pdata->timestamp = aos_now_ms(); in drv_temp_sensirion_sht31_read()
240 humidity_data_t *pdata = (humidity_data_t*)buf; in drv_humi_sensirion_sht31_read() local
254 pdata->h = g_sht31_data_new.humidity / 100; in drv_humi_sensirion_sht31_read()
256 pdata->timestamp = aos_now_ms(); in drv_humi_sensirion_sht31_read()
A Ddrv_co2_sensirion_scd30.c135 static int drv_scd30_read_raw_data(i2c_dev_t *drv, integer_data_t *pdata) in drv_scd30_read_raw_data() argument
153 pdata->data = g_scd30_most_recent_value; in drv_scd30_read_raw_data()
198 integer_data_t * pdata = (integer_data_t *)buf; in drv_co2_sensirion_scd30_read() local
208 ret = drv_scd30_read_raw_data(&scd30_ctx, pdata); in drv_co2_sensirion_scd30_read()
212 pdata->timestamp = aos_now_ms(); in drv_co2_sensirion_scd30_read()
A Ddrv_temp_humi_sensirion_shtc1.c236 temperature_data_t *pdata = (temperature_data_t *)buf; in drv_temp_sensirion_shtc1_read() local
252 pdata->t = g_data_new.temperature / 100; in drv_temp_sensirion_shtc1_read()
254 pdata->timestamp = aos_now_ms(); in drv_temp_sensirion_shtc1_read()
306 humidity_data_t *pdata = (humidity_data_t *)buf; in drv_humi_sensirion_shtc1_read() local
322 pdata->h = g_data_new.humidity / 100; in drv_humi_sensirion_shtc1_read()
324 pdata->timestamp = aos_now_ms(); in drv_humi_sensirion_shtc1_read()
A Ddrv_acc_mir3_da213B.c239 accel_data_t* pdata = (accel_data_t*)buf; in drv_acc_mir3_da213B_read() local
255 pdata->data[0] = (int32_t)((int16_t)(acc_raw[1] << 8 | acc_raw[0]) >> 4); in drv_acc_mir3_da213B_read()
256 pdata->data[1] = (int32_t)((int16_t)(acc_raw[3] << 8 | acc_raw[2]) >> 4); in drv_acc_mir3_da213B_read()
257 pdata->data[2] = (int32_t)((int16_t)(acc_raw[5] << 8 | acc_raw[4]) >> 4); in drv_acc_mir3_da213B_read()
259 pdata->timestamp = aos_now_ms(); in drv_acc_mir3_da213B_read()
A Ddrv_acc_mir3_da312B.c239 accel_data_t* pdata = (accel_data_t*)buf; in drv_acc_mir3_da312B_read() local
255 pdata->data[0] = (int32_t)((int16_t)(acc_raw[1] << 8 | acc_raw[0]) >> 4); in drv_acc_mir3_da312B_read()
256 pdata->data[1] = (int32_t)((int16_t)(acc_raw[3] << 8 | acc_raw[2]) >> 4); in drv_acc_mir3_da312B_read()
257 pdata->data[2] = (int32_t)((int16_t)(acc_raw[5] << 8 | acc_raw[4]) >> 4); in drv_acc_mir3_da312B_read()
259 pdata->timestamp = aos_now_ms(); in drv_acc_mir3_da312B_read()
A Ddrv_acc_mir3_da380B.c239 accel_data_t* pdata = (accel_data_t*)buf; in drv_acc_mir3_da380B_read() local
255 pdata->data[0] = (int32_t)((int16_t)(acc_raw[1] << 8 | acc_raw[0]) >> 4); in drv_acc_mir3_da380B_read()
256 pdata->data[1] = (int32_t)((int16_t)(acc_raw[3] << 8 | acc_raw[2]) >> 4); in drv_acc_mir3_da380B_read()
257 pdata->data[2] = (int32_t)((int16_t)(acc_raw[5] << 8 | acc_raw[4]) >> 4); in drv_acc_mir3_da380B_read()
259 pdata->timestamp = aos_now_ms(); in drv_acc_mir3_da380B_read()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/ota/
A Dmodule_appota.c36 static void ota_install_notify(void *pdata) in ota_install_notify() argument
38 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_install_notify()
54 static void ota_install_handler(void *pdata) in ota_install_handler() argument
58 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_install_handler()
125 static void ota_verify_notify(void *pdata) in ota_verify_notify() argument
127 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_verify_notify()
143 static void ota_verify_handler(void *pdata) in ota_verify_handler() argument
148 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_verify_handler()
221 static void ota_download_notify(void *pdata) in ota_download_notify() argument
237 static void ota_download_handler(void *pdata) in ota_download_handler() argument
[all …]
/AliOS-Things-master/components/py_engine/modules/ota/
A Dmodappota.c54 static void ota_install_notify(void *pdata) in ota_install_notify() argument
56 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_install_notify()
68 static void ota_install_handler(void *pdata) in ota_install_handler() argument
72 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_install_handler()
146 static void ota_verify_notify(void *pdata) in ota_verify_notify() argument
148 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_verify_notify()
160 static void ota_verify_handler(void *pdata) in ota_verify_handler() argument
165 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_verify_handler()
249 static void ota_download_notify(void *pdata) in ota_download_notify() argument
263 static void ota_download_handler(void *pdata) in ota_download_handler() argument
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/hci_driver/
A Dhci_driver.c148 uint8_t *pdata = data; in h4_receive() local
155 if (NULL == pdata) { in h4_receive()
160 rx.type = *pdata; in h4_receive()
161 pdata++; in h4_receive()
165 pdata += get_evt_hdr(pdata, length); in h4_receive()
169 pdata += get_acl_hdr(pdata, length); in h4_receive()
196 net_buf_add_mem(rx.buf, pdata, rx.remaining); in h4_receive()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/advanced/ota/
A Dmodule_appota.c44 static void ota_release_notify(void *pdata) in ota_release_notify() argument
46 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_release_notify()
57 static void ota_install_notify(void *pdata) in ota_install_notify() argument
59 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_install_notify()
82 static void ota_install_handler(void *pdata) in ota_install_handler() argument
86 ota_package_info_t *ota_package_info = (ota_package_info_t *)pdata; in ota_install_handler()
154 static void ota_verify_notify(void *pdata) in ota_verify_notify() argument
179 static void ota_verify_handler(void *pdata) in ota_verify_handler() argument
258 static void ota_download_notify(void *pdata) in ota_download_notify() argument
283 static void ota_download_handler(void *pdata) in ota_download_handler() argument
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/common/inc/
A Dftl_if.h26 extern uint32_t ftl_load_from_storage(void *pdata, uint16_t offset, uint16_t size);
27 extern uint32_t ftl_save_to_storage(void *pdata, uint16_t offset, uint16_t size);
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/inc/platform/
A Dftl.h78 uint32_t ftl_save(void *pdata, uint16_t offset, uint16_t size);
94 uint32_t ftl_load(void *pdata, uint16_t offset, uint16_t size);
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/file_system/ftl/
A Dftl_int.h59 uint32_t ftl_save_to_storage(void *pdata, uint16_t offset, uint16_t size);
71 uint32_t ftl_load_from_storage(void *pdata, uint16_t offset, uint16_t size);
/AliOS-Things-master/components/ble_host/ble_profiles/
A Duart_client.c123 uint8_t *pdata = data; in find_uart_uuid_by_ad() local
128 if (pdata[0] == 0) { in find_uart_uuid_by_ad()
132 if (len < pdata[0] + 1) { in find_uart_uuid_by_ad()
136 ad.len = pdata[0] - 1; in find_uart_uuid_by_ad()
138 ad.type = pdata[1]; in find_uart_uuid_by_ad()
140 ad.data = &pdata[2]; in find_uart_uuid_by_ad()
148 len -= (pdata[0] + 1); in find_uart_uuid_by_ad()
149 pdata += (pdata[0] + 1); in find_uart_uuid_by_ad()
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/bt_if_enhanced/inc/
A Dsco_api.h18 … void (*sco_notify_callback) (enum sco_event_enum event, void *pdata), void *link);
20 … void (*sco_notify_callback) (enum sco_event_enum event, void *pdata, void *link), void *link);
/AliOS-Things-master/kernel/rhino/
A Dk_ringbuf.c103 kstat_t ringbuf_pop(k_ringbuf_t *p_ringbuf, void *pdata, size_t *plen) in ringbuf_pop() argument
106 uint8_t *data = pdata; in ringbuf_pop()
116 memcpy(pdata, p_ringbuf->head, p_ringbuf->blk_size); in ringbuf_pop()
156 memcpy(pdata, p_ringbuf->head, split_len); in ringbuf_pop()
157 data = (uint8_t *)pdata + split_len; in ringbuf_pop()

Completed in 52 milliseconds

12345