Lines Matching refs:pos
130 int pos; in gnss_nmea0183_snprintk() local
143 pos = vsnprintk(&str[1], size - 1, fmt, ap) + 1; in gnss_nmea0183_snprintk()
146 if (pos < 0) { in gnss_nmea0183_snprintk()
150 len = pos + GNSS_NMEA0183_MESSAGE_CHECKSUM_SIZE; in gnss_nmea0183_snprintk()
157 pos = snprintk(&str[pos], size - pos, "*%02X", checksum); in gnss_nmea0183_snprintk()
158 if (pos != 3) { in gnss_nmea0183_snprintk()
170 int8_t pos = 0; in gnss_nmea0183_ddmm_mmmm_to_ndeg() local
177 while (ddmm_mmmm[pos] != '\0') { in gnss_nmea0183_ddmm_mmmm_to_ndeg()
179 if (ddmm_mmmm[pos] == '.') { in gnss_nmea0183_ddmm_mmmm_to_ndeg()
180 decimal = pos; in gnss_nmea0183_ddmm_mmmm_to_ndeg()
185 pos++; in gnss_nmea0183_ddmm_mmmm_to_ndeg()
199 pos = decimal + 1; in gnss_nmea0183_ddmm_mmmm_to_ndeg()
201 while (ddmm_mmmm[pos] != '\0') { in gnss_nmea0183_ddmm_mmmm_to_ndeg()
203 if (ddmm_mmmm[pos] < '0' || ddmm_mmmm[pos] > '9') { in gnss_nmea0183_ddmm_mmmm_to_ndeg()
208 pico_degrees += (ddmm_mmmm[pos] - '0') * increment; in gnss_nmea0183_ddmm_mmmm_to_ndeg()
214 pos++; in gnss_nmea0183_ddmm_mmmm_to_ndeg()
218 pos = decimal - 1; in gnss_nmea0183_ddmm_mmmm_to_ndeg()
220 while (pos >= 0) { in gnss_nmea0183_ddmm_mmmm_to_ndeg()
222 if ((decimal - pos) == 3) { in gnss_nmea0183_ddmm_mmmm_to_ndeg()
228 if (ddmm_mmmm[pos] < '0' || ddmm_mmmm[pos] > '9') { in gnss_nmea0183_ddmm_mmmm_to_ndeg()
233 pico_degrees += (ddmm_mmmm[pos] - '0') * increment; in gnss_nmea0183_ddmm_mmmm_to_ndeg()
239 pos--; in gnss_nmea0183_ddmm_mmmm_to_ndeg()