/hal_st-3.4.0/sensor/stmemsc/lis2dh12_STdC/driver/ |
D | lis2dh12_reg.c | 93 float_t lis2dh12_from_fs2_hr_to_mg(int16_t lsb) in lis2dh12_from_fs2_hr_to_mg() argument 95 return ((float_t)lsb / 16.0f) * 1.0f; in lis2dh12_from_fs2_hr_to_mg() 98 float_t lis2dh12_from_fs4_hr_to_mg(int16_t lsb) in lis2dh12_from_fs4_hr_to_mg() argument 100 return ((float_t)lsb / 16.0f) * 2.0f; in lis2dh12_from_fs4_hr_to_mg() 103 float_t lis2dh12_from_fs8_hr_to_mg(int16_t lsb) in lis2dh12_from_fs8_hr_to_mg() argument 105 return ((float_t)lsb / 16.0f) * 4.0f; in lis2dh12_from_fs8_hr_to_mg() 108 float_t lis2dh12_from_fs16_hr_to_mg(int16_t lsb) in lis2dh12_from_fs16_hr_to_mg() argument 110 return ((float_t)lsb / 16.0f) * 12.0f; in lis2dh12_from_fs16_hr_to_mg() 113 float_t lis2dh12_from_lsb_hr_to_celsius(int16_t lsb) in lis2dh12_from_lsb_hr_to_celsius() argument 115 return (((float_t)lsb / 64.0f) / 4.0f) + 25.0f; in lis2dh12_from_lsb_hr_to_celsius() [all …]
|
D | lis2dh12_reg.h | 728 float_t lis2dh12_from_fs2_hr_to_mg(int16_t lsb); 729 float_t lis2dh12_from_fs4_hr_to_mg(int16_t lsb); 730 float_t lis2dh12_from_fs8_hr_to_mg(int16_t lsb); 731 float_t lis2dh12_from_fs16_hr_to_mg(int16_t lsb); 732 float_t lis2dh12_from_lsb_hr_to_celsius(int16_t lsb); 734 float_t lis2dh12_from_fs2_nm_to_mg(int16_t lsb); 735 float_t lis2dh12_from_fs4_nm_to_mg(int16_t lsb); 736 float_t lis2dh12_from_fs8_nm_to_mg(int16_t lsb); 737 float_t lis2dh12_from_fs16_nm_to_mg(int16_t lsb); 738 float_t lis2dh12_from_lsb_nm_to_celsius(int16_t lsb); [all …]
|
/hal_st-3.4.0/sensor/stmemsc/lis2dh_STdC/driver/ |
D | lis2dh_reg.c | 93 float_t lis2dh_from_fs2_hr_to_mg(int16_t lsb) in lis2dh_from_fs2_hr_to_mg() argument 95 return ((float_t)lsb / 16.0f) * 1.0f; in lis2dh_from_fs2_hr_to_mg() 98 float_t lis2dh_from_fs4_hr_to_mg(int16_t lsb) in lis2dh_from_fs4_hr_to_mg() argument 100 return ((float_t)lsb / 16.0f) * 2.0f; in lis2dh_from_fs4_hr_to_mg() 103 float_t lis2dh_from_fs8_hr_to_mg(int16_t lsb) in lis2dh_from_fs8_hr_to_mg() argument 105 return ((float_t)lsb / 16.0f) * 4.0f; in lis2dh_from_fs8_hr_to_mg() 108 float_t lis2dh_from_fs16_hr_to_mg(int16_t lsb) in lis2dh_from_fs16_hr_to_mg() argument 110 return ((float_t)lsb / 16.0f) * 12.0f; in lis2dh_from_fs16_hr_to_mg() 113 float_t lis2dh_from_lsb_hr_to_celsius(int16_t lsb) in lis2dh_from_lsb_hr_to_celsius() argument 115 return (((float_t)lsb / 64.0f) / 4.0f) + 25.0f; in lis2dh_from_lsb_hr_to_celsius() [all …]
|
D | lis2dh_reg.h | 716 float_t lis2dh_from_fs2_hr_to_mg(int16_t lsb); 717 float_t lis2dh_from_fs4_hr_to_mg(int16_t lsb); 718 float_t lis2dh_from_fs8_hr_to_mg(int16_t lsb); 719 float_t lis2dh_from_fs16_hr_to_mg(int16_t lsb); 720 float_t lis2dh_from_lsb_hr_to_celsius(int16_t lsb); 722 float_t lis2dh_from_fs2_nm_to_mg(int16_t lsb); 723 float_t lis2dh_from_fs4_nm_to_mg(int16_t lsb); 724 float_t lis2dh_from_fs8_nm_to_mg(int16_t lsb); 725 float_t lis2dh_from_fs16_nm_to_mg(int16_t lsb); 726 float_t lis2dh_from_lsb_nm_to_celsius(int16_t lsb); [all …]
|
/hal_st-3.4.0/sensor/stmemsc/iis2dh_STdC/driver/ |
D | iis2dh_reg.c | 92 float_t iis2dh_from_fs2_hr_to_mg(int16_t lsb) in iis2dh_from_fs2_hr_to_mg() argument 94 return ((float_t)lsb / 16.0f) * 0.98f; in iis2dh_from_fs2_hr_to_mg() 97 float_t iis2dh_from_fs4_hr_to_mg(int16_t lsb) in iis2dh_from_fs4_hr_to_mg() argument 99 return ((float_t)lsb / 16.0f) * 1.95f; in iis2dh_from_fs4_hr_to_mg() 102 float_t iis2dh_from_fs8_hr_to_mg(int16_t lsb) in iis2dh_from_fs8_hr_to_mg() argument 104 return ((float_t)lsb / 16.0f) * 3.91f; in iis2dh_from_fs8_hr_to_mg() 107 float_t iis2dh_from_fs16_hr_to_mg(int16_t lsb) in iis2dh_from_fs16_hr_to_mg() argument 109 return ((float_t)lsb / 16.0f) * 11.72f; in iis2dh_from_fs16_hr_to_mg() 112 float_t iis2dh_from_lsb_hr_to_celsius(int16_t lsb) in iis2dh_from_lsb_hr_to_celsius() argument 114 return (((float_t)lsb / 64.0f) / 4.0f) + 25.0f; in iis2dh_from_lsb_hr_to_celsius() [all …]
|
D | iis2dh_reg.h | 714 float_t iis2dh_from_fs2_hr_to_mg(int16_t lsb); 715 float_t iis2dh_from_fs4_hr_to_mg(int16_t lsb); 716 float_t iis2dh_from_fs8_hr_to_mg(int16_t lsb); 717 float_t iis2dh_from_fs16_hr_to_mg(int16_t lsb); 718 float_t iis2dh_from_lsb_hr_to_celsius(int16_t lsb); 720 float_t iis2dh_from_fs2_nm_to_mg(int16_t lsb); 721 float_t iis2dh_from_fs4_nm_to_mg(int16_t lsb); 722 float_t iis2dh_from_fs8_nm_to_mg(int16_t lsb); 723 float_t iis2dh_from_fs16_nm_to_mg(int16_t lsb); 724 float_t iis2dh_from_lsb_nm_to_celsius(int16_t lsb); [all …]
|
/hal_st-3.4.0/sensor/stmemsc/lis3dh_STdC/driver/ |
D | lis3dh_reg.c | 92 float_t lis3dh_from_fs2_hr_to_mg(int16_t lsb) in lis3dh_from_fs2_hr_to_mg() argument 94 return ((float_t)lsb / 16.0f) * 1.0f; in lis3dh_from_fs2_hr_to_mg() 97 float_t lis3dh_from_fs4_hr_to_mg(int16_t lsb) in lis3dh_from_fs4_hr_to_mg() argument 99 return ((float_t)lsb / 16.0f) * 2.0f; in lis3dh_from_fs4_hr_to_mg() 102 float_t lis3dh_from_fs8_hr_to_mg(int16_t lsb) in lis3dh_from_fs8_hr_to_mg() argument 104 return ((float_t)lsb / 16.0f) * 4.0f; in lis3dh_from_fs8_hr_to_mg() 107 float_t lis3dh_from_fs16_hr_to_mg(int16_t lsb) in lis3dh_from_fs16_hr_to_mg() argument 109 return ((float_t)lsb / 16.0f) * 12.0f; in lis3dh_from_fs16_hr_to_mg() 112 float_t lis3dh_from_lsb_hr_to_celsius(int16_t lsb) in lis3dh_from_lsb_hr_to_celsius() argument 114 return (((float_t)lsb / 64.0f) / 4.0f) + 25.0f; in lis3dh_from_lsb_hr_to_celsius() [all …]
|
D | lis3dh_reg.h | 740 float_t lis3dh_from_fs2_hr_to_mg(int16_t lsb); 741 float_t lis3dh_from_fs4_hr_to_mg(int16_t lsb); 742 float_t lis3dh_from_fs8_hr_to_mg(int16_t lsb); 743 float_t lis3dh_from_fs16_hr_to_mg(int16_t lsb); 744 float_t lis3dh_from_lsb_hr_to_celsius(int16_t lsb); 746 float_t lis3dh_from_fs2_nm_to_mg(int16_t lsb); 747 float_t lis3dh_from_fs4_nm_to_mg(int16_t lsb); 748 float_t lis3dh_from_fs8_nm_to_mg(int16_t lsb); 749 float_t lis3dh_from_fs16_nm_to_mg(int16_t lsb); 750 float_t lis3dh_from_lsb_nm_to_celsius(int16_t lsb); [all …]
|
/hal_st-3.4.0/sensor/stmemsc/lsm303agr_STdC/driver/ |
D | lsm303agr_reg.c | 93 float_t lsm303agr_from_fs_2g_hr_to_mg(int16_t lsb) in lsm303agr_from_fs_2g_hr_to_mg() argument 95 return ((float_t)lsb / 16.0f) * 0.98f; in lsm303agr_from_fs_2g_hr_to_mg() 98 float_t lsm303agr_from_fs_4g_hr_to_mg(int16_t lsb) in lsm303agr_from_fs_4g_hr_to_mg() argument 100 return ((float_t)lsb / 16.0f) * 1.95f; in lsm303agr_from_fs_4g_hr_to_mg() 103 float_t lsm303agr_from_fs_8g_hr_to_mg(int16_t lsb) in lsm303agr_from_fs_8g_hr_to_mg() argument 105 return ((float_t)lsb / 16.0f) * 3.9f; in lsm303agr_from_fs_8g_hr_to_mg() 108 float_t lsm303agr_from_fs_16g_hr_to_mg(int16_t lsb) in lsm303agr_from_fs_16g_hr_to_mg() argument 110 return ((float_t)lsb / 16.0f) * 11.72f; in lsm303agr_from_fs_16g_hr_to_mg() 113 float_t lsm303agr_from_lsb_hr_to_celsius(int16_t lsb) in lsm303agr_from_lsb_hr_to_celsius() argument 115 return (((float_t)lsb / 64.0f) / 4.0f) + 25.0f; in lsm303agr_from_lsb_hr_to_celsius() [all …]
|
D | lsm303agr_reg.h | 874 float_t lsm303agr_from_fs_2g_hr_to_mg(int16_t lsb); 875 float_t lsm303agr_from_fs_4g_hr_to_mg(int16_t lsb); 876 float_t lsm303agr_from_fs_8g_hr_to_mg(int16_t lsb); 877 float_t lsm303agr_from_fs_16g_hr_to_mg(int16_t lsb); 878 float_t lsm303agr_from_lsb_hr_to_celsius(int16_t lsb); 880 float_t lsm303agr_from_fs_2g_nm_to_mg(int16_t lsb); 881 float_t lsm303agr_from_fs_4g_nm_to_mg(int16_t lsb); 882 float_t lsm303agr_from_fs_8g_nm_to_mg(int16_t lsb); 883 float_t lsm303agr_from_fs_16g_nm_to_mg(int16_t lsb); 884 float_t lsm303agr_from_lsb_nm_to_celsius(int16_t lsb); [all …]
|
/hal_st-3.4.0/sensor/stmemsc/lis3dsh_STdC/driver/ |
D | lis3dsh_reg.c | 112 float_t lis3dsh_from_fs2_to_mg(int16_t lsb) in lis3dsh_from_fs2_to_mg() argument 114 return ((float_t)lsb) * 0.06f; in lis3dsh_from_fs2_to_mg() 117 float_t lis3dsh_from_fs4_to_mg(int16_t lsb) in lis3dsh_from_fs4_to_mg() argument 119 return ((float_t)lsb) * 0.12f; in lis3dsh_from_fs4_to_mg() 122 float_t lis3dsh_from_fs6_to_mg(int16_t lsb) in lis3dsh_from_fs6_to_mg() argument 124 return ((float_t)lsb) * 0.18f; in lis3dsh_from_fs6_to_mg() 127 float_t lis3dsh_from_fs8_to_mg(int16_t lsb) in lis3dsh_from_fs8_to_mg() argument 129 return ((float_t)lsb) * 0.24f; in lis3dsh_from_fs8_to_mg() 132 float_t lis3dsh_from_fs16_to_mg(int16_t lsb) in lis3dsh_from_fs16_to_mg() argument 134 return ((float_t)lsb) * 0.73f; in lis3dsh_from_fs16_to_mg() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/ilps28qsw_STdC/driver/ |
D | ilps28qsw_reg.c | 108 float_t ilps28qsw_from_fs1260_to_hPa(int32_t lsb) in ilps28qsw_from_fs1260_to_hPa() argument 110 return ((float_t)lsb / 1048576.0f); /* 4096.0f * 256 */ in ilps28qsw_from_fs1260_to_hPa() 113 float_t ilps28qsw_from_fs4000_to_hPa(int32_t lsb) in ilps28qsw_from_fs4000_to_hPa() argument 115 return ((float_t)lsb / 524288.0f); /* 2048.0f * 256 */ in ilps28qsw_from_fs4000_to_hPa() 118 float_t ilps28qsw_from_lsb_to_celsius(int16_t lsb) in ilps28qsw_from_lsb_to_celsius() argument 120 return ((float_t)lsb / 100.0f); in ilps28qsw_from_lsb_to_celsius() 701 data->ah_qvar.lsb = 0; in ilps28qsw_data_get() 706 data->ah_qvar.lsb = (data->pressure.raw / 256); /* shift 8bit left */ in ilps28qsw_data_get() 724 data->ah_qvar.lsb = 0; in ilps28qsw_data_get() 757 data->lsb = (data->raw / 256); /* shift 8bit left */ in ilps28qsw_ah_qvar_data_get() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/ilps22qs_STdC/driver/ |
D | ilps22qs_reg.c | 107 float_t ilps22qs_from_fs1260_to_hPa(int32_t lsb) in ilps22qs_from_fs1260_to_hPa() argument 109 return ((float_t)lsb / 1048576.0f); /* 4096.0f * 256 */ in ilps22qs_from_fs1260_to_hPa() 112 float_t ilps22qs_from_fs4000_to_hPa(int32_t lsb) in ilps22qs_from_fs4000_to_hPa() argument 114 return ((float_t)lsb / 524288.0f); /* 2048.0f * 256 */ in ilps22qs_from_fs4000_to_hPa() 117 float_t ilps22qs_from_lsb_to_celsius(int16_t lsb) in ilps22qs_from_lsb_to_celsius() argument 119 return ((float_t)lsb / 100.0f); in ilps22qs_from_lsb_to_celsius() 732 data->ah_qvar.lsb = 0; in ilps22qs_data_get() 735 data->ah_qvar.lsb = (data->pressure.raw / 256); /* shift 8bit left */ in ilps22qs_data_get() 751 data->ah_qvar.lsb = 0; in ilps22qs_data_get() 784 data->lsb = (data->raw / 256); /* shift 8bit left */ in ilps22qs_ah_qvar_data_get() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/lis2dtw12_STdC/driver/ |
D | lis2dtw12_reg.c | 93 float_t lis2dtw12_from_fs2_to_mg(int16_t lsb) in lis2dtw12_from_fs2_to_mg() argument 95 return ((float_t)lsb) * 0.061f; in lis2dtw12_from_fs2_to_mg() 98 float_t lis2dtw12_from_fs4_to_mg(int16_t lsb) in lis2dtw12_from_fs4_to_mg() argument 100 return ((float_t)lsb) * 0.122f; in lis2dtw12_from_fs4_to_mg() 103 float_t lis2dtw12_from_fs8_to_mg(int16_t lsb) in lis2dtw12_from_fs8_to_mg() argument 105 return ((float_t)lsb) * 0.244f; in lis2dtw12_from_fs8_to_mg() 108 float_t lis2dtw12_from_fs16_to_mg(int16_t lsb) in lis2dtw12_from_fs16_to_mg() argument 110 return ((float_t)lsb) * 0.488f; in lis2dtw12_from_fs16_to_mg() 113 float_t lis2dtw12_from_fs2_lp1_to_mg(int16_t lsb) in lis2dtw12_from_fs2_lp1_to_mg() argument 115 return ((float_t)lsb) * 0.061f; in lis2dtw12_from_fs2_lp1_to_mg() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/ais2ih_STdC/driver/ |
D | ais2ih_reg.c | 92 float_t ais2ih_from_fs2_to_mg(int16_t lsb) in ais2ih_from_fs2_to_mg() argument 94 return ((float_t)lsb) * 0.061f; in ais2ih_from_fs2_to_mg() 97 float_t ais2ih_from_fs4_to_mg(int16_t lsb) in ais2ih_from_fs4_to_mg() argument 99 return ((float_t)lsb) * 0.122f; in ais2ih_from_fs4_to_mg() 102 float_t ais2ih_from_fs8_to_mg(int16_t lsb) in ais2ih_from_fs8_to_mg() argument 104 return ((float_t)lsb) * 0.244f; in ais2ih_from_fs8_to_mg() 107 float_t ais2ih_from_fs16_to_mg(int16_t lsb) in ais2ih_from_fs16_to_mg() argument 109 return ((float_t)lsb) * 0.488f; in ais2ih_from_fs16_to_mg() 112 float_t ais2ih_from_fs2_lp1_to_mg(int16_t lsb) in ais2ih_from_fs2_lp1_to_mg() argument 114 return ((float_t)lsb) * 0.061f; in ais2ih_from_fs2_lp1_to_mg() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/lis2dw12_STdC/driver/ |
D | lis2dw12_reg.c | 93 float_t lis2dw12_from_fs2_to_mg(int16_t lsb) in lis2dw12_from_fs2_to_mg() argument 95 return ((float_t)lsb) * 0.061f; in lis2dw12_from_fs2_to_mg() 98 float_t lis2dw12_from_fs4_to_mg(int16_t lsb) in lis2dw12_from_fs4_to_mg() argument 100 return ((float_t)lsb) * 0.122f; in lis2dw12_from_fs4_to_mg() 103 float_t lis2dw12_from_fs8_to_mg(int16_t lsb) in lis2dw12_from_fs8_to_mg() argument 105 return ((float_t)lsb) * 0.244f; in lis2dw12_from_fs8_to_mg() 108 float_t lis2dw12_from_fs16_to_mg(int16_t lsb) in lis2dw12_from_fs16_to_mg() argument 110 return ((float_t)lsb) * 0.488f; in lis2dw12_from_fs16_to_mg() 113 float_t lis2dw12_from_fs2_lp1_to_mg(int16_t lsb) in lis2dw12_from_fs2_lp1_to_mg() argument 115 return ((float_t)lsb) * 0.061f; in lis2dw12_from_fs2_lp1_to_mg() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/iis2dlpc_STdC/driver/ |
D | iis2dlpc_reg.c | 93 float_t iis2dlpc_from_fs2_to_mg(int16_t lsb) in iis2dlpc_from_fs2_to_mg() argument 95 return ((float_t)lsb) * 0.061f; in iis2dlpc_from_fs2_to_mg() 98 float_t iis2dlpc_from_fs4_to_mg(int16_t lsb) in iis2dlpc_from_fs4_to_mg() argument 100 return ((float_t)lsb) * 0.122f; in iis2dlpc_from_fs4_to_mg() 103 float_t iis2dlpc_from_fs8_to_mg(int16_t lsb) in iis2dlpc_from_fs8_to_mg() argument 105 return ((float_t)lsb) * 0.244f; in iis2dlpc_from_fs8_to_mg() 108 float_t iis2dlpc_from_fs16_to_mg(int16_t lsb) in iis2dlpc_from_fs16_to_mg() argument 110 return ((float_t)lsb) * 0.488f; in iis2dlpc_from_fs16_to_mg() 113 float_t iis2dlpc_from_fs2_lp1_to_mg(int16_t lsb) in iis2dlpc_from_fs2_lp1_to_mg() argument 115 return ((float_t)lsb) * 0.061f; in iis2dlpc_from_fs2_lp1_to_mg() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/asm330lhh_STdC/driver/ |
D | asm330lhh_reg.c | 93 float_t asm330lhh_from_fs2g_to_mg(int16_t lsb) in asm330lhh_from_fs2g_to_mg() argument 95 return ((float_t)lsb * 0.061f); in asm330lhh_from_fs2g_to_mg() 98 float_t asm330lhh_from_fs4g_to_mg(int16_t lsb) in asm330lhh_from_fs4g_to_mg() argument 100 return ((float_t)lsb * 0.122f); in asm330lhh_from_fs4g_to_mg() 103 float_t asm330lhh_from_fs8g_to_mg(int16_t lsb) in asm330lhh_from_fs8g_to_mg() argument 105 return ((float_t)lsb * 0.244f); in asm330lhh_from_fs8g_to_mg() 108 float_t asm330lhh_from_fs16g_to_mg(int16_t lsb) in asm330lhh_from_fs16g_to_mg() argument 110 return ((float_t)lsb * 0.488f); in asm330lhh_from_fs16g_to_mg() 113 float_t asm330lhh_from_fs125dps_to_mdps(int16_t lsb) in asm330lhh_from_fs125dps_to_mdps() argument 115 return ((float_t)lsb * 4.375f); in asm330lhh_from_fs125dps_to_mdps() [all …]
|
D | asm330lhh_reg.h | 884 float_t asm330lhh_from_fs2g_to_mg(int16_t lsb); 885 float_t asm330lhh_from_fs4g_to_mg(int16_t lsb); 886 float_t asm330lhh_from_fs8g_to_mg(int16_t lsb); 887 float_t asm330lhh_from_fs16g_to_mg(int16_t lsb); 889 float_t asm330lhh_from_fs125dps_to_mdps(int16_t lsb); 890 float_t asm330lhh_from_fs250dps_to_mdps(int16_t lsb); 891 float_t asm330lhh_from_fs500dps_to_mdps(int16_t lsb); 892 float_t asm330lhh_from_fs1000dps_to_mdps(int16_t lsb); 893 float_t asm330lhh_from_fs2000dps_to_mdps(int16_t lsb); 894 float_t asm330lhh_from_fs4000dps_to_mdps(int16_t lsb); [all …]
|
/hal_st-3.4.0/sensor/stmemsc/ais328dq_STdC/driver/ |
D | ais328dq_reg.h | 198 #define AIS328DQ_FROM_FS_2g_TO_mg(lsb) (float_t)( (lsb >> 4 ) * 0.98f ) argument 199 #define AIS328DQ_FROM_FS_4g_TO_mg(lsb) (float_t)( (lsb >> 4 ) * 1.95f ) argument 200 #define AIS328DQ_FROM_FS_8g_TO_mg(lsb) (float_t)( (lsb >> 4 ) * 3.91f ) argument 527 float_t ais328dq_from_fs2_to_mg(int16_t lsb); 528 float_t ais328dq_from_fs4_to_mg(int16_t lsb); 529 float_t ais328dq_from_fs8_to_mg(int16_t lsb);
|
/hal_st-3.4.0/sensor/stmemsc/lis3mdl_STdC/driver/ |
D | lis3mdl_reg.c | 93 float_t lis3mdl_from_fs4_to_gauss(int16_t lsb) in lis3mdl_from_fs4_to_gauss() argument 95 return ((float_t)lsb / 6842.0f); in lis3mdl_from_fs4_to_gauss() 98 float_t lis3mdl_from_fs8_to_gauss(int16_t lsb) in lis3mdl_from_fs8_to_gauss() argument 100 return ((float_t)lsb / 3421.0f); in lis3mdl_from_fs8_to_gauss() 103 float_t lis3mdl_from_fs12_to_gauss(int16_t lsb) in lis3mdl_from_fs12_to_gauss() argument 105 return ((float_t)lsb / 2281.0f); in lis3mdl_from_fs12_to_gauss() 108 float_t lis3mdl_from_fs16_to_gauss(int16_t lsb) in lis3mdl_from_fs16_to_gauss() argument 110 return ((float_t)lsb / 1711.0f); in lis3mdl_from_fs16_to_gauss() 113 float_t lis3mdl_from_lsb_to_celsius(int16_t lsb) in lis3mdl_from_lsb_to_celsius() argument 115 return ((float_t)lsb / 8.0f) + (25.0f); in lis3mdl_from_lsb_to_celsius()
|
/hal_st-3.4.0/sensor/stmemsc/lsm9ds1_STdC/driver/ |
D | lsm9ds1_reg.c | 93 float_t lsm9ds1_from_fs2g_to_mg(int16_t lsb) in lsm9ds1_from_fs2g_to_mg() argument 95 return ((float_t)lsb * 0.061f); in lsm9ds1_from_fs2g_to_mg() 98 float_t lsm9ds1_from_fs4g_to_mg(int16_t lsb) in lsm9ds1_from_fs4g_to_mg() argument 100 return ((float_t)lsb * 0.122f); in lsm9ds1_from_fs4g_to_mg() 103 float_t lsm9ds1_from_fs8g_to_mg(int16_t lsb) in lsm9ds1_from_fs8g_to_mg() argument 105 return ((float_t)lsb * 0.244f); in lsm9ds1_from_fs8g_to_mg() 108 float_t lsm9ds1_from_fs16g_to_mg(int16_t lsb) in lsm9ds1_from_fs16g_to_mg() argument 110 return ((float_t)lsb * 0.732f); in lsm9ds1_from_fs16g_to_mg() 113 float_t lsm9ds1_from_fs245dps_to_mdps(int16_t lsb) in lsm9ds1_from_fs245dps_to_mdps() argument 115 return ((float_t)lsb * 8.75f); in lsm9ds1_from_fs245dps_to_mdps() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/lsm6dso16is_STdC/driver/ |
D | lsm6dso16is_reg.c | 93 float_t lsm6dso16is_from_fs2g_to_mg(int16_t lsb) in lsm6dso16is_from_fs2g_to_mg() argument 95 return ((float_t)lsb * 0.061f); in lsm6dso16is_from_fs2g_to_mg() 98 float_t lsm6dso16is_from_fs4g_to_mg(int16_t lsb) in lsm6dso16is_from_fs4g_to_mg() argument 100 return ((float_t)lsb * 0.122f); in lsm6dso16is_from_fs4g_to_mg() 103 float_t lsm6dso16is_from_fs8g_to_mg(int16_t lsb) in lsm6dso16is_from_fs8g_to_mg() argument 105 return ((float_t)lsb * 0.244f); in lsm6dso16is_from_fs8g_to_mg() 108 float_t lsm6dso16is_from_fs16g_to_mg(int16_t lsb) in lsm6dso16is_from_fs16g_to_mg() argument 110 return ((float_t)lsb * 0.488f); in lsm6dso16is_from_fs16g_to_mg() 113 float_t lsm6dso16is_from_fs125dps_to_mdps(int16_t lsb) in lsm6dso16is_from_fs125dps_to_mdps() argument 115 return ((float_t)lsb * 4.375f); in lsm6dso16is_from_fs125dps_to_mdps() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/ism330is_STdC/driver/ |
D | ism330is_reg.c | 93 float_t ism330is_from_fs2g_to_mg(int16_t lsb) in ism330is_from_fs2g_to_mg() argument 95 return ((float_t)lsb * 0.061f); in ism330is_from_fs2g_to_mg() 98 float_t ism330is_from_fs4g_to_mg(int16_t lsb) in ism330is_from_fs4g_to_mg() argument 100 return ((float_t)lsb * 0.122f); in ism330is_from_fs4g_to_mg() 103 float_t ism330is_from_fs8g_to_mg(int16_t lsb) in ism330is_from_fs8g_to_mg() argument 105 return ((float_t)lsb * 0.244f); in ism330is_from_fs8g_to_mg() 108 float_t ism330is_from_fs16g_to_mg(int16_t lsb) in ism330is_from_fs16g_to_mg() argument 110 return ((float_t)lsb * 0.488f); in ism330is_from_fs16g_to_mg() 113 float_t ism330is_from_fs125dps_to_mdps(int16_t lsb) in ism330is_from_fs125dps_to_mdps() argument 115 return ((float_t)lsb * 4.375f); in ism330is_from_fs125dps_to_mdps() [all …]
|
/hal_st-3.4.0/sensor/stmemsc/asm330lhb_STdC/driver/ |
D | asm330lhb_reg.c | 87 float_t asm330lhb_from_fs2g_to_mg(int16_t lsb) in asm330lhb_from_fs2g_to_mg() argument 89 return ((float_t)lsb * 0.061f); in asm330lhb_from_fs2g_to_mg() 92 float_t asm330lhb_from_fs4g_to_mg(int16_t lsb) in asm330lhb_from_fs4g_to_mg() argument 94 return ((float_t)lsb * 0.122f); in asm330lhb_from_fs4g_to_mg() 97 float_t asm330lhb_from_fs8g_to_mg(int16_t lsb) in asm330lhb_from_fs8g_to_mg() argument 99 return ((float_t)lsb * 0.244f); in asm330lhb_from_fs8g_to_mg() 102 float_t asm330lhb_from_fs16g_to_mg(int16_t lsb) in asm330lhb_from_fs16g_to_mg() argument 104 return ((float_t)lsb * 0.488f); in asm330lhb_from_fs16g_to_mg() 107 float_t asm330lhb_from_fs125dps_to_mdps(int16_t lsb) in asm330lhb_from_fs125dps_to_mdps() argument 109 return ((float_t)lsb * 4.375f); in asm330lhb_from_fs125dps_to_mdps() [all …]
|