Home
last modified time | relevance | path

Searched refs:rate_val (Results 1 – 1 of 1) sorted by relevance

/hardware/akm/AK8975_FS/libsensors/
DAdxlSensor.cpp130 int rate_val; in setDelay() local
148 for (rate_val = 0; rate_val < 16; rate_val++) in setDelay()
149 if (us >= ((10000000) >> rate_val)) in setDelay()
152 if (rate_val > ADXL_MAX_SAMPLE_RATE_VAL) { in setDelay()
153 rate_val = ADXL_MAX_SAMPLE_RATE_VAL; in setDelay()
157 bytes = sprintf(buffer, "%d", rate_val); in setDelay()
162 delay_ns/1000000.0f, 1e6 / (3200000 >> (15 - rate_val))); in setDelay()