Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/
DhostIntf.c760 …ic void copyTripleSamplesRaw(struct ActiveSensor *sensor, const struct TripleAxisDataEvent *triple) in copyTripleSamplesRaw() argument
766 for (i = 0; i < triple->samples[0].firstSample.numSamples; i++) { in copyTripleSamplesRaw()
774 sensor->lastTime = sensor->buffer.referenceTime = triple->referenceTime; in copyTripleSamplesRaw()
776 sensor->lastTime += triple->samples[i].deltaTime; in copyTripleSamplesRaw()
780 sensor->buffer.rawTriple[0].ix = floatToInt16(triple->samples[i].x * sensor->rawScale); in copyTripleSamplesRaw()
781 sensor->buffer.rawTriple[0].iy = floatToInt16(triple->samples[i].y * sensor->rawScale); in copyTripleSamplesRaw()
782 sensor->buffer.rawTriple[0].iz = floatToInt16(triple->samples[i].z * sensor->rawScale); in copyTripleSamplesRaw()
793 if (sensor->lastTime > triple->referenceTime) { in copyTripleSamplesRaw()
798 } else if (triple->referenceTime - sensor->lastTime >= delta_time_max) { in copyTripleSamplesRaw()
803 deltaTime = encodeDeltaTime(triple->referenceTime - sensor->lastTime); in copyTripleSamplesRaw()
[all …]
/device/google/contexthub/firmware/inc/
DhostIntf.h62 … struct TripleAxisDataPoint triple[HOSTINTF_SENSOR_DATA_MAX / sizeof(struct TripleAxisDataPoint)]; member