forked from UWARG/RC-Car-Bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterchipDMA.h
56 lines (46 loc) · 1.04 KB
/
InterchipDMA.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* File: InterchipDMA.h
* Author: Chris Hajduk
*
* Created on February 2, 2014, 2:10 PM
*/
#ifndef INTERCHIPDMA_H
#define INTERCHIPDMA_H
#ifdef __cplusplus
extern "C" {
#endif
// Includes
#include "main.h"
// Definitions
typedef struct _GPSData {
long double latitude; //8 Bytes
long double longitude; //8 Bytes
float time; //4 Bytes
float speed;
int altitude;
int heading;
char satellites; //1 Byte
char positionFix;
} GPSData;
extern GPSData GPS;
extern char newGPSDataAvailable;
// Function Prototypes
/*****************************************************************************
* Function: void init_DMA0();
*
* Preconditions: None.
*
* Overview: Initializes the primary Direct Memory Access module for continuous
* GPS data transmission. See the "AutoGPS" project for the corresponding GPS
* code.
*
* Input: None.
*
* Output: None.
*
*****************************************************************************/
void init_DMA0();
#ifdef __cplusplus
}
#endif
#endif /* INTERCHIPDMA_H */