/hal_st-3.7.0/sensor/stmemsc/ilps28qsw_STdC/driver/ |
D | ilps28qsw_reg.c | 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() 700 data->pressure.hpa = ilps28qsw_from_fs4000_to_hPa(data->pressure.raw); in ilps28qsw_data_get() 711 data->ah_qvar.lsb = (data->pressure.raw / 256); /* shift 8bit left */ in ilps28qsw_data_get() 720 data->pressure.hpa = ilps28qsw_from_fs1260_to_hPa(data->pressure.raw); in ilps28qsw_data_get() 723 data->pressure.hpa = ilps28qsw_from_fs4000_to_hPa(data->pressure.raw); in ilps28qsw_data_get() 733 data->heat.raw = (int16_t)buff[4]; in ilps28qsw_data_get() [all …]
|
D | ilps28qsw_reg.h | 591 int32_t raw; /* 32 bit signed-left algned format left */ member 596 int16_t raw; member 609 int32_t raw; /* 32 bit signed-left algned format left */ member 636 int32_t raw; member
|
/hal_st-3.7.0/sensor/stmemsc/ilps22qs_STdC/driver/ |
D | ilps22qs_reg.c | 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() 731 data->pressure.hpa = ilps22qs_from_fs4000_to_hPa(data->pressure.raw); in ilps22qs_data_get() 740 data->ah_qvar.lsb = (data->pressure.raw / 256); /* shift 8bit left */ in ilps22qs_data_get() 747 data->pressure.hpa = ilps22qs_from_fs1260_to_hPa(data->pressure.raw); in ilps22qs_data_get() 750 data->pressure.hpa = ilps22qs_from_fs4000_to_hPa(data->pressure.raw); in ilps22qs_data_get() 760 data->heat.raw = (int16_t)buff[4]; in ilps22qs_data_get() [all …]
|
D | ilps22qs_reg.h | 605 int32_t raw; /* 32 bit signed-left algned format left */ member 610 int16_t raw; member 623 int32_t raw; /* 32 bit signed-left algned format left */ member 650 int32_t raw; member
|
/hal_st-3.7.0/sensor/stmemsc/lps28dfw_STdC/driver/ |
D | lps28dfw_reg.c | 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() 662 data->pressure.hpa = lps28dfw_from_fs4000_to_hPa(data->pressure.raw); in lps28dfw_data_get() 670 data->heat.raw = (int16_t)buff[4]; in lps28dfw_data_get() 671 data->heat.raw = (data->heat.raw * 256) + (int16_t) buff[3]; in lps28dfw_data_get() 672 data->heat.deg_c = lps28dfw_from_lsb_to_celsius(data->heat.raw); in lps28dfw_data_get() 826 data[i].raw = (int32_t)fifo_data[2]; in lps28dfw_fifo_data_get() [all …]
|
D | lps28dfw_reg.h | 632 int32_t raw; /* 32 bit signed-left algned format left */ member 637 int16_t raw; member 664 int32_t raw; member
|
/hal_st-3.7.0/sensor/stmemsc/lps22df_STdC/driver/ |
D | lps22df_reg.c | 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() 652 data->heat.raw = (int16_t)buff[4]; in lps22df_data_get() 653 data->heat.raw = (data->heat.raw * 256) + (int16_t) buff[3]; in lps22df_data_get() 654 data->heat.deg_c = lps22df_from_lsb_to_celsius(data->heat.raw); in lps22df_data_get() 804 data[i].raw = (int32_t)fifo_data[2]; in lps22df_fifo_data_get() 805 data[i].raw = (data[i].raw * 256) + (int32_t)fifo_data[1]; in lps22df_fifo_data_get() [all …]
|
D | lps22df_reg.h | 632 int32_t raw; /* 32 bit signed-left algned format left */ member 637 int16_t raw; member 663 int32_t raw; member
|
/hal_st-3.7.0/sensor/stmemsc/lis2du12_STdC/driver/ |
D | lis2du12_reg.c | 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() 636 data->xl.mg[i] =lis2du12_from_fs16g_to_mg(data->xl.raw[i]); in lis2du12_data_get() 644 data->heat.raw = (int16_t)buff[j+1U]; in lis2du12_data_get() 645 data->heat.raw = (data->heat.raw * 256) + (int16_t) buff[j]; in lis2du12_data_get() 647 data->heat.deg_c = lis2du12_from_lsb_to_celsius(data->heat.raw); in lis2du12_data_get() 891 data->xl[0].raw[i] = (int16_t)fifo_data[2*i + 1]; in lis2du12_fifo_data_get() [all …]
|
D | lis2du12_reg.h | 816 int16_t raw[3]; member 820 int16_t raw; member 865 int16_t raw[3]; member 869 int16_t raw; member
|
/hal_st-3.7.0/sensor/stmemsc/lis2duxs12_STdC/driver/ |
D | lis2duxs12_reg.c | 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() 656 data->mg[i] =lis2duxs12_from_fs16g_to_mg(data->raw[i]); in lis2duxs12_xl_data_get() 684 data->heat.raw = (int16_t)buff[1U]; in lis2duxs12_outt_data_get() 685 data->heat.raw = (data->heat.raw * 256) + (int16_t) buff[0]; in lis2duxs12_outt_data_get() 687 data->heat.deg_c = lis2duxs12_from_lsb_to_celsius(data->heat.raw); in lis2duxs12_outt_data_get() 709 data->raw = (int16_t)buff[1U]; in lis2duxs12_ah_qvar_data_get() [all …]
|
D | lis2duxs12_reg.h | 2184 int16_t raw[3]; member 2192 int16_t raw; member 2200 int16_t raw; member 2409 int16_t raw[3]; member 2413 int16_t raw; member 2417 int16_t raw; member
|
/hal_st-3.7.0/sensor/stmemsc/lis2dux12_STdC/driver/ |
D | lis2dux12_reg.c | 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() 651 data->mg[i] =lis2dux12_from_fs16g_to_mg(data->raw[i]); in lis2dux12_xl_data_get() 679 data->heat.raw = (int16_t)buff[1U]; in lis2dux12_outt_data_get() 680 data->heat.raw = (data->heat.raw * 256) + (int16_t) buff[0]; in lis2dux12_outt_data_get() 682 data->heat.deg_c = lis2dux12_from_lsb_to_celsius(data->heat.raw); in lis2dux12_outt_data_get() 1893 data->xl[0].raw[i] = (int16_t)fifo_raw[i] * 256; in lis2dux12_fifo_data_get() [all …]
|
D | lis2dux12_reg.h | 2162 int16_t raw[3]; member 2170 int16_t raw; member 2378 int16_t raw[3]; member 2382 int16_t raw; member
|
/hal_st-3.7.0/sensor/stmemsc/lis3dsh_STdC/driver/ |
D | lis3dsh_reg.c | 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() 785 data->xl.mg[i] = lis3dsh_from_fs4_to_mg(data->xl.raw[i]); in lis3dsh_data_get() 789 data->xl.mg[i] = lis3dsh_from_fs6_to_mg(data->xl.raw[i]); in lis3dsh_data_get() 793 data->xl.mg[i] = lis3dsh_from_fs8_to_mg(data->xl.raw[i]); in lis3dsh_data_get() 797 data->xl.mg[i] = lis3dsh_from_fs16_to_mg(data->xl.raw[i]); in lis3dsh_data_get()
|
D | lis3dsh_reg.h | 877 int16_t raw[3]; member 882 int8_t raw; member
|
/hal_st-3.7.0/sensor/stmemsc/lsm6dso_STdC/driver/ |
D | lsm6dso_reg.c | 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() 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() 11453 data->ui.gy.raw[i] = (data->ui.gy.raw[i] * 256) + (int16_t) buff[j]; in lsm6dso_data_get() 11459 data->ui.gy.mdps[i] = lsm6dso_from_fs250_to_mdps(data->ui.gy.raw[i]); in lsm6dso_data_get() 11463 data->ui.gy.mdps[i] = lsm6dso_from_fs125_to_mdps(data->ui.gy.raw[i]); in lsm6dso_data_get() 11467 data->ui.gy.mdps[i] = lsm6dso_from_fs500_to_mdps(data->ui.gy.raw[i]); in lsm6dso_data_get() 11471 data->ui.gy.mdps[i] = lsm6dso_from_fs1000_to_mdps(data->ui.gy.raw[i]); in lsm6dso_data_get() 11475 data->ui.gy.mdps[i] = lsm6dso_from_fs2000_to_mdps(data->ui.gy.raw[i]); in lsm6dso_data_get() [all …]
|
D | lsm6dso_reg.h | 4418 int16_t raw[3]; member 4423 int16_t raw[3]; member 4428 int16_t raw; member 4436 int16_t raw[3]; member 4441 int16_t raw[3]; member
|
/hal_st-3.7.0/sensor/stmemsc/lsm6dsox_STdC/driver/ |
D | lsm6dsox_reg.c | 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() 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() 14135 data->ui.gy.raw[i] = (data->ui.gy.raw[i] * 256) + (int16_t) buff[j]; in lsm6dsox_data_get() 14141 data->ui.gy.mdps[i] = lsm6dsox_from_fs250_to_mdps(data->ui.gy.raw[i]); in lsm6dsox_data_get() 14145 data->ui.gy.mdps[i] = lsm6dsox_from_fs125_to_mdps(data->ui.gy.raw[i]); in lsm6dsox_data_get() 14149 data->ui.gy.mdps[i] = lsm6dsox_from_fs500_to_mdps(data->ui.gy.raw[i]); in lsm6dsox_data_get() 14154 data->ui.gy.raw[i]); in lsm6dsox_data_get() 14159 data->ui.gy.raw[i]); in lsm6dsox_data_get() [all …]
|
D | lsm6dsox_reg.h | 4831 int16_t raw[3]; member 4836 int16_t raw[3]; member 4841 int16_t raw; member 4849 int16_t raw[3]; member 4854 int16_t raw[3]; member
|
/hal_st-3.7.0/sensor/stmemsc/ais25ba_STdC/driver/ |
D | ais25ba_reg.c | 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 | 360 int16_t raw[3]; member
|
/hal_st-3.7.0/sensor/stmemsc/lis25ba_STdC/driver/ |
D | lis25ba_reg.c | 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 | 372 int16_t raw[3]; member
|
/hal_st-3.7.0/sensor/stmemsc/lsm6dso32x_STdC/driver/ |
D | lsm6dso32x_reg.c | 12080 data->ui.heat.raw = (int16_t)buff[j + 1U]; in lsm6dso32x_data_get() 12081 data->ui.heat.raw = (((int16_t)data->ui.heat.raw * (int16_t)256) + in lsm6dso32x_data_get() 12085 int16_t)data->ui.heat.raw); in lsm6dso32x_data_get() 12090 data->ui.gy.raw[i] = (int16_t)buff[j + 1U]; in lsm6dso32x_data_get() 12091 data->ui.gy.raw[i] = (data->ui.gy.raw[i] * 256) + (int16_t) buff[j]; in lsm6dso32x_data_get() 12098 data->ui.gy.raw[i]); in lsm6dso32x_data_get() 12103 data->ui.gy.raw[i]); in lsm6dso32x_data_get() 12108 data->ui.gy.raw[i]); in lsm6dso32x_data_get() 12113 data->ui.gy.raw[i]); in lsm6dso32x_data_get() 12118 data->ui.gy.raw[i]); in lsm6dso32x_data_get() [all …]
|