STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
sensors_task.h
Go to the documentation of this file.
1
#ifndef STAR_SENSORS_TASK_H
2
#define STAR_SENSORS_TASK_H
3
4
/*
5
* Owns SPI3 (IMU, high-g, baro). Wakes on the IMU and high-g data-ready
6
* interrupts (board_exti) or on sensors_core's next deadline, runs
7
* sensors_core_step, and hands each record to the eMMC log. Highest
8
* priority of the application tasks.
9
*/
10
11
#include <stdbool.h>
12
13
#include "
sensors_core.h
"
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
/* Starts stopped: chips stay in power-down until sensors_task_set_active. */
20
bool
sensors_task_start
(
void
);
21
22
/* true: init the three chips and sample; false: power them down (Idle).
23
* Any task; takes effect on the sensors task's next wake. */
24
void
sensors_task_set_active
(
bool
on);
25
26
/* Snapshot of the latest samples and per-sensor counters (any task). */
27
void
sensors_task_snapshot
(
sensors_core_t
* out);
28
29
#ifdef __cplusplus
30
}
31
#endif
32
#endif
sensors_core.h
sensors_task_snapshot
void sensors_task_snapshot(sensors_core_t *out)
Definition
sensors_task.c:69
sensors_task_start
bool sensors_task_start(void)
Definition
sensors_task.c:75
sensors_task_set_active
void sensors_task_set_active(bool on)
Definition
sensors_task.c:88
sensors_core_t
Definition
sensors_core.h:51
firmware
Flight_Computer
src
app
sensors_task.h
Generated by
1.15.0