34 lines
649 B
C
34 lines
649 B
C
//
|
|
// Created by villuton on 24.03.25.
|
|
//
|
|
|
|
#ifndef WEACTARTRY_NMEA0183PARSER_TIME_H
|
|
#define WEACTARTRY_NMEA0183PARSER_TIME_H
|
|
|
|
#include <stdint-gcc.h>
|
|
#include "stdbool.h"
|
|
|
|
typedef struct {
|
|
uint8_t hour;
|
|
uint8_t minute;
|
|
uint8_t second;
|
|
uint16_t millisecond;
|
|
} tNmeaUtc;
|
|
|
|
typedef struct {
|
|
uint8_t day;
|
|
uint8_t month;
|
|
uint8_t year;
|
|
} tNmeaDate;
|
|
|
|
typedef struct {
|
|
tNmeaUtc utc;
|
|
tNmeaDate date;
|
|
} tNmeaTime;
|
|
|
|
bool Nmea0183ParseUtc(char *utcString, char const *utcStringEnd, tNmeaUtc *utc);
|
|
|
|
bool Nmea0183ParseDate(char *utcString, char const *utcStringEnd, tNmeaDate *date);
|
|
|
|
#endif //WEACTARTRY_NMEA0183PARSER_TIME_H
|