/hal_st-3.7.0/audio/microphone/ |
D | OpenPDMFilter.c | 51 int32_t filter_table_mono_64(uint8_t *data, uint8_t sincn) in filter_table_mono_64() argument 54 lut[data[0]][0][sincn] + in filter_table_mono_64() 55 lut[data[1]][1][sincn] + in filter_table_mono_64() 56 lut[data[2]][2][sincn] + in filter_table_mono_64() 57 lut[data[3]][3][sincn] + in filter_table_mono_64() 58 lut[data[4]][4][sincn] + in filter_table_mono_64() 59 lut[data[5]][5][sincn] + in filter_table_mono_64() 60 lut[data[6]][6][sincn] + in filter_table_mono_64() 61 lut[data[7]][7][sincn]; in filter_table_mono_64() 63 int32_t filter_table_stereo_64(uint8_t *data, uint8_t sincn) in filter_table_stereo_64() argument [all …]
|
/hal_st-3.7.0/sensor/stmemsc/ilps28qsw_STdC/driver/ |
D | ilps28qsw_reg.c | 49 int32_t __weak ilps28qsw_read_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in ilps28qsw_read_reg() argument 53 ret = ctx->read_reg(ctx->handle, reg, data, len); in ilps28qsw_read_reg() 68 uint8_t *data, in ilps28qsw_write_reg() argument 72 ret = ctx->write_reg(ctx->handle, reg, data, len); in ilps28qsw_write_reg() 676 ilps28qsw_data_t *data) in ilps28qsw_data_get() argument 684 data->pressure.raw = (int32_t)buff[2]; in ilps28qsw_data_get() 685 data->pressure.raw = (data->pressure.raw * 256) + (int32_t) buff[1]; in ilps28qsw_data_get() 686 data->pressure.raw = (data->pressure.raw * 256) + (int32_t) buff[0]; in ilps28qsw_data_get() 687 data->pressure.raw = data->pressure.raw * 256; in ilps28qsw_data_get() 697 data->pressure.hpa = ilps28qsw_from_fs1260_to_hPa(data->pressure.raw); in ilps28qsw_data_get() [all …]
|
D | ilps28qsw_reg.h | 151 uint8_t data; member 472 uint8_t *data, uint16_t len); 474 uint8_t *data, uint16_t len); 604 ilps28qsw_data_t *data); 612 ilps28qsw_ah_qvar_data_t *data); 639 ilps28qsw_md_t *md, ilps28qsw_fifo_data_t *data);
|
/hal_st-3.7.0/sensor/stmemsc/ilps22qs_STdC/driver/ |
D | ilps22qs_reg.c | 49 int32_t __weak ilps22qs_read_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in ilps22qs_read_reg() argument 53 ret = ctx->read_reg(ctx->handle, reg, data, len); in ilps22qs_read_reg() 67 int32_t __weak ilps22qs_write_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in ilps22qs_write_reg() argument 71 ret = ctx->write_reg(ctx->handle, reg, data, len); in ilps22qs_write_reg() 707 ilps22qs_data_t *data) in ilps22qs_data_get() argument 715 data->pressure.raw = (int32_t)buff[2]; in ilps22qs_data_get() 716 data->pressure.raw = (data->pressure.raw * 256) + (int32_t) buff[1]; in ilps22qs_data_get() 717 data->pressure.raw = (data->pressure.raw * 256) + (int32_t) buff[0]; in ilps22qs_data_get() 718 data->pressure.raw = data->pressure.raw * 256; in ilps22qs_data_get() 728 data->pressure.hpa = ilps22qs_from_fs1260_to_hPa(data->pressure.raw); in ilps22qs_data_get() [all …]
|
D | ilps22qs_reg.h | 151 uint8_t data; member 480 uint8_t *data, uint16_t len); 482 uint8_t *data, uint16_t len); 618 ilps22qs_data_t *data); 626 ilps22qs_ah_qvar_data_t *data); 653 ilps22qs_md_t *md, ilps22qs_fifo_data_t *data);
|
/hal_st-3.7.0/sensor/stmemsc/lis2duxs12_STdC/driver/ |
D | lis2duxs12_reg.c | 49 int32_t __weak lis2duxs12_read_reg(stmdev_ctx_t* ctx, uint8_t reg, uint8_t* data, in lis2duxs12_read_reg() argument 53 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis2duxs12_read_reg() 67 int32_t __weak lis2duxs12_write_reg(stmdev_ctx_t* ctx, uint8_t reg, uint8_t* data, in lis2duxs12_write_reg() argument 71 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis2duxs12_write_reg() 630 lis2duxs12_xl_data_t *data) in lis2duxs12_xl_data_get() argument 642 data->raw[i] = (int16_t)buff[j+1U]; in lis2duxs12_xl_data_get() 643 data->raw[i] = (data->raw[i] * 256) + (int16_t) buff[j]; in lis2duxs12_xl_data_get() 647 data->mg[i] =lis2duxs12_from_fs2g_to_mg(data->raw[i]); in lis2duxs12_xl_data_get() 650 data->mg[i] =lis2duxs12_from_fs4g_to_mg(data->raw[i]); in lis2duxs12_xl_data_get() 653 data->mg[i] =lis2duxs12_from_fs8g_to_mg(data->raw[i]); in lis2duxs12_xl_data_get() [all …]
|
/hal_st-3.7.0/sensor/stmemsc/lis2dux12_STdC/driver/ |
D | lis2dux12_reg.c | 49 int32_t __weak lis2dux12_read_reg(stmdev_ctx_t* ctx, uint8_t reg, uint8_t* data, in lis2dux12_read_reg() argument 53 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis2dux12_read_reg() 67 int32_t __weak lis2dux12_write_reg(stmdev_ctx_t* ctx, uint8_t reg, uint8_t* data, in lis2dux12_write_reg() argument 71 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis2dux12_write_reg() 625 lis2dux12_xl_data_t *data) in lis2dux12_xl_data_get() argument 637 data->raw[i] = (int16_t)buff[j+1U]; in lis2dux12_xl_data_get() 638 data->raw[i] = (data->raw[i] * 256) + (int16_t) buff[j]; in lis2dux12_xl_data_get() 642 data->mg[i] =lis2dux12_from_fs2g_to_mg(data->raw[i]); in lis2dux12_xl_data_get() 645 data->mg[i] =lis2dux12_from_fs4g_to_mg(data->raw[i]); in lis2dux12_xl_data_get() 648 data->mg[i] =lis2dux12_from_fs8g_to_mg(data->raw[i]); in lis2dux12_xl_data_get() [all …]
|
/hal_st-3.7.0/sensor/stmemsc/lps28dfw_STdC/driver/ |
D | lps28dfw_reg.c | 49 int32_t __weak lps28dfw_read_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in lps28dfw_read_reg() argument 53 ret = ctx->read_reg(ctx->handle, reg, data, len); in lps28dfw_read_reg() 67 int32_t __weak lps28dfw_write_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in lps28dfw_write_reg() argument 71 ret = ctx->write_reg(ctx->handle, reg, data, len); in lps28dfw_write_reg() 643 lps28dfw_data_t *data) in lps28dfw_data_get() argument 651 data->pressure.raw = (int32_t)buff[2]; in lps28dfw_data_get() 652 data->pressure.raw = (data->pressure.raw * 256) + (int32_t) buff[1]; in lps28dfw_data_get() 653 data->pressure.raw = (data->pressure.raw * 256) + (int32_t) buff[0]; in lps28dfw_data_get() 654 data->pressure.raw = data->pressure.raw * 256; in lps28dfw_data_get() 659 data->pressure.hpa = lps28dfw_from_fs1260_to_hPa(data->pressure.raw); in lps28dfw_data_get() [all …]
|
D | lps28dfw_reg.h | 151 uint8_t data; member 503 uint8_t *data, uint16_t len); 505 uint8_t *data, uint16_t len); 641 lps28dfw_data_t *data); 667 lps28dfw_md_t *md, lps28dfw_fifo_data_t *data);
|
/hal_st-3.7.0/sensor/stmemsc/_resources/FIFO_Utility_Tool/ |
D | st_fifo.c | 431 fifo_out_slot[j].sensor_data.data[0] = last_data_xl[0] + diff[0]; in st_fifo_decode() 432 fifo_out_slot[j].sensor_data.data[1] = last_data_xl[1] + diff[1]; in st_fifo_decode() 433 fifo_out_slot[j].sensor_data.data[2] = last_data_xl[2] + diff[2]; in st_fifo_decode() 440 fifo_out_slot[j].sensor_data.data[0] = last_data_gy[0] + diff[0]; in st_fifo_decode() 441 fifo_out_slot[j].sensor_data.data[1] = last_data_gy[1] + diff[1]; in st_fifo_decode() 442 fifo_out_slot[j].sensor_data.data[2] = last_data_gy[2] + diff[2]; in st_fifo_decode() 454 fifo_out_slot[j].sensor_data.data[0] = last_data_xl[0] + diff[3]; in st_fifo_decode() 455 fifo_out_slot[j].sensor_data.data[1] = last_data_xl[1] + diff[4]; in st_fifo_decode() 456 fifo_out_slot[j].sensor_data.data[2] = last_data_xl[2] + diff[5]; in st_fifo_decode() 465 fifo_out_slot[j].sensor_data.data[0] = last_data_gy[0] + diff[3]; in st_fifo_decode() [all …]
|
D | main.c | 83 …t[i].sensor_tag, out_slot[i].sensor_data.data[0], out_slot[i].sensor_data.data[1], out_slot[i].sen… in main()
|
/hal_st-3.7.0/sensor/stmemsc/lis2du12_STdC/driver/ |
D | lis2du12_reg.c | 49 int32_t __weak lis2du12_read_reg(stmdev_ctx_t* ctx, uint8_t reg, uint8_t* data, in lis2du12_read_reg() argument 53 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis2du12_read_reg() 67 int32_t __weak lis2du12_write_reg(stmdev_ctx_t* ctx, uint8_t reg, uint8_t* data, in lis2du12_write_reg() argument 71 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis2du12_write_reg() 610 lis2du12_data_t *data) in lis2du12_data_get() argument 622 data->xl.raw[i] = (int16_t)buff[j+1U]; in lis2du12_data_get() 623 data->xl.raw[i] = (data->xl.raw[i] * 256) + (int16_t) buff[j]; in lis2du12_data_get() 627 data->xl.mg[i] =lis2du12_from_fs2g_to_mg(data->xl.raw[i]); in lis2du12_data_get() 630 data->xl.mg[i] =lis2du12_from_fs4g_to_mg(data->xl.raw[i]); in lis2du12_data_get() 633 data->xl.mg[i] =lis2du12_from_fs8g_to_mg(data->xl.raw[i]); in lis2du12_data_get() [all …]
|
/hal_st-3.7.0/sensor/stmemsc/lps22df_STdC/driver/ |
D | lps22df_reg.c | 49 int32_t __weak lps22df_read_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in lps22df_read_reg() argument 54 ret = ctx->read_reg(ctx->handle, reg, data, len); in lps22df_read_reg() 68 int32_t __weak lps22df_write_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in lps22df_write_reg() argument 73 ret = ctx->write_reg(ctx->handle, reg, data, len); in lps22df_write_reg() 635 int32_t lps22df_data_get(stmdev_ctx_t *ctx, lps22df_data_t *data) in lps22df_data_get() argument 643 data->pressure.raw = (int32_t)buff[2]; in lps22df_data_get() 644 data->pressure.raw = (data->pressure.raw * 256) + (int32_t) buff[1]; in lps22df_data_get() 645 data->pressure.raw = (data->pressure.raw * 256) + (int32_t) buff[0]; in lps22df_data_get() 646 data->pressure.raw = data->pressure.raw * 256; in lps22df_data_get() 648 data->pressure.hpa = lps22df_from_lsb_to_hPa(data->pressure.raw); in lps22df_data_get() [all …]
|
D | lps22df_reg.h | 151 uint8_t data; member 507 uint8_t *data, uint16_t len); 509 uint8_t *data, uint16_t len); 640 int32_t lps22df_data_get(stmdev_ctx_t *ctx, lps22df_data_t *data); 665 int32_t lps22df_fifo_data_get(stmdev_ctx_t *ctx, uint8_t samp, lps22df_fifo_data_t *data);
|
/hal_st-3.7.0/sensor/stmemsc/lis3dsh_STdC/driver/ |
D | lis3dsh_reg.c | 50 uint8_t *data, in lis3dsh_read_reg() argument 55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis3dsh_read_reg() 71 uint8_t *data, in lis3dsh_write_reg() argument 76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis3dsh_write_reg() 753 lis3dsh_data_t *data) in lis3dsh_data_get() argument 760 ret = lis3dsh_read_reg(ctx, LIS3DSH_OUT_T, (uint8_t *)&data->heat.raw, 1); in lis3dsh_data_get() 768 data->heat.deg_c = lis3dsh_from_lsb_to_celsius(data->heat.raw); in lis3dsh_data_get() 774 data->xl.raw[i] = (int16_t)buff[j + 1U]; in lis3dsh_data_get() 775 data->xl.raw[i] = (data->xl.raw[i] * 256) + (int16_t) buff[j]; in lis3dsh_data_get() 781 data->xl.mg[i] = lis3dsh_from_fs2_to_mg(data->xl.raw[i]); in lis3dsh_data_get() [all …]
|
/hal_st-3.7.0/sensor/vl53l1x/api/core/src/ |
D | vl53l1_core.c | 530 uint16_t data = 0; in VL53L1_i2c_encode_uint16_t() local 532 data = ip_value; in VL53L1_i2c_encode_uint16_t() 535 pbuffer[count-i-1] = (uint8_t)(data & 0x00FF); in VL53L1_i2c_encode_uint16_t() 536 data = data >> 8; in VL53L1_i2c_encode_uint16_t() 570 int16_t data = 0; in VL53L1_i2c_encode_int16_t() local 572 data = ip_value; in VL53L1_i2c_encode_int16_t() 575 pbuffer[count-i-1] = (uint8_t)(data & 0x00FF); in VL53L1_i2c_encode_int16_t() 576 data = data >> 8; in VL53L1_i2c_encode_int16_t() 614 uint32_t data = 0; in VL53L1_i2c_encode_uint32_t() local 616 data = ip_value; in VL53L1_i2c_encode_uint32_t() [all …]
|
D | vl53l1_api_calibration.c | 390 poffset = &(pdev->offset_results.data[m]); in VL53L1_run_offset_calibration() 401 poffset = &(pdev->offset_results.data[m]); in VL53L1_run_offset_calibration() 460 prange_data = &(prange_results->data[0]); in VL53L1_run_offset_calibration() 554 (int16_t)pdev->offset_results.data[0].range_mm_offset; in VL53L1_run_offset_calibration() 556 (int16_t)pdev->offset_results.data[0].range_mm_offset; in VL53L1_run_offset_calibration() 562 (int16_t)pdev->offset_results.data[1].range_mm_offset; in VL53L1_run_offset_calibration() 564 (int16_t)pdev->offset_results.data[2].range_mm_offset; in VL53L1_run_offset_calibration() 571 (uint16_t)pdev->offset_results.data[1].effective_spads; in VL53L1_run_offset_calibration() 573 (uint16_t)pdev->offset_results.data[2].effective_spads; in VL53L1_run_offset_calibration() 576 (uint16_t)pdev->offset_results.data[1].peak_rate_mcps; in VL53L1_run_offset_calibration() [all …]
|
/hal_st-3.7.0/sensor/stmemsc/ais25ba_STdC/driver/ |
D | ais25ba_reg.c | 50 uint8_t *data, in ais25ba_read_reg() argument 55 ret = ctx->read_reg(ctx->handle, reg, data, len); in ais25ba_read_reg() 71 uint8_t *data, in ais25ba_write_reg() argument 76 ret = ctx->write_reg(ctx->handle, reg, data, len); in ais25ba_write_reg() 357 ais25ba_data_t *data) in ais25ba_data_get() argument 374 data->xl.raw[i] = (int16_t) tdm_stream[i + offset]; in ais25ba_data_get() 375 data->xl.mg[i] = ais25ba_from_raw_to_mg(data->xl.raw[i]); in ais25ba_data_get()
|
D | ais25ba_reg.h | 151 uint8_t data; member 308 uint8_t *data, 311 uint8_t *data, 364 ais25ba_data_t *data);
|
/hal_st-3.7.0/sensor/stmemsc/lis25ba_STdC/driver/ |
D | lis25ba_reg.c | 50 uint8_t *data, in lis25ba_read_reg() argument 55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis25ba_read_reg() 71 uint8_t *data, in lis25ba_write_reg() argument 76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis25ba_write_reg() 364 lis25ba_data_t *data) in lis25ba_data_get() argument 381 data->xl.raw[i] = (int16_t) tdm_stream[i + offset]; in lis25ba_data_get() 382 data->xl.mg[i] = lis25ba_from_raw_to_mg(data->xl.raw[i]); in lis25ba_data_get()
|
D | lis25ba_reg.h | 151 uint8_t data; member 314 uint8_t *data, 317 uint8_t *data, 376 lis25ba_data_t *data);
|
/hal_st-3.7.0/sensor/vl53l0x/api/core/src/ |
D | vl53l0x_api.c | 1448 uint16_t data; in VL53L0X_SetXTalkCompensationRateMegaCps() local 1460 data = VL53L0X_FIXPOINT1616TOFIXPOINT313( in VL53L0X_SetXTalkCompensationRateMegaCps() 1463 data = 0; in VL53L0X_SetXTalkCompensationRateMegaCps() 1467 VL53L0X_REG_CROSSTALK_COMPENSATION_PEAK_RATE_MCPS, data); in VL53L0X_SetXTalkCompensationRateMegaCps() 1991 uint8_t data; in VL53L0X_GetWrapAroundCheckEnable() local 1995 Status = VL53L0X_RdByte(Dev, VL53L0X_REG_SYSTEM_SEQUENCE_CONFIG, &data); in VL53L0X_GetWrapAroundCheckEnable() 1997 PALDevDataSet(Dev, SequenceConfig, data); in VL53L0X_GetWrapAroundCheckEnable() 1998 if (data & (0x01 << 7)) in VL53L0X_GetWrapAroundCheckEnable() 2625 uint8_t data; in VL53L0X_SetGpioConfig() local 2633 data = 0x10; in VL53L0X_SetGpioConfig() [all …]
|
/hal_st-3.7.0/sensor/stmemsc/sths34pf80_STdC/driver/ |
D | sths34pf80_reg.c | 54 uint8_t *data, in sths34pf80_read_reg() argument 59 ret = ctx->read_reg(ctx->handle, reg, data, len); in sths34pf80_read_reg() 75 uint8_t *data, in sths34pf80_write_reg() argument 80 ret = ctx->write_reg(ctx->handle, reg, data, len); in sths34pf80_write_reg() 325 sths34pf80_sens_data_t data; in sths34pf80_tmos_sensitivity_set() local 328 data.sens = (*val >= 2048U) ? in sths34pf80_tmos_sensitivity_set() 331 ret = sths34pf80_write_reg(ctx, STHS34PF80_SENS_DATA, (uint8_t *)&data, 1); in sths34pf80_tmos_sensitivity_set() 332 *val = (int8_t)data.sens * 16U + 2048U; in sths34pf80_tmos_sensitivity_set() 347 sths34pf80_sens_data_t data; in sths34pf80_tmos_sensitivity_get() local 350 ret = sths34pf80_read_reg(ctx, STHS34PF80_SENS_DATA, (uint8_t *)&data, 1); in sths34pf80_tmos_sensitivity_get() [all …]
|
/hal_st-3.7.0/sensor/stmemsc/lsm6dso_STdC/driver/ |
D | lsm6dso_reg.c | 51 uint8_t *data, in lsm6dso_read_reg() argument 56 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dso_read_reg() 72 uint8_t *data, in lsm6dso_write_reg() argument 77 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dso_write_reg() 11424 lsm6dso_md_t *md, lsm6dso_data_t *data) in lsm6dso_data_get() argument 11442 data->ui.heat.raw = (int16_t)buff[j + 1U]; in lsm6dso_data_get() 11443 data->ui.heat.raw = (((int16_t)data->ui.heat.raw * (int16_t)256) + in lsm6dso_data_get() 11446 data->ui.heat.deg_c = lsm6dso_from_lsb_to_celsius(( in lsm6dso_data_get() 11447 int16_t)data->ui.heat.raw); in lsm6dso_data_get() 11452 data->ui.gy.raw[i] = (int16_t)buff[j + 1U]; in lsm6dso_data_get() [all …]
|
/hal_st-3.7.0/sensor/stmemsc/lsm6dsox_STdC/driver/ |
D | lsm6dsox_reg.c | 50 uint8_t *data, in lsm6dsox_read_reg() argument 55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsox_read_reg() 71 uint8_t *data, in lsm6dsox_write_reg() argument 76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsox_write_reg() 14107 lsm6dsox_md_t *md, lsm6dsox_data_t *data) in lsm6dsox_data_get() argument 14124 data->ui.heat.raw = (int16_t)buff[j + 1U]; in lsm6dsox_data_get() 14125 data->ui.heat.raw = (((int16_t)data->ui.heat.raw * (int16_t)256) + in lsm6dsox_data_get() 14128 data->ui.heat.deg_c = lsm6dsox_from_lsb_to_celsius(( in lsm6dsox_data_get() 14129 int16_t)data->ui.heat.raw); in lsm6dsox_data_get() 14134 data->ui.gy.raw[i] = (int16_t)buff[j + 1U]; in lsm6dsox_data_get() [all …]
|