Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/drivers/orientation/
Dorientation.c51 #define MAX_NUM_SAMPLES (FIFO_MARGIN + FIFO_DEPTH) // actual input sample fifo depth macro
117 struct FusionSensorSample samples[NUM_OF_RAW_SENSOR][MAX_NUM_SAMPLES];
207 w = (mTask.sample_indices[index] + n) % MAX_NUM_SAMPLES; in fillSamples()
256 if (++n > MAX_NUM_SAMPLES) { in fillSamples()
257 n = MAX_NUM_SAMPLES; in fillSamples()
259 if (++i == MAX_NUM_SAMPLES) { in fillSamples()
265 if (++w == MAX_NUM_SAMPLES) { in fillSamples()
506 if (++i == MAX_NUM_SAMPLES) { in drainSamples()
521 if (++j == MAX_NUM_SAMPLES) in drainSamples()
530 if (++k == MAX_NUM_SAMPLES) in drainSamples()