Lines Matching refs:bmi08x
26 const struct bmi08x_gyro_config *bmi08x = dev->config; in bmi08x_gyro_transceive_i2c() local
29 return i2c_write_read_dt(&bmi08x->bus.i2c, ®, 1, data, length); in bmi08x_gyro_transceive_i2c()
38 return i2c_write_dt(&bmi08x->bus.i2c, buf, 1 + length); in bmi08x_gyro_transceive_i2c()
58 const struct bmi08x_gyro_config *bmi08x = dev->config; in bmi08x_gyro_transceive_spi() local
68 return spi_transceive_dt(&bmi08x->bus.spi, &tx, &rx); in bmi08x_gyro_transceive_spi()
71 return spi_write_dt(&bmi08x->bus.spi, &tx); in bmi08x_gyro_transceive_spi()
166 struct bmi08x_gyro_data *bmi08x = dev->data; in bmi08x_gyr_range_set() local
180 bmi08x->scale = BMI08X_GYR_SCALE(range); in bmi08x_gyr_range_set()
225 struct bmi08x_gyro_data *bmi08x = dev->data; in bmi08x_sample_fetch() local
234 ret = bmi08x_gyro_read(dev, BMI08X_REG_GYRO_X_LSB, (uint8_t *)bmi08x->gyr_sample, in bmi08x_sample_fetch()
235 sizeof(bmi08x->gyr_sample)); in bmi08x_sample_fetch()
241 for (i = 0; i < ARRAY_SIZE(bmi08x->gyr_sample); i++) { in bmi08x_sample_fetch()
242 bmi08x->gyr_sample[i] = sys_le16_to_cpu(bmi08x->gyr_sample[i]); in bmi08x_sample_fetch()
293 struct bmi08x_gyro_data *bmi08x = dev->data; in bmi08x_gyr_channel_get() local
295 bmi08x_channel_convert(chan, bmi08x->scale, bmi08x->gyr_sample, val); in bmi08x_gyr_channel_get()