Lines Matching refs:triple

760 …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()
808 … sensor->buffer.rawTriple[numSamples].ix = floatToInt16(triple->samples[0].x * sensor->rawScale); in copyTripleSamplesRaw()
809 … sensor->buffer.rawTriple[numSamples].iy = floatToInt16(triple->samples[0].y * sensor->rawScale); in copyTripleSamplesRaw()
810 … sensor->buffer.rawTriple[numSamples].iz = floatToInt16(triple->samples[0].z * sensor->rawScale); in copyTripleSamplesRaw()
811 sensor->lastTime = triple->referenceTime; in copyTripleSamplesRaw()
816 deltaTime = triple->samples[i].deltaTime; in copyTripleSamplesRaw()
821 … sensor->buffer.rawTriple[numSamples].ix = floatToInt16(triple->samples[i].x * sensor->rawScale); in copyTripleSamplesRaw()
822 … sensor->buffer.rawTriple[numSamples].iy = floatToInt16(triple->samples[i].y * sensor->rawScale); in copyTripleSamplesRaw()
823 … sensor->buffer.rawTriple[numSamples].iz = floatToInt16(triple->samples[i].z * sensor->rawScale); in copyTripleSamplesRaw()
898 static void copyTripleSamples(struct ActiveSensor *sensor, const struct TripleAxisDataEvent *triple) in copyTripleSamples() argument
904 for (i = 0; i < triple->samples[0].firstSample.numSamples; i++) { in copyTripleSamples()
912 sensor->lastTime = sensor->buffer.referenceTime = triple->referenceTime; in copyTripleSamples()
914 sensor->lastTime += triple->samples[i].deltaTime; in copyTripleSamples()
918 sensor->buffer.triple[0].ix = triple->samples[i].ix; in copyTripleSamples()
919 sensor->buffer.triple[0].iy = triple->samples[i].iy; in copyTripleSamples()
920 sensor->buffer.triple[0].iz = triple->samples[i].iz; in copyTripleSamples()
921 …if (triple->samples[0].firstSample.biasPresent && triple->samples[0].firstSample.biasSample == i) { in copyTripleSamples()
922 sensor->buffer.firstSample.biasCurrent = triple->samples[0].firstSample.biasCurrent; in copyTripleSamples()
937 if (sensor->lastTime > triple->referenceTime) { in copyTripleSamples()
942 } else if (triple->referenceTime - sensor->lastTime >= delta_time_max) { in copyTripleSamples()
947 deltaTime = encodeDeltaTime(triple->referenceTime - sensor->lastTime); in copyTripleSamples()
951 sensor->buffer.triple[numSamples].deltaTime = deltaTime; in copyTripleSamples()
952 sensor->buffer.triple[numSamples].ix = triple->samples[0].ix; in copyTripleSamples()
953 sensor->buffer.triple[numSamples].iy = triple->samples[0].iy; in copyTripleSamples()
954 sensor->buffer.triple[numSamples].iz = triple->samples[0].iz; in copyTripleSamples()
955 sensor->lastTime = triple->referenceTime; in copyTripleSamples()
956 …if (triple->samples[0].firstSample.biasPresent && triple->samples[0].firstSample.biasSample == 0) { in copyTripleSamples()
957 … sensor->buffer.firstSample.biasCurrent = triple->samples[0].firstSample.biasCurrent; in copyTripleSamples()
966 deltaTime = triple->samples[i].deltaTime; in copyTripleSamples()
970 sensor->buffer.triple[numSamples].deltaTime = deltaTime | delta_time_fine_mask; in copyTripleSamples()
971 sensor->buffer.triple[numSamples].ix = triple->samples[i].ix; in copyTripleSamples()
972 sensor->buffer.triple[numSamples].iy = triple->samples[i].iy; in copyTripleSamples()
973 sensor->buffer.triple[numSamples].iz = triple->samples[i].iz; in copyTripleSamples()
975 …if (triple->samples[0].firstSample.biasPresent && triple->samples[0].firstSample.biasSample == i) { in copyTripleSamples()
976 … sensor->buffer.firstSample.biasCurrent = triple->samples[0].firstSample.biasCurrent; in copyTripleSamples()