Lines Matching refs:databuf

20 	uint8_t databuf;  in icm42605_set_fs()  local
23 result = inv_spi_read(&cfg->spi, REG_ACCEL_CONFIG0, &databuf, 1); in icm42605_set_fs()
27 databuf &= ~BIT_ACCEL_FSR; in icm42605_set_fs()
29 databuf |= a_sf; in icm42605_set_fs()
31 result = inv_spi_single_write(&cfg->spi, REG_ACCEL_CONFIG0, &databuf); in icm42605_set_fs()
33 result = inv_spi_read(&cfg->spi, REG_GYRO_CONFIG0, &databuf, 1); in icm42605_set_fs()
39 databuf &= ~BIT_GYRO_FSR; in icm42605_set_fs()
40 databuf |= g_sf; in icm42605_set_fs()
42 result = inv_spi_single_write(&cfg->spi, REG_GYRO_CONFIG0, &databuf); in icm42605_set_fs()
54 uint8_t databuf; in icm42605_set_odr() local
63 result = inv_spi_read(&cfg->spi, REG_ACCEL_CONFIG0, &databuf, 1); in icm42605_set_odr()
69 databuf &= ~BIT_ACCEL_ODR; in icm42605_set_odr()
72 databuf |= BIT_ACCEL_ODR_8000; in icm42605_set_odr()
74 databuf |= BIT_ACCEL_ODR_4000; in icm42605_set_odr()
76 databuf |= BIT_ACCEL_ODR_2000; in icm42605_set_odr()
78 databuf |= BIT_ACCEL_ODR_1000; in icm42605_set_odr()
80 databuf |= BIT_ACCEL_ODR_500; in icm42605_set_odr()
82 databuf |= BIT_ACCEL_ODR_200; in icm42605_set_odr()
84 databuf |= BIT_ACCEL_ODR_100; in icm42605_set_odr()
86 databuf |= BIT_ACCEL_ODR_50; in icm42605_set_odr()
88 databuf |= BIT_ACCEL_ODR_25; in icm42605_set_odr()
90 databuf |= BIT_ACCEL_ODR_12; in icm42605_set_odr()
92 databuf |= BIT_ACCEL_ODR_6; in icm42605_set_odr()
94 databuf |= BIT_ACCEL_ODR_3; in icm42605_set_odr()
96 databuf |= BIT_ACCEL_ODR_1; in icm42605_set_odr()
99 result = inv_spi_single_write(&cfg->spi, REG_ACCEL_CONFIG0, &databuf); in icm42605_set_odr()
105 LOG_DBG("Write Accel ODR 0x%X", databuf); in icm42605_set_odr()
107 result = inv_spi_read(&cfg->spi, REG_GYRO_CONFIG0, &databuf, 1); in icm42605_set_odr()
113 databuf &= ~BIT_GYRO_ODR; in icm42605_set_odr()
116 databuf |= BIT_GYRO_ODR_8000; in icm42605_set_odr()
118 databuf |= BIT_GYRO_ODR_4000; in icm42605_set_odr()
120 databuf |= BIT_GYRO_ODR_2000; in icm42605_set_odr()
122 databuf |= BIT_GYRO_ODR_1000; in icm42605_set_odr()
124 databuf |= BIT_GYRO_ODR_500; in icm42605_set_odr()
126 databuf |= BIT_GYRO_ODR_200; in icm42605_set_odr()
128 databuf |= BIT_GYRO_ODR_100; in icm42605_set_odr()
130 databuf |= BIT_GYRO_ODR_50; in icm42605_set_odr()
132 databuf |= BIT_GYRO_ODR_25; in icm42605_set_odr()
134 databuf |= BIT_GYRO_ODR_12; in icm42605_set_odr()
137 LOG_DBG("Write GYRO ODR 0x%X", databuf); in icm42605_set_odr()
139 result = inv_spi_single_write(&cfg->spi, REG_GYRO_CONFIG0, &databuf); in icm42605_set_odr()