Lines Matching refs:raw_mag
189 int16_t *raw_mag) in get_single_mode_raw_data() argument
209 rc = lis2mdl_magnetic_raw_get(ctx, raw_mag); in get_single_mode_raw_data()
222 int16_t raw_mag[3]; in lis2mdl_sample_fetch_mag() local
226 rc = get_single_mode_raw_data(dev, raw_mag); in lis2mdl_sample_fetch_mag()
231 lis2mdl->mag[0] = raw_mag[0]; in lis2mdl_sample_fetch_mag()
232 lis2mdl->mag[1] = raw_mag[1]; in lis2mdl_sample_fetch_mag()
233 lis2mdl->mag[2] = raw_mag[2]; in lis2mdl_sample_fetch_mag()
244 rc = get_single_mode_raw_data(dev, raw_mag); in lis2mdl_sample_fetch_mag()
249 lis2mdl->mag[0] += raw_mag[0]; in lis2mdl_sample_fetch_mag()
250 lis2mdl->mag[1] += raw_mag[1]; in lis2mdl_sample_fetch_mag()
251 lis2mdl->mag[2] += raw_mag[2]; in lis2mdl_sample_fetch_mag()
259 rc = lis2mdl_magnetic_raw_get(ctx, raw_mag); in lis2mdl_sample_fetch_mag()
264 lis2mdl->mag[0] = raw_mag[0]; in lis2mdl_sample_fetch_mag()
265 lis2mdl->mag[1] = raw_mag[1]; in lis2mdl_sample_fetch_mag()
266 lis2mdl->mag[2] = raw_mag[2]; in lis2mdl_sample_fetch_mag()