IPIA Senior Project V2.0
Spring-Fall 2020
Loading...
Searching...
No Matches
sim33eau.h
Go to the documentation of this file.
1
13#ifndef SIM33EAU_H_
14#define SIM33EAU_H_
15#include <ti/drivers/UART.h>
16#include <ti/drivers/GPIO.h>
17#include <unistd.h>
18#include <stdint.h>
19#include <stddef.h>
20#include "GPS.h"
21#include "ti_drivers_config.h"
22
23/*GPS THREAD*/
24#define BUFFER 82
25UART_Handle gpsUartHandle;
28/*Data Structures*/
34
41void GPS_init(void);
42
43
50void GPS_read(uint8_t totalRead);
51
52
59void GPS_stop(void);
60
61/*Check if a str has substring of substr*/
62
63
71bool isSubstring(char *str, char *substr);
72
73
74
81uint8_t str_to_uint8(char *str);
82
83
90uint16_t str_to_uint16(char *str);
91/*Set SysTime structure with UTC_TIME data*/
92
93
100SysTime setSysTime(const UTC_TIME *gpsUtcTime);
101
102//void displayGpsData(Display_Handle displayHandle, NMEA_GNRMC nmeaGnrmc, UTC_TIME utcTime, COORDINATE coordinate, SysTime sysTime);
103#endif /* SIM33EAU_H_ */
GPS NMEA custom API.
#define BUFFER
Definition: sim33eau.h:24
SysTime sysTime
Definition: sim33eau.h:32
void GPS_stop(void)
GPS stop.
Definition: sim33eau.c:76
void GPS_read(uint8_t totalRead)
GPS read.
Definition: sim33eau.c:50
void GPS_init(void)
GPS Initialize.
Definition: sim33eau.c:15
NMEA_GNRMC nmeaGnrmc
Definition: sim33eau.h:29
SysTime setSysTime(const UTC_TIME *gpsUtcTime)
Set System Time.
Definition: sim33eau.c:81
UTC_TIME utcTime
Definition: sim33eau.h:30
uint16_t str_to_uint16(char *str)
String to uint16_t.
Definition: sim33eau.c:130
uint8_t str_to_uint8(char *str)
String to uint8_t.
Definition: sim33eau.c:113
COORDINATE coordinate
Definition: sim33eau.h:31
char gpsData[BUFFER]
Definition: sim33eau.h:26
UART_Handle gpsUartHandle
Definition: sim33eau.h:25
bool isSubstring(char *str, char *substr)
Check if string is a substring.
Definition: sim33eau.c:90
COORDINATE object.
Definition: GPS.h:113
NMEA_GNRMC Time object.
Definition: GPS.h:64
SysTime Time object.
Definition: GPS.h:35
UTC_TIME object.
Definition: GPS.h:93