Lines Matching refs:length

478     int length = 0;  in loc_nmea_put_checksum()  local
486 length++; in loc_nmea_put_checksum()
490 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_nmea_put_checksum()
494 return (length + checksumLength + 1); in loc_nmea_put_checksum()
532 int length = 0; in loc_nmea_generate_GSA() local
570 length = snprintf(pMarker, lengthRemaining, "$%sGSA,A,%c,", talker, fixType); in loc_nmea_generate_GSA()
572 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSA()
577 pMarker += length; in loc_nmea_generate_GSA()
578 lengthRemaining -= length; in loc_nmea_generate_GSA()
584 length = snprintf(pMarker, lengthRemaining, "%02d,", svUsedList[i]); in loc_nmea_generate_GSA()
586 length = snprintf(pMarker, lengthRemaining, ","); in loc_nmea_generate_GSA()
588 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSA()
593 pMarker += length; in loc_nmea_generate_GSA()
594 lengthRemaining -= length; in loc_nmea_generate_GSA()
600 length = snprintf(pMarker, lengthRemaining, "%.1f,%.1f,%.1f,", in loc_nmea_generate_GSA()
607 length = snprintf(pMarker, lengthRemaining, ",,,"); in loc_nmea_generate_GSA()
609 pMarker += length; in loc_nmea_generate_GSA()
610 lengthRemaining -= length; in loc_nmea_generate_GSA()
613 length = snprintf(pMarker, lengthRemaining, "%d", sv_meta_p->systemId); in loc_nmea_generate_GSA()
614 pMarker += length; in loc_nmea_generate_GSA()
615 lengthRemaining -= length; in loc_nmea_generate_GSA()
618 length = loc_nmea_put_checksum(sentence, bufSize); in loc_nmea_generate_GSA()
658 int length = 0; in loc_nmea_generate_GSV() local
670 length = loc_nmea_put_checksum(sentence, bufSize); in loc_nmea_generate_GSV()
684 length = snprintf(pMarker, lengthRemaining, "$%sGSV,%d,%d,%02d", in loc_nmea_generate_GSV()
687 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSV()
692 pMarker += length; in loc_nmea_generate_GSV()
693 lengthRemaining -= length; in loc_nmea_generate_GSV()
733 length = snprintf(pMarker, lengthRemaining,",%02d,%02d,%03d,", in loc_nmea_generate_GSV()
738 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSV()
743 pMarker += length; in loc_nmea_generate_GSV()
744 lengthRemaining -= length; in loc_nmea_generate_GSV()
748 length = snprintf(pMarker, lengthRemaining,"%02d", in loc_nmea_generate_GSV()
751 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_GSV()
756 pMarker += length; in loc_nmea_generate_GSV()
757 lengthRemaining -= length; in loc_nmea_generate_GSV()
766 length = snprintf(pMarker, lengthRemaining,",%X",sv_meta_p->signalId); in loc_nmea_generate_GSV()
767 pMarker += length; in loc_nmea_generate_GSV()
768 lengthRemaining -= length; in loc_nmea_generate_GSV()
770 length = loc_nmea_put_checksum(sentence, bufSize); in loc_nmea_generate_GSV()
800 int length = 0; in loc_nmea_generate_DTM() local
831 length = snprintf(pMarker , lengthRemaining , "$GPDTM,%s,," , local_datum); in loc_nmea_generate_DTM()
832 if (length < 0 || length >= lengthRemaining) { in loc_nmea_generate_DTM()
836 pMarker += length; in loc_nmea_generate_DTM()
837 lengthRemaining -= length; in loc_nmea_generate_DTM()
861 length = snprintf(pMarker, lengthRemaining, "%02d%09.6lf,%c,%03d%09.6lf,%c,%.3lf,", in loc_nmea_generate_DTM()
864 if (length < 0 || length >= lengthRemaining) { in loc_nmea_generate_DTM()
868 pMarker += length; in loc_nmea_generate_DTM()
869 lengthRemaining -= length; in loc_nmea_generate_DTM()
870 length = snprintf(pMarker , lengthRemaining , "%s" , ref_datum); in loc_nmea_generate_DTM()
871 if (length < 0 || length >= lengthRemaining) { in loc_nmea_generate_DTM()
875 pMarker += length; in loc_nmea_generate_DTM()
876 lengthRemaining -= length; in loc_nmea_generate_DTM()
878 length = loc_nmea_put_checksum(sentence, bufSize); in loc_nmea_generate_DTM()
1006 int length = 0; in loc_nmea_generate_pos() local
1141length = snprintf(pMarker, lengthRemaining, "$%sVTG,%.1lf,T,%.1lf,M,", talker, location.gpsLocatio… in loc_nmea_generate_pos()
1145 length = snprintf(pMarker, lengthRemaining, "$%sVTG,,T,,M,", talker); in loc_nmea_generate_pos()
1148 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1153 pMarker += length; in loc_nmea_generate_pos()
1154 lengthRemaining -= length; in loc_nmea_generate_pos()
1161length = snprintf(pMarker, lengthRemaining, "%.1lf,N,%.1lf,K,", speedKnots, speedKmPerHour); in loc_nmea_generate_pos()
1165 length = snprintf(pMarker, lengthRemaining, ",N,,K,"); in loc_nmea_generate_pos()
1168 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1173 pMarker += length; in loc_nmea_generate_pos()
1174 lengthRemaining -= length; in loc_nmea_generate_pos()
1178 length = snprintf(pMarker, lengthRemaining, "%c", 'N'); in loc_nmea_generate_pos()
1181 length = snprintf(pMarker, lengthRemaining, "%c", 'D'); in loc_nmea_generate_pos()
1184 length = snprintf(pMarker, lengthRemaining, "%c", 'E'); in loc_nmea_generate_pos()
1186 length = snprintf(pMarker, lengthRemaining, "%c", 'A'); in loc_nmea_generate_pos()
1188 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
1238 length = snprintf(pMarker, lengthRemaining, "$%sRMC,%02d%02d%02d.%02d,A," , in loc_nmea_generate_pos()
1241 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1246 pMarker += length; in loc_nmea_generate_pos()
1247 lengthRemaining -= length; in loc_nmea_generate_pos()
1281 length = snprintf(pMarker, lengthRemaining, "%02d%09.6lf,%c,%03d%09.6lf,%c,", in loc_nmea_generate_pos()
1287 length = snprintf(pMarker, lengthRemaining,",,,,"); in loc_nmea_generate_pos()
1290 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1295 pMarker += length; in loc_nmea_generate_pos()
1296 lengthRemaining -= length; in loc_nmea_generate_pos()
1301 length = snprintf(pMarker, lengthRemaining, "%.1lf,", speedKnots); in loc_nmea_generate_pos()
1305 length = snprintf(pMarker, lengthRemaining, ","); in loc_nmea_generate_pos()
1308 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1313 pMarker += length; in loc_nmea_generate_pos()
1314 lengthRemaining -= length; in loc_nmea_generate_pos()
1318 length = snprintf(pMarker, lengthRemaining, "%.1lf,", location.gpsLocation.bearing); in loc_nmea_generate_pos()
1322 length = snprintf(pMarker, lengthRemaining, ","); in loc_nmea_generate_pos()
1325 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1330 pMarker += length; in loc_nmea_generate_pos()
1331 lengthRemaining -= length; in loc_nmea_generate_pos()
1333 length = snprintf(pMarker, lengthRemaining, "%2.2d%2.2d%2.2d,", in loc_nmea_generate_pos()
1336 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1341 pMarker += length; in loc_nmea_generate_pos()
1342 lengthRemaining -= length; in loc_nmea_generate_pos()
1358 length = snprintf(pMarker, lengthRemaining, "%.1lf,%c,", in loc_nmea_generate_pos()
1363 length = snprintf(pMarker, lengthRemaining, ",,"); in loc_nmea_generate_pos()
1366 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1371 pMarker += length; in loc_nmea_generate_pos()
1372 lengthRemaining -= length; in loc_nmea_generate_pos()
1376 length = snprintf(pMarker, lengthRemaining, "%c", 'N'); in loc_nmea_generate_pos()
1379 length = snprintf(pMarker, lengthRemaining, "%c", 'D'); in loc_nmea_generate_pos()
1382 length = snprintf(pMarker, lengthRemaining, "%c", 'E'); in loc_nmea_generate_pos()
1384 length = snprintf(pMarker, lengthRemaining, "%c", 'A'); in loc_nmea_generate_pos()
1386 pMarker += length; in loc_nmea_generate_pos()
1387 lengthRemaining -= length; in loc_nmea_generate_pos()
1390 length = snprintf(pMarker, lengthRemaining, ",%c", 'V'); in loc_nmea_generate_pos()
1391 pMarker += length; in loc_nmea_generate_pos()
1392 lengthRemaining -= length; in loc_nmea_generate_pos()
1394 length = loc_nmea_put_checksum(sentence_RMC, sizeof(sentence_RMC)); in loc_nmea_generate_pos()
1403 length = snprintf(pMarker, lengthRemaining, "$%sGNS,%02d%02d%02d.%02d," , in loc_nmea_generate_pos()
1406 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1411 pMarker += length; in loc_nmea_generate_pos()
1412 lengthRemaining -= length; in loc_nmea_generate_pos()
1446 length = snprintf(pMarker, lengthRemaining, "%02d%09.6lf,%c,%03d%09.6lf,%c,", in loc_nmea_generate_pos()
1452 length = snprintf(pMarker, lengthRemaining,",,,,"); in loc_nmea_generate_pos()
1455 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1460 pMarker += length; in loc_nmea_generate_pos()
1461 lengthRemaining -= length; in loc_nmea_generate_pos()
1465 length = snprintf(pMarker, lengthRemaining, "%c,", 'N'); in loc_nmea_generate_pos()
1468 length = snprintf(pMarker, lengthRemaining, "%c,", 'D'); in loc_nmea_generate_pos()
1471 length = snprintf(pMarker, lengthRemaining, "%c,", 'E'); in loc_nmea_generate_pos()
1473 length = snprintf(pMarker, lengthRemaining, "%c,", 'A'); in loc_nmea_generate_pos()
1475 pMarker += length; in loc_nmea_generate_pos()
1476 lengthRemaining -= length; in loc_nmea_generate_pos()
1479 length = snprintf(pMarker, lengthRemaining, "%02d,%.1f,", in loc_nmea_generate_pos()
1483 length = snprintf(pMarker, lengthRemaining, "%02d,,", in loc_nmea_generate_pos()
1487 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1492 pMarker += length; in loc_nmea_generate_pos()
1493 lengthRemaining -= length; in loc_nmea_generate_pos()
1497 length = snprintf(pMarker, lengthRemaining, "%.1lf,", in loc_nmea_generate_pos()
1502 length = snprintf(pMarker, lengthRemaining,","); in loc_nmea_generate_pos()
1505 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1510 pMarker += length; in loc_nmea_generate_pos()
1511 lengthRemaining -= length; in loc_nmea_generate_pos()
1516 length = snprintf(pMarker, lengthRemaining, "%.1lf,,", in loc_nmea_generate_pos()
1521 length = snprintf(pMarker, lengthRemaining,",,"); in loc_nmea_generate_pos()
1524 pMarker += length; in loc_nmea_generate_pos()
1525 lengthRemaining -= length; in loc_nmea_generate_pos()
1528 length = snprintf(pMarker, lengthRemaining, ",%c", 'V'); in loc_nmea_generate_pos()
1529 pMarker += length; in loc_nmea_generate_pos()
1530 lengthRemaining -= length; in loc_nmea_generate_pos()
1532 length = loc_nmea_put_checksum(sentence_GNS, sizeof(sentence_GNS)); in loc_nmea_generate_pos()
1542 length = snprintf(pMarker, lengthRemaining, "$%sGGA,%02d%02d%02d.%02d," , in loc_nmea_generate_pos()
1545 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1550 pMarker += length; in loc_nmea_generate_pos()
1551 lengthRemaining -= length; in loc_nmea_generate_pos()
1585 length = snprintf(pMarker, lengthRemaining, "%02d%09.6lf,%c,%03d%09.6lf,%c,", in loc_nmea_generate_pos()
1591 length = snprintf(pMarker, lengthRemaining,",,,,"); in loc_nmea_generate_pos()
1594 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1599 pMarker += length; in loc_nmea_generate_pos()
1600 lengthRemaining -= length; in loc_nmea_generate_pos()
1617 length = snprintf(pMarker, lengthRemaining, "%c,%02d,%.1f,", in loc_nmea_generate_pos()
1622 length = snprintf(pMarker, lengthRemaining, "%c,%02d,,", in loc_nmea_generate_pos()
1626 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1631 pMarker += length; in loc_nmea_generate_pos()
1632 lengthRemaining -= length; in loc_nmea_generate_pos()
1636 length = snprintf(pMarker, lengthRemaining, "%.1lf,M,", in loc_nmea_generate_pos()
1641 length = snprintf(pMarker, lengthRemaining,",,"); in loc_nmea_generate_pos()
1644 if (length < 0 || length >= lengthRemaining) in loc_nmea_generate_pos()
1649 pMarker += length; in loc_nmea_generate_pos()
1650 lengthRemaining -= length; in loc_nmea_generate_pos()
1655 length = snprintf(pMarker, lengthRemaining, "%.1lf,M,,", in loc_nmea_generate_pos()
1660 length = snprintf(pMarker, lengthRemaining,",,,"); in loc_nmea_generate_pos()
1663 length = loc_nmea_put_checksum(sentence_GGA, sizeof(sentence_GGA)); in loc_nmea_generate_pos()
1686 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
1690 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
1694 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
1698 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
1702 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
1706 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()
1710 length = loc_nmea_put_checksum(sentence, sizeof(sentence)); in loc_nmea_generate_pos()