15 lines
383 B
C
15 lines
383 B
C
#ifndef GPS_PPS_H
|
|
#define GPS_PPS_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#define GPS_PPS_CLOCK_HZ 125000000u
|
|
|
|
void gps_pps_init(unsigned int nav_solve_tick);
|
|
bool gps_pps_is_locked(void);
|
|
bool gps_pps_read_capture(unsigned int channel, uint64_t* counter, uint32_t* sequence);
|
|
bool gps_pps_commit_solution(uint64_t epoch_counter, int gps_week, double receiver_tow_sec);
|
|
|
|
#endif
|