UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
mission.h
1 
11 #ifndef __MISSION_H__
12 #define __MISSION_H__
13 
14 #include <stdint.h>
15 #include <stdbool.h>
16 
17 /* Stored in EEPROM */
18 typedef struct mission_state_data_t {
19  /* 32b word */
20  bool mission_inprogress:1;
21  bool antenna_deployed:1;
22  /* 32b word */
23  uint16_t obc_reboots;
24  uint16_t configuration_crcfail;
26 
27 typedef struct mission_state_t {
29  uint16_t crc;
31 
32 /* Stored in RAM (volatile) */
33 typedef struct subsystems_ok_t {
34  /* 32b word */
35  bool eeprom:1;
36  bool fram:1;
37  bool camera:1;
38  bool gps:1;
39  bool imu:1;
40  bool transmitter:1;
41  bool receiver:1;
42  bool eps:1;
44 
45 
46 mission_state_t mission_state;
47 
48 subsystems_ok_t subsystems_ok;
49 
50 void Mission_Init(void);
51 
52 void Mission_loop(void);
53 
54 void Mission_SEU(void);
55 
56 #endif /* __MISSION_H__ */