Lines Matching refs:length

179     int length = 0;  in loc_nmea_put_checksum()  local
187 length++; in loc_nmea_put_checksum()
191 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_nmea_put_checksum()
195 return (length + checksumLength + 1); in loc_nmea_put_checksum()
233 int length = 0; in loc_nmea_generate_GSA() local
270 length = snprintf(pMarker, lengthRemaining, "$%sGSA,A,%c,", talker, fixType); in loc_nmea_generate_GSA()
272 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSA()
277 pMarker += length; in loc_nmea_generate_GSA()
278 lengthRemaining -= length; in loc_nmea_generate_GSA()
284 length = snprintf(pMarker, lengthRemaining, "%02d,", svUsedList[i]); in loc_nmea_generate_GSA()
286 length = snprintf(pMarker, lengthRemaining, ","); in loc_nmea_generate_GSA()
288 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSA()
293 pMarker += length; in loc_nmea_generate_GSA()
294 lengthRemaining -= length; in loc_nmea_generate_GSA()
300 length = snprintf(pMarker, lengthRemaining, "%.1f,%.1f,%.1f,", in loc_nmea_generate_GSA()
307 length = snprintf(pMarker, lengthRemaining, ",,,"); in loc_nmea_generate_GSA()
309 pMarker += length; in loc_nmea_generate_GSA()
310 lengthRemaining -= length; in loc_nmea_generate_GSA()
313 length = snprintf(pMarker, lengthRemaining, "%d", sv_meta_p->systemId); in loc_nmea_generate_GSA()
314 pMarker += length; in loc_nmea_generate_GSA()
315 lengthRemaining -= length; in loc_nmea_generate_GSA()
318 length = loc_nmea_put_checksum(sentence, bufSize); in loc_nmea_generate_GSA()
358 int length = 0; in loc_nmea_generate_GSV() local
371 length = loc_nmea_put_checksum(sentence, bufSize); in loc_nmea_generate_GSV()
385 length = snprintf(pMarker, lengthRemaining, "$%sGSV,%d,%d,%02d", in loc_nmea_generate_GSV()
388 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSV()
393 pMarker += length; in loc_nmea_generate_GSV()
394 lengthRemaining -= length; in loc_nmea_generate_GSV()
400 length = snprintf(pMarker, lengthRemaining,",%02d,%02d,%03d,", in loc_nmea_generate_GSV()
405 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSV()
410 pMarker += length; in loc_nmea_generate_GSV()
411 lengthRemaining -= length; in loc_nmea_generate_GSV()
415 length = snprintf(pMarker, lengthRemaining,"%02d", in loc_nmea_generate_GSV()
418 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSV()
423 pMarker += length; in loc_nmea_generate_GSV()
424 lengthRemaining -= length; in loc_nmea_generate_GSV()
437 length = snprintf(pMarker, lengthRemaining,",%d,%d",0,sv_meta_p->systemId); in loc_nmea_generate_GSV()
438 pMarker += length; in loc_nmea_generate_GSV()
439 lengthRemaining -= length; in loc_nmea_generate_GSV()
442 length = loc_nmea_put_checksum(sentence, bufSize); in loc_nmea_generate_GSV()
489 int length = 0; in loc_nmea_generate_pos() local
602length = snprintf(pMarker, lengthRemaining, "$%sVTG,%.1lf,T,%.1lf,M,", talker, location.gpsLocatio… in loc_nmea_generate_pos()
606 length = snprintf(pMarker, lengthRemaining, "$%sVTG,,T,,M,", talker); in loc_nmea_generate_pos()
609 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
614 pMarker += length; in loc_nmea_generate_pos()
615 lengthRemaining -= length; in loc_nmea_generate_pos()
622length = snprintf(pMarker, lengthRemaining, "%.1lf,N,%.1lf,K,", speedKnots, speedKmPerHour); in loc_nmea_generate_pos()
626 length = snprintf(pMarker, lengthRemaining, ",N,,K,"); in loc_nmea_generate_pos()
629 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
634 pMarker += length; in loc_nmea_generate_pos()
635 lengthRemaining -= length; in loc_nmea_generate_pos()
639 length = snprintf(pMarker, lengthRemaining, "%c", 'N'); in loc_nmea_generate_pos()
642 length = snprintf(pMarker, lengthRemaining, "%c", 'D'); in loc_nmea_generate_pos()
645 length = snprintf(pMarker, lengthRemaining, "%c", 'E'); in loc_nmea_generate_pos()
647 length = snprintf(pMarker, lengthRemaining, "%c", 'A'); in loc_nmea_generate_pos()
649 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
659 length = snprintf(pMarker, lengthRemaining, "$%sRMC,%02d%02d%02d.%02d,A," , in loc_nmea_generate_pos()
662 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
667 pMarker += length; in loc_nmea_generate_pos()
668 lengthRemaining -= length; in loc_nmea_generate_pos()
702 length = snprintf(pMarker, lengthRemaining, "%02d%09.6lf,%c,%03d%09.6lf,%c,", in loc_nmea_generate_pos()
708 length = snprintf(pMarker, lengthRemaining,",,,,"); in loc_nmea_generate_pos()
711 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
716 pMarker += length; in loc_nmea_generate_pos()
717 lengthRemaining -= length; in loc_nmea_generate_pos()
722 length = snprintf(pMarker, lengthRemaining, "%.1lf,", speedKnots); in loc_nmea_generate_pos()
726 length = snprintf(pMarker, lengthRemaining, ","); in loc_nmea_generate_pos()
729 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
734 pMarker += length; in loc_nmea_generate_pos()
735 lengthRemaining -= length; in loc_nmea_generate_pos()
739 length = snprintf(pMarker, lengthRemaining, "%.1lf,", location.gpsLocation.bearing); in loc_nmea_generate_pos()
743 length = snprintf(pMarker, lengthRemaining, ","); in loc_nmea_generate_pos()
746 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
751 pMarker += length; in loc_nmea_generate_pos()
752 lengthRemaining -= length; in loc_nmea_generate_pos()
754 length = snprintf(pMarker, lengthRemaining, "%2.2d%2.2d%2.2d,", in loc_nmea_generate_pos()
757 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
762 pMarker += length; in loc_nmea_generate_pos()
763 lengthRemaining -= length; in loc_nmea_generate_pos()
779 length = snprintf(pMarker, lengthRemaining, "%.1lf,%c,", in loc_nmea_generate_pos()
784 length = snprintf(pMarker, lengthRemaining, ",,"); in loc_nmea_generate_pos()
787 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
792 pMarker += length; in loc_nmea_generate_pos()
793 lengthRemaining -= length; in loc_nmea_generate_pos()
797 length = snprintf(pMarker, lengthRemaining, "%c", 'N'); in loc_nmea_generate_pos()
800 length = snprintf(pMarker, lengthRemaining, "%c", 'D'); in loc_nmea_generate_pos()
803 length = snprintf(pMarker, lengthRemaining, "%c", 'E'); in loc_nmea_generate_pos()
805 length = snprintf(pMarker, lengthRemaining, "%c", 'A'); in loc_nmea_generate_pos()
807 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
817 length = snprintf(pMarker, lengthRemaining, "$%sGGA,%02d%02d%02d.%02d," , in loc_nmea_generate_pos()
820 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
825 pMarker += length; in loc_nmea_generate_pos()
826 lengthRemaining -= length; in loc_nmea_generate_pos()
860 length = snprintf(pMarker, lengthRemaining, "%02d%09.6lf,%c,%03d%09.6lf,%c,", in loc_nmea_generate_pos()
866 length = snprintf(pMarker, lengthRemaining,",,,,"); in loc_nmea_generate_pos()
869 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
874 pMarker += length; in loc_nmea_generate_pos()
875 lengthRemaining -= length; in loc_nmea_generate_pos()
892 length = snprintf(pMarker, lengthRemaining, "%c,%02d,%.1f,", in loc_nmea_generate_pos()
897 length = snprintf(pMarker, lengthRemaining, "%c,%02d,,", in loc_nmea_generate_pos()
901 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
906 pMarker += length; in loc_nmea_generate_pos()
907 lengthRemaining -= length; in loc_nmea_generate_pos()
911 length = snprintf(pMarker, lengthRemaining, "%.1lf,M,", in loc_nmea_generate_pos()
916 length = snprintf(pMarker, lengthRemaining,",,"); in loc_nmea_generate_pos()
919 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
924 pMarker += length; in loc_nmea_generate_pos()
925 lengthRemaining -= length; in loc_nmea_generate_pos()
930 length = snprintf(pMarker, lengthRemaining, "%.1lf,M,,", in loc_nmea_generate_pos()
935 length = snprintf(pMarker, lengthRemaining,",,,"); in loc_nmea_generate_pos()
938 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
944 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
948 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
952 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
956 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
960 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
964 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
997 int length = 0; in loc_nmea_generate_sv() local