@@ -88,64 +88,64 @@ int32_t ism330dhcx_write_reg(stmdev_ctx_t *ctx, uint8_t reg,
88
88
*
89
89
*/
90
90
91
- float_t ism330dhcx_from_fs2g_to_mg (int16_t lsb )
91
+ float ism330dhcx_from_fs2g_to_mg (int16_t lsb )
92
92
{
93
- return ((float_t )lsb * 0.061f );
93
+ return ((float )lsb * 0.061f );
94
94
}
95
95
96
- float_t ism330dhcx_from_fs4g_to_mg (int16_t lsb )
96
+ float ism330dhcx_from_fs4g_to_mg (int16_t lsb )
97
97
{
98
- return ((float_t )lsb * 0.122f );
98
+ return ((float )lsb * 0.122f );
99
99
}
100
100
101
- float_t ism330dhcx_from_fs8g_to_mg (int16_t lsb )
101
+ float ism330dhcx_from_fs8g_to_mg (int16_t lsb )
102
102
{
103
- return ((float_t )lsb * 0.244f );
103
+ return ((float )lsb * 0.244f );
104
104
}
105
105
106
- float_t ism330dhcx_from_fs16g_to_mg (int16_t lsb )
106
+ float ism330dhcx_from_fs16g_to_mg (int16_t lsb )
107
107
{
108
- return ((float_t )lsb * 0.488f );
108
+ return ((float )lsb * 0.488f );
109
109
}
110
110
111
- float_t ism330dhcx_from_fs125dps_to_mdps (int16_t lsb )
111
+ float ism330dhcx_from_fs125dps_to_mdps (int16_t lsb )
112
112
{
113
- return ((float_t )lsb * 4.375f );
113
+ return ((float )lsb * 4.375f );
114
114
}
115
115
116
- float_t ism330dhcx_from_fs250dps_to_mdps (int16_t lsb )
116
+ float ism330dhcx_from_fs250dps_to_mdps (int16_t lsb )
117
117
{
118
- return ((float_t )lsb * 8.75f );
118
+ return ((float )lsb * 8.75f );
119
119
}
120
120
121
- float_t ism330dhcx_from_fs500dps_to_mdps (int16_t lsb )
121
+ float ism330dhcx_from_fs500dps_to_mdps (int16_t lsb )
122
122
{
123
- return ((float_t )lsb * 17.50f );
123
+ return ((float )lsb * 17.50f );
124
124
}
125
125
126
- float_t ism330dhcx_from_fs1000dps_to_mdps (int16_t lsb )
126
+ float ism330dhcx_from_fs1000dps_to_mdps (int16_t lsb )
127
127
{
128
- return ((float_t )lsb * 35.0f );
128
+ return ((float )lsb * 35.0f );
129
129
}
130
130
131
- float_t ism330dhcx_from_fs2000dps_to_mdps (int16_t lsb )
131
+ float ism330dhcx_from_fs2000dps_to_mdps (int16_t lsb )
132
132
{
133
- return ((float_t )lsb * 70.0f );
133
+ return ((float )lsb * 70.0f );
134
134
}
135
135
136
- float_t ism330dhcx_from_fs4000dps_to_mdps (int16_t lsb )
136
+ float ism330dhcx_from_fs4000dps_to_mdps (int16_t lsb )
137
137
{
138
- return ((float_t )lsb * 140.0f );
138
+ return ((float )lsb * 140.0f );
139
139
}
140
140
141
- float_t ism330dhcx_from_lsb_to_celsius (int16_t lsb )
141
+ float ism330dhcx_from_lsb_to_celsius (int16_t lsb )
142
142
{
143
- return (((float_t )lsb / 256.0f ) + 25.0f );
143
+ return (((float )lsb / 256.0f ) + 25.0f );
144
144
}
145
145
146
- float_t ism330dhcx_from_lsb_to_nsec (int32_t lsb )
146
+ float ism330dhcx_from_lsb_to_nsec (int32_t lsb )
147
147
{
148
- return ((float_t )lsb * 25000.0f );
148
+ return ((float )lsb * 25000.0f );
149
149
}
150
150
151
151
/**
0 commit comments