Searched refs:firstSample (Results 1 – 11 of 11) sorted by relevance
/device/google/contexthub/firmware/src/ |
D | hostIntf.c | 499 memset(&sensor->buffer.firstSample, 0x00, sizeof(struct SensorFirstSample)); in resetBuffer() 518 …if (sensor->sensorHandle == 0 && !buffer->firstSample.biasPresent && !buffer->firstSample.numFlush… in hostIntfPacketDequeue() 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() 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 …]
|
D | nanohubCommand.c | 723 packet->firstSample.interrupt = NANOHUB_INT_WAKEUP; in fillBuffer() 729 … if (isSensorEvent(packet->evtType) && packet->firstSample.interrupt == NANOHUB_INT_WAKEUP) in fillBuffer() 730 firstPacket->firstSample.interrupt = NANOHUB_INT_WAKEUP; in fillBuffer()
|
/device/google/contexthub/firmware/inc/ |
D | sensors.h | 61 struct SensorFirstSample firstSample; member 80 struct SensorFirstSample firstSample; member 106 struct SensorFirstSample firstSample; member
|
D | hostIntf.h | 60 struct SensorFirstSample firstSample; member
|
/device/google/contexthub/util/nanotool/ |
D | sensorevent.h | 39 struct SensorFirstSample firstSample; member 57 struct SensorFirstSample firstSample; member
|
/device/google/contexthub/firmware/src/drivers/orientation/ |
D | orientation.c | 198 num_samples = ev->samples[0].firstSample.numSamples; in fillSamples() 203 num_samples = ev->samples[0].firstSample.numSamples + 1; in fillSamples() 276 memset(&mSensor->ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in allocateDataEvt() 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/sensorhal/ |
D | hubconnection.cpp | 795 numSamples = data->firstSample.numSamples; in processBuf() 797 if (data->firstSample.biasPresent && data->firstSample.biasSample == i) in processBuf() 805 … processSample(timestamp, type, currSensor, &data->oneSamples[i], data->firstSample.highAccuracy); in processBuf() 810 …cessSample(timestamp, type, currSensor, &data->rawThreeSamples[i], data->firstSample.highAccuracy); in processBuf() 815 …processSample(timestamp, type, currSensor, &data->threeSamples[i], data->firstSample.highAccuracy); in processBuf() 821 ret += sizeof(data->firstSample); in processBuf() 823 for (i=0; i<data->firstSample.numFlushes; i++) { in processBuf()
|
D | hubconnection.h | 170 struct FirstSample firstSample; member
|
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 1734 memset(&mSensor->data_evt->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in allocateDataEvt() 1798 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() 1813 mSensor->data_evt->samples[0].firstSample.biasCurrent = mTask.magBiasCurrent; in parseRawData() 1814 mSensor->data_evt->samples[0].firstSample.biasPresent = 1; in parseRawData() 1815 mSensor->data_evt->samples[0].firstSample.biasSample = 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() [all …]
|
/device/google/contexthub/firmware/src/drivers/tilt_detection/ |
D | tilt_detection.c | 82 uint32_t numSamples = ev->samples[0].firstSample.numSamples; in algoUpdate()
|
/device/google/contexthub/firmware/src/drivers/window_orientation/ |
D | window_orientation.c | 337 size_t sampleCnt = ev->samples[0].firstSample.numSamples; in add_samples()
|