STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
gnss_task.h
Go to the documentation of this file.
1#ifndef STAR_GNSS_TASK_H
2#define STAR_GNSS_TASK_H
3
4/*
5 * Owns UART9 (MAX-M10S). Wakes on received bytes (board_uart9) or on
6 * gnss_core's next deadline; stamps fixes with the latest GPS TIMEPULSE
7 * (TIM2 CH4, board_time). Records go to the eMMC log.
8 */
9
10#include <stdbool.h>
11
12#include "gnss_core.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18/* Starts stopped: the GPS rail is switched by gnss_task_set_active. */
19bool gnss_task_start(void);
20
21/* true: GPS rail on, detect + configure, 10 Hz fixes; false: rail off
22 * (Idle). Any task. */
23void gnss_task_set_active(bool on);
24
25/* true: once a second while running, ask the module for its antenna and
26 * satellite status (core->rf, core->sats). Off at start; the bench build
27 * turns it on. Any task. */
28void gnss_task_poll_status(bool on);
29
30/* Read-only view for telemetry (counters, latest fix). */
31const gnss_core_t* gnss_task_core(void);
32
33#ifdef __cplusplus
34}
35#endif
36#endif
void gnss_task_set_active(bool on)
Definition gnss_task.c:99
const gnss_core_t * gnss_task_core(void)
Definition gnss_task.c:110
void gnss_task_poll_status(bool on)
Definition gnss_task.c:106
bool gnss_task_start(void)
Definition gnss_task.c:89