-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_events.h
48 lines (40 loc) · 1.6 KB
/
ext_events.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
/*
* Copyright (C) 2015-2018 Swift Navigation Inc.
* Contact: Swift Navigation <[email protected]>
*
* This source is subject to the license found in the file 'LICENSE' which must
* be be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/
/*****************************************************************************
* Automatically generated from yaml/swiftnav/sbp/ext_events.yaml
* with generate.py. Please do not hand edit!
*****************************************************************************/
/** \defgroup ext_events Ext_events
*
* * Messages reporting accurately-timestamped external events,
* e.g. camera shutter time.
* \{ */
#ifndef LIBSBP_EXT_EVENTS_MESSAGES_H
#define LIBSBP_EXT_EVENTS_MESSAGES_H
#include "common.h"
/** Reports timestamped external pin event
*
* Reports detection of an external event, the GPS time it occurred,
* which pin it was and whether it was rising or falling.
*/
#define SBP_MSG_EXT_EVENT 0x0101
typedef struct {
u16 wn; /**< GPS week number [weeks] */
u32 tow; /**< GPS time of week rounded to the nearest millisecond [ms] */
s32 ns_residual; /**< Nanosecond residual of millisecond-rounded TOW (ranges
from -500000 to 500000)
[ns] */
u8 flags; /**< Flags */
u8 pin; /**< Pin number. 0..9 = DEBUG0..9. */
} msg_ext_event_t;
/** \} */
#endif /* LIBSBP_EXT_EVENTS_MESSAGES_H */