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