2 * Copyright © 2012 Keith Packard <keithp@keithp.com>
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; version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 #define AO_PAD_MAX_CHANNELS 8
23 struct ao_pad_command {
30 /* Report current telefire status.
33 #define AO_PAD_QUERY 1
36 uint16_t tick; /* telefire tick */
37 uint16_t box; /* telefire box number */
38 uint8_t channels; /* which chanels are present */
39 uint8_t armed; /* which channels are armed */
40 uint8_t arm_status; /* status of arming switch */
41 uint8_t igniter_status[AO_PAD_MAX_CHANNELS]; /* status for each igniter */
44 /* Set current armed pads, report back status
49 /* Fire current armed pads for 200ms, no report
53 #define AO_PAD_FIRE_TIME AO_MS_TO_TICKS(250)
55 #define AO_PAD_ARM_STATUS_DISARMED 0
56 #define AO_PAD_ARM_STATUS_ARMED 1
57 #define AO_PAD_ARM_STATUS_UNKNOWN 2
59 #define AO_PAD_IGNITER_STATUS_NO_IGNITER_RELAY_OPEN 0
60 #define AO_PAD_IGNITER_STATUS_GOOD_IGNITER_RELAY_OPEN 1
61 #define AO_PAD_IGNITER_STATUS_NO_IGNITER_RELAY_CLOSED 2
62 #define AO_PAD_IGNITER_STATUS_UNKNOWN 3
73 #endif /* _AO_PAD_H_ */