-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathndb.h
60 lines (52 loc) · 2.14 KB
/
ndb.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
/*
* 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/ndb.yaml
* with generate.py. Please do not hand edit!
*****************************************************************************/
/** \defgroup ndb Ndb
*
* * Messages for logging NDB events.
* \{ */
#ifndef LIBSBP_NDB_MESSAGES_H
#define LIBSBP_NDB_MESSAGES_H
#include "common.h"
#include "gnss.h"
/** Navigation DataBase Event
*
* This message is sent out when an object is stored into NDB. If needed
* message could also be sent out when fetching an object from NDB.
*/
#define SBP_MSG_NDB_EVENT 0x0400
typedef struct {
u64 recv_time; /**< HW time in milliseconds. [ms] */
u8 event; /**< Event type. */
u8 object_type; /**< Event object type. */
u8 result; /**< Event result. */
u8 data_source; /**< Data source for STORE event, reserved for other events. */
sbp_gnss_signal_t object_sid; /**< GNSS signal identifier,
If object_type is Ephemeris OR Almanac, sid indicates for which
signal the object belongs to. Reserved in other cases.
*/
sbp_gnss_signal_t src_sid; /**< GNSS signal identifier,
If object_type is Almanac, Almanac WN, Iono OR L2C capabilities
AND data_source is NDB_DS_RECEIVER sid indicates from which SV
data was decoded. Reserved in other cases.
*/
u16 original_sender; /**< A unique identifier of the sending hardware. For v1.0,
set to the 2 least significant bytes of the device serial
number, valid only if data_source is NDB_DS_SBP. Reserved in case
of other data_source.
*/
} msg_ndb_event_t;
/** \} */
#endif /* LIBSBP_NDB_MESSAGES_H */