@@ -1,21 +1,33 | |||||
1 | /* No newline at end of file |
|
1 | /* | |
2 | * gnss.h No newline at end of file |
|
2 | * gnss.h | |
3 | * |
|
3 | * | |
No newline at end of file |
|
4 | * Created on: Dec 29, 2014 | ||
4 | * Created on: Nov 4, 2014 |
|
No newline at end of file | ||
No newline at end of file |
|
5 | * Author: aras No newline at end of file | ||
5 | * Author: Alan Aguilar Sologuren No newline at end of file |
|
|||
6 | */ No newline at end of file |
|
6 | */ | |
7 |
|
7 | |||
No newline at end of file |
|
8 | #ifndef LIBTE_GNSS_H_ | ||
8 | #ifndef GNSS_H_ |
|
No newline at end of file | ||
No newline at end of file |
|
9 | #define LIBTE_GNSS_H_ No newline at end of file | ||
9 | #define GNSS_H_ No newline at end of file |
|
|||
10 |
|
10 | |||
No newline at end of file |
|
11 | #include "te_structs.h" No newline at end of file | ||
11 | namespace te_gnss { No newline at end of file |
|
|||
12 | No newline at end of file |
|
12 | ||
13 | //pin ports to GNSS No newline at end of file |
|
13 | //pin ports to GNSS | |
14 | #define PPS 2 /*!< PE4 AVR <> 2 Arduino */ No newline at end of file |
|
14 | #define PPS 2 /*!< PE4 AVR <> 2 Arduino */ | |
15 | #define ENB 5 /*!< PE3 AVR <> 5 Arduino */ No newline at end of file |
|
15 | #define ENB 5 /*!< PE3 AVR <> 5 Arduino */ | |
16 | #define RX0_GNSS RX0 No newline at end of file |
|
16 | #define RX0_GNSS RX0 | |
17 | #define TX0_GNSS TX0 PE1 No newline at end of file |
|
17 | #define TX0_GNSS TX0 PE1 | |
18 |
|
18 | |||
No newline at end of file |
|
||||
19 | } No newline at end of file |
|
|||
20 |
|
19 | |||
No newline at end of file |
|
20 | class gnss { | ||
21 | #endif /* GNSS_H_ */ No newline at end of file |
|
No newline at end of file | ||
|
21 | public: | |||
|
No newline at end of file | ||||
|
22 | gnss(); | |||
|
No newline at end of file | ||||
|
23 | virtual ~gnss(); | |||
|
No newline at end of file | ||||
|
24 | ||||
|
No newline at end of file | ||||
|
25 | bool te_gnss_configure(gnss_config_struct*); | |||
|
No newline at end of file | ||||
|
26 | bool te_gnss_activate(); | |||
|
No newline at end of file | ||||
|
27 | bool te_gnss_deactivate(); | |||
|
No newline at end of file | ||||
|
28 | bool te_gnss_sync_pps(); | |||
|
No newline at end of file | ||||
|
29 | bool te_gnss_get_time_info(gnss_precise_time*); | |||
|
No newline at end of file | ||||
|
30 | bool te_gnss_is_locked(); | |||
|
No newline at end of file | ||||
|
31 | }; | |||
|
No newline at end of file | ||||
|
32 | ||||
|
No newline at end of file | ||||
|
33 | #endif /* LIBTE_GNSS_H_ */ No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now