libsbp  v2.4.7
piksi.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Swift Navigation Inc.
3  * Contact: Swift Navigation <dev@swiftnav.com>
4  *
5  * This source is subject to the license found in the file 'LICENSE' which must
6  * be be distributed together with this source. All other rights reserved.
7  *
8  * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
10  * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 
13 /*****************************************************************************
14  * Automatically generated from yaml/swiftnav/sbp/piksi.yaml
15  * with generate.py. Please do not hand edit!
16  *****************************************************************************/
17 
25 #ifndef LIBSBP_PIKSI_MESSAGES_H
26 #define LIBSBP_PIKSI_MESSAGES_H
27 
28 #include "common.h"
29 #include "gnss.h"
30 
31 SBP_PACK_START
32 
33 
39 #define SBP_MSG_ALMANAC 0x0069
40 
41 
47 #define SBP_MSG_SET_TIME 0x0068
48 
49 
55 #define SBP_MSG_RESET 0x00B6
56 typedef struct SBP_ATTR_PACKED {
58 } msg_reset_t;
59 
60 
66 #define SBP_MSG_RESET_DEP 0x00B2
67 
68 
75 #define SBP_MSG_CW_RESULTS 0x00C0
76 
77 
84 #define SBP_MSG_CW_START 0x00C1
85 
86 
92 #define SBP_MSG_RESET_FILTERS 0x0022
93 typedef struct SBP_ATTR_PACKED {
96 
97 
106 #define SBP_MSG_INIT_BASE 0x0023
107 
108 
115 #define SBP_MSG_THREAD_STATE 0x0017
116 typedef struct SBP_ATTR_PACKED {
117  char name[20];
123 
124 
131 typedef struct SBP_ATTR_PACKED {
143 
144 
154 typedef struct SBP_ATTR_PACKED {
159 } period_t;
160 
161 
170 typedef struct SBP_ATTR_PACKED {
175 } latency_t;
176 
177 
190 #define SBP_MSG_UART_STATE 0x001D
191 typedef struct SBP_ATTR_PACKED {
198 
199 
204 #define SBP_MSG_UART_STATE_DEPA 0x0018
205 typedef struct SBP_ATTR_PACKED {
211 
212 
220 #define SBP_MSG_IAR_STATE 0x0019
221 typedef struct SBP_ATTR_PACKED {
224 
225 
231 #define SBP_MSG_MASK_SATELLITE 0x002B
232 typedef struct SBP_ATTR_PACKED {
236 
237 
242 #define SBP_MSG_MASK_SATELLITE_DEP 0x001B
243 typedef struct SBP_ATTR_PACKED {
247 
248 
255 #define SBP_MSG_DEVICE_MONITOR 0x00B5
256 typedef struct SBP_ATTR_PACKED {
263 
264 
271 #define SBP_MSG_COMMAND_REQ 0x00B8
272 typedef struct SBP_ATTR_PACKED {
274  char command[0];
276 
277 
283 #define SBP_MSG_COMMAND_RESP 0x00B9
284 typedef struct SBP_ATTR_PACKED {
288 
289 
297 #define SBP_MSG_COMMAND_OUTPUT 0x00BC
298 typedef struct SBP_ATTR_PACKED {
300  char line[0];
302 
303 
309 #define SBP_MSG_NETWORK_STATE_REQ 0x00BA
310 
311 
318 #define SBP_MSG_NETWORK_STATE_RESP 0x00BB
319 typedef struct SBP_ATTR_PACKED {
320  u8 ipv4_address[4];
322  u8 ipv6_address[16];
326  char interface_name[16];
329 
330 
340 typedef struct SBP_ATTR_PACKED {
345  char interface_name[16];
347 
348 
353 #define SBP_MSG_NETWORK_BANDWIDTH_USAGE 0x00BD
354 typedef struct SBP_ATTR_PACKED {
355  network_usage_t interfaces[0];
357 
358 
365 #define SBP_MSG_CELL_MODEM_STATUS 0x00BE
366 typedef struct SBP_ATTR_PACKED {
369  u8 reserved[0];
371 
372 
377 #define SBP_MSG_SPECAN_DEP 0x0050
378 typedef struct SBP_ATTR_PACKED {
381  float freq_ref;
383  float freq_step;
389  u8 amplitude_value[0];
392 
393 
398 #define SBP_MSG_SPECAN 0x0051
399 typedef struct SBP_ATTR_PACKED {
402  float freq_ref;
404  float freq_step;
410  u8 amplitude_value[0];
412 } msg_specan_t;
413 
414 
417 SBP_PACK_END
418 
419 #endif /* LIBSBP_PIKSI_MESSAGES_H */
s32 current
Smoothed estimate of the current latency [ms].
Definition: piksi.h:174
float amplitude_unit
Amplitude unit value of points in this packet [dB].
Definition: piksi.h:408
Millisecond-accurate GPS time.
Definition: gnss.h:65
u32 flags
Reset flags.
Definition: piksi.h:57
float amplitude_ref
Reference amplitude of this packet [dB].
Definition: piksi.h:385
float amplitude_ref
Reference amplitude of this packet [dB].
Definition: piksi.h:406
u32 sequence
Sequence number.
Definition: piksi.h:299
s32 pmax
Maximum period [ms].
Definition: piksi.h:157
s32 avg
Average period [ms].
Definition: piksi.h:155
float freq_step
Frequency step of points in this packet [MHz].
Definition: piksi.h:404
u64 total_bytes
Number of bytes handled in total within period.
Definition: piksi.h:342
sbp_gnss_signal_t sid
GNSS signal for which the mask is applied.
Definition: piksi.h:234
u16 channel_tag
Channel ID.
Definition: piksi.h:400
u8 ipv6_mask_size
IPv6 netmask CIDR notation.
Definition: piksi.h:323
s32 avg
Average latency [ms].
Definition: piksi.h:171
s16 fe_temperature
Frontend temperature (if available) [degrees C / 100].
Definition: piksi.h:261
uart_channel_t uart_ftdi
State of UART FTDI (USB logger)
Definition: piksi.h:208
u16 cpu
Percentage cpu use for this thread.
Definition: piksi.h:118
float rx_throughput
UART receive throughput [kB/s].
Definition: piksi.h:133
u16 channel_tag
Channel ID.
Definition: piksi.h:379
u8 mask
Mask of systems that should ignore this satellite.
Definition: piksi.h:233
uart_channel_t uart_b
State of UART B.
Definition: piksi.h:193
u32 rx_bytes
Number of Rx bytes.
Definition: piksi.h:324
int8_t s8
Signed 8-bit integer.
Definition: common.h:32
s32 code
Exit code.
Definition: piksi.h:286
uart_channel_t uart_a
State of UART A.
Definition: piksi.h:192
Represents all the relevant information about the signal.
Definition: gnss.h:35
int16_t s16
Signed 16-bit integer.
Definition: common.h:34
s32 current
Smoothed estimate of the current period [ms].
Definition: piksi.h:158
Deprecated.
Definition: gnss.h:48
u32 sequence
Sequence number.
Definition: piksi.h:285
s16 cpu_vint
Processor V_int [V / 1000].
Definition: piksi.h:258
uint8_t u8
Unsigned 8-bit integer.
Definition: common.h:40
u8 tx_buffer_level
UART transmit buffer percentage utilization (ranges from 0 to 255)
Definition: piksi.h:136
float signal_error_rate
BER as reported by the modem, zero translates to unknown.
Definition: piksi.h:368
u32 tx_bytes
Number of Tx bytes.
Definition: piksi.h:325
u32 num_hyps
Number of integer ambiguity hypotheses remaining.
Definition: piksi.h:222
u16 io_error_count
UART IO error count.
Definition: piksi.h:135
float freq_ref
Reference frequency of this packet [MHz].
Definition: piksi.h:402
u32 stack_free
Free stack space for this thread [bytes].
Definition: piksi.h:121
u16 crc_error_count
UART CRC error count.
Definition: piksi.h:134
s32 lmax
Maximum latency [ms].
Definition: piksi.h:173
u64 duration
Duration over which the measurement was collected [ms].
Definition: piksi.h:341
gps_time_dep_t t
Receiver time of this observation.
Definition: piksi.h:380
uint64_t u64
Unsigned 64-bit integer.
Definition: common.h:46
period_t obs_period
Observation receipt period.
Definition: piksi.h:196
Bandwidth usage measurement for a single interface.
Definition: piksi.h:340
float freq_step
Frequency step of points in this packet [MHz].
Definition: piksi.h:383
float amplitude_unit
Amplitude unit value of points in this packet [dB].
Definition: piksi.h:387
u8 filter
Filter flags.
Definition: piksi.h:94
s16 cpu_temperature
Processor temperature [degrees C / 100].
Definition: piksi.h:260
sbp_gps_time_t t
Receiver time of this observation.
Definition: piksi.h:401
uint16_t u16
Unsigned 16-bit integer.
Definition: common.h:42
float tx_throughput
UART transmit throughput [kB/s].
Definition: piksi.h:132
uint32_t u32
Unsigned 32-bit integer.
Definition: common.h:44
s32 lmin
Minimum latency [ms].
Definition: piksi.h:172
float freq_ref
Reference frequency of this packet [MHz].
Definition: piksi.h:381
u32 tx_bytes
Number of bytes received within period.
Definition: piksi.h:344
s16 cpu_vaux
Processor V_aux [V / 1000].
Definition: piksi.h:259
u32 sequence
Sequence number.
Definition: piksi.h:273
Receiver-to-base station latency.
Definition: piksi.h:170
u32 flags
Interface flags from SIOCGIFFLAGS.
Definition: piksi.h:327
u8 rx_buffer_level
UART receive buffer percentage utilization (ranges from 0 to 255)
Definition: piksi.h:139
s16 dev_vin
Device V_in [V / 1000].
Definition: piksi.h:257
s32 pmin
Minimum period [ms].
Definition: piksi.h:156
Nanosecond-accurate receiver clock time.
Definition: gnss.h:90
gnss_signal_dep_t sid
GNSS signal for which the mask is applied.
Definition: piksi.h:245
uart_channel_t uart_ftdi
State of UART FTDI (USB logger)
Definition: piksi.h:194
latency_t latency
UART communication latency.
Definition: piksi.h:195
u8 ipv4_mask_size
IPv4 netmask CIDR notation.
Definition: piksi.h:321
u8 mask
Mask of systems that should ignore this satellite.
Definition: piksi.h:244
u32 rx_bytes
Number of bytes transmitted within period.
Definition: piksi.h:343
State of the UART channel.
Definition: piksi.h:131
int32_t s32
Signed 32-bit integer.
Definition: common.h:36
latency_t latency
UART communication latency.
Definition: piksi.h:209
s8 signal_strength
Received cell signal strength in dBm, zero translates to unknown [dBm].
Definition: piksi.h:367
uart_channel_t uart_b
State of UART B.
Definition: piksi.h:207
uart_channel_t uart_a
State of UART A.
Definition: piksi.h:206
base station observation message receipt period
Definition: piksi.h:154