-
Notifications
You must be signed in to change notification settings - Fork 1
/
intertaskMessageDefinitions.h
75 lines (68 loc) · 1.84 KB
/
intertaskMessageDefinitions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* IntertaskMessagesDefinitions.h
*
* Created on: Mar 13, 2020
* Author: bfisher
*/
#ifndef INTERTASKMESSAGEDEFINITIONS_H_
#define INTERTASKMESSAGEDEFINITIONS_H_
/* Messages for the downlinkControl*/
typedef enum {
/* These messages are for the downlink task.
* The explicit values are required since they index a table
*/
DwnlnkIdleTimeout=1,DwnlnkBeaconTimeout,DwnlnkTelemetryFrameComplete,
DwnlnkEnterSafeMode,DwnlnkEnterHealthMode,DwnlnkEnterAutoSafeMode,DwnlnkInhibitTransmit,
DwnlnkEnableTransmit,
DwnlnkEnterScienceMode,
DwnlnkEnterEclipseSafeMode,
DWNLNK_NUMBER_OF_STATE_MESSAGES,
//End of table indices
DwnlnkCollectTelemetry,DwnlnkProgramModulator,DwnlnkControlChange,
/*
* These are for the command task
*/
CmdTypeHardware = 0, /* We might not care if this starts with 0 */
CmdTypeRawSoftware,
CmdTypeValidatedSoftwareLocal,
CmdTypeValidatedSoftwareCAN,
CmdTypeRawSoftwareCAN,
CmdControlHasChanged,
/*
* These are for the CAN task
*/
CANMessageReceived,
// /*
// * These are for RIHU Coordination
// */
// CoordLIHU0IntMsg,
// CoordLIHU1IntMsg,
// CoordRxCANMsg,
// CoordSendStatusMsg,
// CoordSendPreflightInit,
// CoordSendReset,
// CoordSendInOrbit,
// CoordForceStateCheckMsg,
/*
* For messages to the radio task
*/
Rx0DCTInterruptMsg,
Rx1DCTInterruptMsg,
Rx2DCTInterruptMsg,
Rx3DCTInterruptMsg,
TxDCTInterruptMsg,
DCTPowerFlagMsg,
PAPowerFlagMsg,
DCTInitMessage,
/*
* Messages to the telemetry and Control task
*/
TacSendPbStatus,
TacSendUplinkStatus,
TacCollectMsg,
TacSendRealtimeMsg,
TacMaintenanceMsg,
TacSendErrorsResetMsg,
TacSendErrorsPowerCycleMsg
}IntertaskMessageType;
#endif /* INTERTASKMESSAGEDEFINITIONS_H_ */