Searched refs:raw_mag (Results 1 – 2 of 2) sorted by relevance
189 int16_t *raw_mag) in get_single_mode_raw_data() argument209 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() local226 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()[all …]
179 int16_t raw_mag[3]; in iis2mdc_sample_fetch_mag() local182 if (iis2mdc_magnetic_raw_get(iis2mdc->ctx, raw_mag) < 0) { in iis2mdc_sample_fetch_mag()187 iis2mdc->mag[0] = raw_mag[0]; in iis2mdc_sample_fetch_mag()188 iis2mdc->mag[1] = raw_mag[1]; in iis2mdc_sample_fetch_mag()189 iis2mdc->mag[2] = raw_mag[2]; in iis2mdc_sample_fetch_mag()