GPS NMEA custom API.
More...
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
Go to the source code of this file.
GPS NMEA custom API.
- Author
- Jesus Minjares
- See also
- https://github.com/jminjares4
- Version
- 0.1
- Date
- 2022-05-20
- Copyright
- Copyright (c) 2022
◆ COORDINATE
◆ NMEA_GNRMC
◆ UTC_TIME
◆ latitudeDegrees()
double latitudeDegrees |
( |
char * |
latitude, |
|
|
char * |
direction |
|
) |
| |
Convert latitude decimal value to degrees.
Detailed description starts here
- Parameters
-
- See also
- NMEA_GNRMC
- Parameters
-
- See also
- NMEA_GNRMC
- Returns
- double latitude in degrees
◆ longitudeDegrees()
double longitudeDegrees |
( |
char * |
longitude, |
|
|
char * |
direction |
|
) |
| |
Convert longitude decimal value to degrees.
Detailed description starts here
- Parameters
-
- See also
- NMEA_GNRMC
- Parameters
-
- See also
- NMEA_GNRMC
- Returns
- double longitude in degrees
◆ print_COORDINATE()
void print_COORDINATE |
( |
const COORDINATE * |
tempCoordinate | ) |
|
Print coordinates members.
- See also
- COORDINATE
Detailed description starts here
- Parameters
-
- See also
- COORDINATE
- Returns
- None
◆ print_NMEA_GNRMC()
Print GNRMC structure.
- See also
- NMEA_GNRMC
Detailed description starts here
- Parameters
-
- Returns
- None
◆ print_UTC_TIME()
void print_UTC_TIME |
( |
const UTC_TIME * |
time | ) |
|
Print the UTC_TIME Object.
- See also
- UTC_TIME
Detailed description starts here
- Parameters
-
- Returns
- None
◆ setCoordinates()
◆ setGnrmc()
◆ setTime()
◆ str_to_double()
double str_to_double |
( |
char * |
num | ) |
|
Convert string to floating point.
Detailed description starts here
- Parameters
-
- Returns
- double floating point value
◆ token()
char * token |
( |
char * |
str, |
|
|
char * |
delimiter |
|
) |
| |
Tokenize a string by a delimiter.
Detailed description starts here
- Parameters
-
str | string |
delimiter | custom delimiter |
- Returns
- char * tokenized string