Files
gps/soc/software/gps_system/header/gps_pps.h
T
2026-07-12 11:01:51 +03:00

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