Lines Matching full:numsamples
91 uint8_t numSamples;
523 sensor->curSamples -= buffer->firstSample.numSamples;
554 sensor->curSamples -= buffer->firstSample.numSamples;
583 if (sensor->curSamples - buffer->firstSample.numSamples >= sensor->minSamples || onDelete) {
588 sensor->curSamples -= buffer->firstSample.numSamples;
764 uint8_t numSamples;
766 for (i = 0; i < triple->samples[0].firstSample.numSamples; i++) {
767 if (sensor->buffer.firstSample.numSamples == sensor->packetSamples) {
772 if (sensor->buffer.firstSample.numSamples == 0) {
787 sensor->buffer.firstSample.numSamples = 1;
804 numSamples = sensor->buffer.firstSample.numSamples;
807 sensor->buffer.rawTriple[numSamples].deltaTime = deltaTime;
808 sensor->buffer.rawTriple[numSamples].ix = floatToInt16(triple->samples[0].x * sensor->rawScale);
809 sensor->buffer.rawTriple[numSamples].iy = floatToInt16(triple->samples[0].y * sensor->rawScale);
810 sensor->buffer.rawTriple[numSamples].iz = floatToInt16(triple->samples[0].z * sensor->rawScale);
812 sensor->buffer.firstSample.numSamples++;
817 numSamples = sensor->buffer.firstSample.numSamples;
820 sensor->buffer.rawTriple[numSamples].deltaTime = deltaTime | delta_time_fine_mask;
821 sensor->buffer.rawTriple[numSamples].ix = floatToInt16(triple->samples[i].x * sensor->rawScale);
822 sensor->buffer.rawTriple[numSamples].iy = floatToInt16(triple->samples[i].y * sensor->rawScale);
823 sensor->buffer.rawTriple[numSamples].iz = floatToInt16(triple->samples[i].z * sensor->rawScale);
825 sensor->buffer.firstSample.numSamples++;
836 uint8_t numSamples;
838 for (i = 0; i < single->samples[0].firstSample.numSamples; i++) {
839 if (sensor->buffer.firstSample.numSamples == sensor->packetSamples) {
844 if (sensor->buffer.firstSample.numSamples == 0) {
857 sensor->buffer.firstSample.numSamples = 1;
874 numSamples = sensor->buffer.firstSample.numSamples;
877 sensor->buffer.single[numSamples].deltaTime = deltaTime;
878 sensor->buffer.single[numSamples].idata = single->samples[0].idata;
880 sensor->buffer.firstSample.numSamples++;
885 numSamples = sensor->buffer.firstSample.numSamples;
888 sensor->buffer.single[numSamples].deltaTime = deltaTime | delta_time_fine_mask;
889 sensor->buffer.single[numSamples].idata = single->samples[i].idata;
891 sensor->buffer.firstSample.numSamples++;
902 uint8_t numSamples;
904 for (i = 0; i < triple->samples[0].firstSample.numSamples; i++) {
905 if (sensor->buffer.firstSample.numSamples == sensor->packetSamples) {
910 if (sensor->buffer.firstSample.numSamples == 0) {
931 sensor->buffer.firstSample.numSamples = 1;
948 numSamples = sensor->buffer.firstSample.numSamples;
951 sensor->buffer.triple[numSamples].deltaTime = deltaTime;
952 sensor->buffer.triple[numSamples].ix = triple->samples[0].ix;
953 sensor->buffer.triple[numSamples].iy = triple->samples[0].iy;
954 sensor->buffer.triple[numSamples].iz = triple->samples[0].iz;
959 sensor->buffer.firstSample.biasSample = numSamples;
962 sensor->buffer.firstSample.numSamples++;
967 numSamples = sensor->buffer.firstSample.numSamples;
970 sensor->buffer.triple[numSamples].deltaTime = deltaTime | delta_time_fine_mask;
971 sensor->buffer.triple[numSamples].ix = triple->samples[i].ix;
972 sensor->buffer.triple[numSamples].iy = triple->samples[i].iy;
973 sensor->buffer.triple[numSamples].iz = triple->samples[i].iz;
978 sensor->buffer.firstSample.biasSample = numSamples;
981 sensor->buffer.firstSample.numSamples++;
1207 } else if (sensor->buffer.firstSample.numSamples == sensor->packetSamples) {
1227 sensor->buffer.firstSample.numSamples = 1;
1232 sensor->buffer.single[sensor->buffer.firstSample.numSamples].deltaTime = encodeDeltaTime(rtcTime - sensor->lastTime);
1234 sensor->buffer.single[sensor->buffer.firstSample.numSamples].idata = (uint32_t)evtData;
1235 sensor->buffer.firstSample.numSamples++;