gnss.h
33 lines
| 599 B
| text/x-c
|
CLexer
|
r132 | /* | ||
* gnss.h | ||||
* | ||||
|
r175 | * Created on: Dec 29, 2014 | ||
* Author: aras | ||||
|
r132 | */ | ||
|
r175 | #ifndef LIBTE_GNSS_H_ | ||
#define LIBTE_GNSS_H_ | ||||
|
r132 | |||
|
r175 | #include "te_structs.h" | ||
|
r132 | |||
//pin ports to GNSS | ||||
#define PPS 2 /*!< PE4 AVR <> 2 Arduino */ | ||||
#define ENB 5 /*!< PE3 AVR <> 5 Arduino */ | ||||
#define RX0_GNSS RX0 | ||||
#define TX0_GNSS TX0 PE1 | ||||
|
r175 | class gnss { | ||
public: | ||||
gnss(); | ||||
virtual ~gnss(); | ||||
bool te_gnss_configure(gnss_config_struct*); | ||||
bool te_gnss_activate(); | ||||
bool te_gnss_deactivate(); | ||||
bool te_gnss_sync_pps(); | ||||
bool te_gnss_get_time_info(gnss_precise_time*); | ||||
bool te_gnss_is_locked(); | ||||
}; | ||||
#endif /* LIBTE_GNSS_H_ */ | ||||