Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/core/
DhostIntf.c539 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 …]
DnanohubCommand.c772 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/
Dorientation.c213 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/
Dchre10_app.c62 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()
Dchre_app.c62 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/
Dbosch_bmi160.c1198 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/
Dinvensense_icm40600.c2385 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/
Dsensors.h67 struct SensorFirstSample firstSample; member
86 struct SensorFirstSample firstSample; member
112 struct SensorFirstSample firstSample; member
DhostIntf.h61 struct SensorFirstSample firstSample; member
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c295 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/
Dsensorevent.h39 struct SensorFirstSample firstSample; member
57 struct SensorFirstSample firstSample; member
/device/google/contexthub/firmware/os/drivers/vsync/
Dvsync.c95 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in vsyncAllocateEvt()
97 ev->samples[0].firstSample.numSamples = 1; in vsyncAllocateEvt()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp1285 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()
Dhubconnection.h221 struct FirstSample firstSample; member
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c4135 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/
Dst_acc44.c544 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/
Dlps22hb.c199 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/
Dbosch_bmp280.c238 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/
Dtilt_detection.c84 uint32_t numSamples = ev->samples[0].firstSample.numSamples; in algoUpdate()
/device/google/contexthub/firmware/os/drivers/window_orientation/
Dwindow_orientation.c396 size_t sampleCnt = ev->samples[0].firstSample.numSamples; in add_samples()