-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathM8N.h
40 lines (33 loc) · 911 Bytes
/
M8N.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __M8N_H
#define __M8N_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "main.h"
typedef struct _M8N_UBX_NAV_POSLLH
{
unsigned char CLASS;
unsigned char ID;
unsigned short length;
unsigned int iTOW;
int32_t lon;
int32_t lat;
int32_t height;
signed int hMSL;
unsigned int hAcc;
unsigned int vAcc;
double lon_f64;
double lat_f64;
}M8N_UBX_NAV_POSLLH;
extern M8N_UBX_NAV_POSLLH posllh;
unsigned char M8N_UBX_CHKSUM_Check(unsigned char* data, unsigned char len);
void M8N_UBX_NAV_POSLLH_Parsing(unsigned char* data, M8N_UBX_NAV_POSLLH* posllh);
void M8N_TransmitData(unsigned char* data, unsigned char len);
void M8N_UART4_Initialization(void);
void M8N_Initialization(void);
#ifdef __cplusplus
}
#endif
#endif /*__ M8N_H */