altos: Move old AO_LAUNCH defines to cc1111/ao_launch.h
[fw/altos] / src / cc1111 / ao_launch.h
1 /*
2  * Copyright © 2017 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  */
14
15 #ifndef _AO_LAUNCH_H_
16 #define _AO_LAUNCH_H_
17 /* ao_launch.c */
18
19 struct ao_launch_command {
20         uint16_t        tick;
21         uint16_t        serial;
22         uint8_t         cmd;
23         uint8_t         channel;
24         uint16_t        unused;
25 };
26
27 #define AO_LAUNCH_QUERY         1
28
29 struct ao_launch_query {
30         uint16_t        tick;
31         uint16_t        serial;
32         uint8_t         channel;
33         uint8_t         valid;
34         uint8_t         arm_status;
35         uint8_t         igniter_status;
36 };
37
38 #define AO_LAUNCH_ARM           2
39 #define AO_LAUNCH_FIRE          3
40
41 void
42 ao_launch_init(void);
43
44 #endif /* _AO_LAUNCH_H_ */