Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/
DhostIntf.c91 uint8_t numSamples; member
523 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue()
554 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue()
583 if (sensor->curSamples - buffer->firstSample.numSamples >= sensor->minSamples || onDelete) { in queueDiscard()
588 sensor->curSamples -= buffer->firstSample.numSamples; in queueDiscard()
764 uint8_t numSamples; in copyTripleSamplesRaw() local
766 for (i = 0; i < triple->samples[0].firstSample.numSamples; i++) { in copyTripleSamplesRaw()
767 if (sensor->buffer.firstSample.numSamples == sensor->packetSamples) { in copyTripleSamplesRaw()
772 if (sensor->buffer.firstSample.numSamples == 0) { in copyTripleSamplesRaw()
787 sensor->buffer.firstSample.numSamples = 1; in copyTripleSamplesRaw()
[all …]
/device/google/contexthub/firmware/src/drivers/tilt_detection/
Dtilt_detection.c82 uint32_t numSamples = ev->samples[0].firstSample.numSamples; in algoUpdate() local
87 for (i = 0; i < numSamples; i++) { in algoUpdate()
/device/google/contexthub/firmware/src/drivers/orientation/
Dorientation.c198 num_samples = ev->samples[0].firstSample.numSamples; in fillSamples()
203 num_samples = ev->samples[0].firstSample.numSamples + 1; in fillSamples()
292 if (mSensor->ev->samples[0].firstSample.numSamples >= MAX_NUM_COMMS_EVENT_SAMPLES) { in addSample()
297 sample = &mSensor->ev->samples[mSensor->ev->samples[0].firstSample.numSamples++]; in addSample()
299 if (mSensor->ev->samples[0].firstSample.numSamples > 1) { in addSample()
308 if (mSensor->ev->samples[0].firstSample.numSamples == MAX_NUM_COMMS_EVENT_SAMPLES) { in addSample()
/device/google/contexthub/firmware/inc/platform/stm32f4xx/cmsis/
Darm_math.h4944 uint32_t numSamples);
4957 uint32_t numSamples);
4970 uint32_t numSamples);
4985 uint32_t numSamples);
4998 uint32_t numSamples);
5011 uint32_t numSamples);
6678 uint32_t numSamples);
6691 uint32_t numSamples);
6704 uint32_t numSamples);
6719 uint32_t numSamples,
[all …]
/device/google/contexthub/util/nanotool/
Dsensorevent.h28 uint8_t numSamples; member
Dsensorevent.cpp120 return first_sample_header->numSamples; in GetNumSamples()
/device/google/contexthub/firmware/inc/
Dsensors.h41 uint8_t numSamples; member
/device/google/contexthub/sensorhal/
Dhubconnection.h128 uint8_t numSamples; member
Dhubconnection.cpp640 int i, numSamples; in processBuf() local
795 numSamples = data->firstSample.numSamples; in processBuf()
796 for (i=0; i<numSamples; i++) { in processBuf()
820 if (!numSamples) in processBuf()
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/
Dbosch_bmi160.c1798 if (mSensor->data_evt->samples[0].firstSample.numSamples >= MAX_NUM_COMMS_EVENT_SAMPLES) { in parseRawData()
1804 if (mSensor->data_evt->samples[0].firstSample.numSamples > 0) { in parseRawData()
1816 mSensor->data_evt->samples[0].firstSample.numSamples; in parseRawData()
1817 … sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; in parseRawData()
1829 sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; in parseRawData()
1832 if (mSensor->data_evt->samples[0].firstSample.numSamples > 1) { in parseRawData()
1847 if (mSensor->data_evt->samples[0].firstSample.numSamples == MAX_NUM_COMMS_EVENT_SAMPLES) { in parseRawData()
/device/google/contexthub/firmware/src/drivers/window_orientation/
Dwindow_orientation.c337 size_t sampleCnt = ev->samples[0].firstSample.numSamples; in add_samples()