Home
last modified time | relevance | path

Searched refs:raw_mag (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/sensor/st/lis2mdl/
Dlis2mdl.c189 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()
[all …]
/Zephyr-latest/drivers/sensor/st/iis2mdc/
Diis2mdc.c179 int16_t raw_mag[3]; in iis2mdc_sample_fetch_mag() local
182 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()