Lines Matching refs:iis2dh
56 struct iis2dh_data *iis2dh = dev->data; in iis2dh_set_fs_raw() local
59 err = iis2dh_full_scale_set(iis2dh->ctx, fs); in iis2dh_set_fs_raw()
63 iis2dh->gain = iis2dh_gain[IIS2DH_HR_12bit][fs]; in iis2dh_set_fs_raw()
94 struct iis2dh_data *iis2dh = dev->data; in iis2dh_set_odr() local
100 return iis2dh_data_rate_set(iis2dh->ctx, val); in iis2dh_set_odr()
122 struct iis2dh_data *iis2dh = dev->data; in iis2dh_channel_get_acc() local
141 iis2dh_convert(pval++, iis2dh->acc[i], iis2dh->gain); in iis2dh_channel_get_acc()
206 struct iis2dh_data *iis2dh = dev->data; in iis2dh_sample_fetch() local
210 if (iis2dh_acceleration_raw_get(iis2dh->ctx, buf) < 0) { in iis2dh_sample_fetch()
215 iis2dh->acc[0] = buf[0]; in iis2dh_sample_fetch()
216 iis2dh->acc[1] = buf[1]; in iis2dh_sample_fetch()
217 iis2dh->acc[2] = buf[2]; in iis2dh_sample_fetch()
254 struct iis2dh_data *iis2dh = dev->data; in iis2dh_init() local
263 if (iis2dh_device_id_get(iis2dh->ctx, &wai) < 0) { in iis2dh_init()
272 if (iis2dh_block_data_update_set(iis2dh->ctx, PROPERTY_ENABLE) < 0) { in iis2dh_init()
276 if (iis2dh_operating_mode_set(iis2dh->ctx, cfg->pm)) { in iis2dh_init()
282 if (iis2dh_data_rate_set(iis2dh->ctx, CONFIG_IIS2DH_ODR) < 0) { in iis2dh_init()