/device/google/contexthub/firmware/os/core/ |
D | hostIntf.c | 539 memset(&sensor->buffer.firstSample, 0x00, sizeof(struct SensorFirstSample)); in resetBuffer() 570 …if (sensor->sensorHandle == 0 && !buffer->firstSample.biasPresent && !buffer->firstSample.numFlush… in hostIntfPacketDequeue() 575 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue() 590 if (sensor->curSamples != sensor->buffer.firstSample.numSamples) { in hostIntfPacketDequeue() 591 …Samples=%d\n", sensor->buffer.sensType, sensor->curSamples, sensor->buffer.firstSample.numSamples); in hostIntfPacketDequeue() 592 sensor->curSamples = sensor->buffer.firstSample.numSamples; in hostIntfPacketDequeue() 612 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue() 639 if (sensor->curSamples - buffer->firstSample.numSamples >= sensor->minSamples || onDelete) { in queueDiscard() 644 sensor->curSamples -= buffer->firstSample.numSamples; in queueDiscard() 849 sensor->curSamples -= sensor->buffer.firstSample.numSamples; in enqueueSensorBuffer() [all …]
|
D | nanohubCommand.c | 772 packet->firstSample.interrupt = NANOHUB_INT_WAKEUP; in fillBuffer() 779 … if (isSensorEvent(packet->evtType) && packet->firstSample.interrupt == NANOHUB_INT_WAKEUP) in fillBuffer() 780 firstPacket->firstSample.interrupt = NANOHUB_INT_WAKEUP; in fillBuffer()
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 213 num_samples = ev->samples[0].firstSample.numSamples; in fillSamples() 218 num_samples = ev->samples[0].firstSample.numSamples + 1; in fillSamples() 291 memset(&mSensor->ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in allocateDataEvt() 316 if (mSensor->ev->samples[0].firstSample.numSamples >= MAX_NUM_COMMS_EVENT_SAMPLES) { in addSample() 321 sample = &mSensor->ev->samples[mSensor->ev->samples[0].firstSample.numSamples++]; in addSample() 323 if (mSensor->ev->samples[0].firstSample.numSamples > 1) { in addSample() 332 if (mSensor->ev->samples[0].firstSample.numSamples == MAX_NUM_COMMS_EVENT_SAMPLES) { in addSample() 812 if (ev->samples[0].firstSample.biasPresent && mTask.flags & FUSION_FLAG_ENABLED) { in fusionHandleEvent()
|
/device/google/contexthub/firmware/app/chre/common/ |
D | chre10_app.c | 62 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processTripleAxisData() 85 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData() 100 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData() 115 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData()
|
D | chre_app.c | 62 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processTripleAxisData() 85 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData() 100 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData() 115 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData()
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 1198 memset(&mSensor->data_evt->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); 2135 if (mSensor->data_evt->samples[0].firstSample.numSamples >= MAX_NUM_COMMS_EVENT_SAMPLES) { 2150 if (mSensor->data_evt->samples[0].firstSample.numSamples > 0) { 2161 mSensor->data_evt->samples[0].firstSample.biasCurrent = true; 2162 mSensor->data_evt->samples[0].firstSample.biasPresent = 1; 2163 mSensor->data_evt->samples[0].firstSample.biasSample = 2164 mSensor->data_evt->samples[0].firstSample.numSamples; 2166 samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; 2183 if (mSensor->data_evt->samples[0].firstSample.numSamples > 0) { 2195 mSensor->data_evt->samples[0].firstSample.biasCurrent = mTask.magBiasCurrent; [all …]
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 2385 memset(&mSensor->data_evt->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); 2517 if (mSensor->data_evt->samples[0].firstSample.numSamples >= MAX_NUM_COMMS_EVENT_SAMPLES) { 2524 if (mSensor->data_evt->samples[0].firstSample.numSamples > 0) { 2531 mSensor->data_evt->samples[0].firstSample.biasCurrent = true; 2532 mSensor->data_evt->samples[0].firstSample.biasPresent = 1; 2533 …mSensor->data_evt->samples[0].firstSample.biasSample = mSensor->data_evt->samples[0].firstSample.n… 2534 … sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; 2546 sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; 2549 if (mSensor->data_evt->samples[0].firstSample.numSamples > 1) { 2560 if (mSensor->data_evt->samples[0].firstSample.numSamples == MAX_NUM_COMMS_EVENT_SAMPLES) { [all …]
|
/device/google/contexthub/firmware/os/inc/ |
D | sensors.h | 67 struct SensorFirstSample firstSample; member 86 struct SensorFirstSample firstSample; member 112 struct SensorFirstSample firstSample; member
|
D | hostIntf.h | 61 struct SensorFirstSample firstSample; member
|
/device/google/contexthub/firmware/os/drivers/st_mag40/ |
D | st_mag40.c | 295 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in magAllocateEvt() 755 magSample->samples[0].firstSample.numSamples = 1; in parseRawData() 769 magSample->samples[0].firstSample.numSamples = 2; in parseRawData() 770 magSample->samples[0].firstSample.biasCurrent = true; in parseRawData() 771 magSample->samples[0].firstSample.biasPresent = 1; in parseRawData() 772 magSample->samples[0].firstSample.biasSample = 1; in parseRawData()
|
/device/google/contexthub/util/nanotool/ |
D | sensorevent.h | 39 struct SensorFirstSample firstSample; member 57 struct SensorFirstSample firstSample; member
|
/device/google/contexthub/firmware/os/drivers/vsync/ |
D | vsync.c | 95 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in vsyncAllocateEvt() 97 ev->samples[0].firstSample.numSamples = 1; in vsyncAllocateEvt()
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 1285 if (len >= sizeof(data->evtType) + sizeof(data->referenceTime) + sizeof(data->firstSample)) { in processBuf() 1288 numSamples = data->firstSample.numSamples; in processBuf() 1290 if (data->firstSample.biasPresent && data->firstSample.biasSample == i) in processBuf() 1302 … processSample(timestamp, type, currSensor, &data->oneSamples[i], data->firstSample.highAccuracy); in processBuf() 1311 …cessSample(timestamp, type, currSensor, &data->rawThreeSamples[i], data->firstSample.highAccuracy); in processBuf() 1320 …processSample(timestamp, type, currSensor, &data->threeSamples[i], data->firstSample.highAccuracy); in processBuf() 1329 ret += sizeof(data->firstSample); in processBuf() 1336 for (i=0; i<data->firstSample.numFlushes; i++) { in processBuf()
|
D | hubconnection.h | 221 struct FirstSample firstSample; member
|
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
D | st_lsm6dsm.c | 4135 memset(&mSensor->tADataEvt->samples[0].firstSample, 0, sizeof(struct SensorFirstSample)); in lsm6dsm_allocateThreeAxisDataEvt() 4169 memset(&mSensor->sADataEvt->samples[0].firstSample, 0, sizeof(struct SensorFirstSample)); in lsm6dsm_allocateOneAxisDataEvt() 4226 if (!samples->firstSample.biasCurrent) { in lsm6dsm_processSensorThreeAxisData() 4227 samples->firstSample.biasCurrent = true; in lsm6dsm_processSensorThreeAxisData() 4228 samples->firstSample.biasPresent = 1; in lsm6dsm_processSensorThreeAxisData() 4229 samples->firstSample.biasSample = *sampleNum; in lsm6dsm_processSensorThreeAxisData() 4270 if (!samples->firstSample.biasCurrent) { in lsm6dsm_processSensorThreeAxisData() 4271 samples->firstSample.biasCurrent = true; in lsm6dsm_processSensorThreeAxisData() 4272 samples->firstSample.biasPresent = 1; in lsm6dsm_processSensorThreeAxisData() 4273 samples->firstSample.biasSample = *sampleNum; in lsm6dsm_processSensorThreeAxisData() [all …]
|
/device/google/contexthub/firmware/os/drivers/st_acc44/ |
D | st_acc44.c | 544 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in accAllocateEvt() 659 accSample->samples[0].firstSample.numSamples = num_of_smpl; in parseRawData()
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 199 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in baroAllocateEvt() 201 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt()
|
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 238 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in baroAllocateEvt() 240 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt()
|
/device/google/contexthub/firmware/os/drivers/tilt_detection/ |
D | tilt_detection.c | 84 uint32_t numSamples = ev->samples[0].firstSample.numSamples; in algoUpdate()
|
/device/google/contexthub/firmware/os/drivers/window_orientation/ |
D | window_orientation.c | 396 size_t sampleCnt = ev->samples[0].firstSample.numSamples; in add_samples()
|