Lines Matching refs:iis2mdc

28 	struct iis2mdc_data *iis2mdc = dev->data;  in iis2mdc_set_odr()  local
48 if (iis2mdc_data_rate_set(iis2mdc->ctx, odr)) { in iis2mdc_set_odr()
60 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_set_hard_iron() local
69 return iis2mdc_mag_user_offset_set(iis2mdc->ctx, offset); in iis2mdc_set_hard_iron()
79 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_channel_get_mag() local
98 cval = iis2mdc->mag[i] * 1500; in iis2mdc_channel_get_mag()
178 struct iis2mdc_data *iis2mdc = dev->data; 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()
196 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_sample_fetch_temp() local
201 if (iis2mdc_temperature_raw_get(iis2mdc->ctx, &raw_temp) < 0) { in iis2mdc_sample_fetch_temp()
208 iis2mdc->temp_sample = 2500 + (temp * 100) / 8; in iis2mdc_sample_fetch_temp()
249 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_init() local
252 iis2mdc->dev = dev; in iis2mdc_init()
259 if (iis2mdc_device_id_get(iis2mdc->ctx, &wai) < 0) { in iis2mdc_init()
269 if (iis2mdc_reset_set(iis2mdc->ctx, PROPERTY_ENABLE) < 0) { in iis2mdc_init()
277 if (iis2mdc_block_data_update_set(iis2mdc->ctx, PROPERTY_ENABLE) < 0) { in iis2mdc_init()
283 if (iis2mdc_data_rate_set(iis2mdc->ctx, IIS2MDC_ODR_10Hz)) { in iis2mdc_init()
289 if (iis2mdc_set_rst_mode_set(iis2mdc->ctx, in iis2mdc_init()
296 if (iis2mdc_offset_temp_comp_set(iis2mdc->ctx, PROPERTY_ENABLE)) { in iis2mdc_init()
302 if (iis2mdc_operating_mode_set(iis2mdc->ctx, IIS2MDC_CONTINUOUS_MODE)) { in iis2mdc_init()