Lines Matching full:raw
243 int16_t *raw; in fxls8974_sample_fetch() local
262 /* Parse the buf into raw channel data (16-bit integers). To save in fxls8974_sample_fetch()
263 * RAM, store the data in raw format and wait to convert to the in fxls8974_sample_fetch()
266 __ASSERT(FXLS8974_MAX_NUM_CHANNELS <= ARRAY_SIZE(data->raw), in fxls8974_sample_fetch()
269 raw = &data->raw[FXLS8974_CHANNEL_ACCEL_X]; in fxls8974_sample_fetch()
272 *raw++ = (buf[i+1] << 8) | (buf[i]); in fxls8974_sample_fetch()
275 *raw = *(buf+FXLS8974_MAX_ACCEL_BYTES); in fxls8974_sample_fetch()
283 static void fxls8974_accel_convert(struct sensor_value *val, int16_t raw, in fxls8974_accel_convert() argument
289 micro_ms2 = (raw * SENSOR_G) >> fsr; in fxls8974_accel_convert()
304 int16_t *raw; in fxls8974_get_accel_data() local
331 raw = &data->raw[FXLS8974_CHANNEL_ACCEL_X]; in fxls8974_get_accel_data()
333 fxls8974_accel_convert(val++, *raw++, fsr); in fxls8974_get_accel_data()
338 raw = &data->raw[FXLS8974_CHANNEL_ACCEL_X]; in fxls8974_get_accel_data()
341 raw = &data->raw[FXLS8974_CHANNEL_ACCEL_Y]; in fxls8974_get_accel_data()
344 raw = &data->raw[FXLS8974_CHANNEL_ACCEL_Z]; in fxls8974_get_accel_data()
349 fxls8974_accel_convert(val, *raw, fsr); in fxls8974_get_accel_data()
359 int16_t *raw; in fxls8974_get_temp_data() local
362 raw = &data->raw[FXLS8974_CHANNEL_TEMP]; in fxls8974_get_temp_data()
363 val->val1 = *raw+FXLS8974_ZERO_TEMP; in fxls8974_get_temp_data()