Lines Matching refs:lis2mdl
90 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_channel_get_mag() local
109 cval = lis2mdl->mag[i] * 1500; in lis2mdl_channel_get_mag()
191 struct lis2mdl_data *lis2mdl = dev->data; in get_single_mode_raw_data() local
202 if (k_sem_take(&lis2mdl->fetch_sem, K_MSEC(SAMPLE_FETCH_TIMEOUT_MS))) { in get_single_mode_raw_data()
219 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_sample_fetch_mag() local
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()
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()
252 lis2mdl->mag[0] /= 2; in lis2mdl_sample_fetch_mag()
253 lis2mdl->mag[1] /= 2; in lis2mdl_sample_fetch_mag()
254 lis2mdl->mag[2] /= 2; 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()
273 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_sample_fetch_temp() local
284 lis2mdl->temp_sample = raw_temp; in lis2mdl_sample_fetch_temp()
324 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_init() local
330 lis2mdl->dev = dev; in lis2mdl_init()
420 k_sem_init(&lis2mdl->fetch_sem, 0, 1); in lis2mdl_init()