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
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UplinkTxInfo {
    /// Frequency (Hz).
    #[prost(uint32, tag = "1")]
    pub frequency: u32,
    /// Modulation.
    #[prost(enumeration = "crate::common::Modulation", tag = "2")]
    pub modulation: i32,
    #[prost(oneof = "uplink_tx_info::ModulationInfo", tags = "3, 4")]
    pub modulation_info: ::core::option::Option<uplink_tx_info::ModulationInfo>,
}
/// Nested message and enum types in `UplinkTXInfo`.
pub mod uplink_tx_info {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ModulationInfo {
        /// LoRa modulation information.
        #[prost(message, tag = "3")]
        LoraModulationInfo(super::LoRaModulationInfo),
        /// FSK modulation information.
        #[prost(message, tag = "4")]
        FskModulationInfo(super::FskModulationInfo),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoRaModulationInfo {
    /// Bandwidth.
    #[prost(uint32, tag = "1")]
    pub bandwidth: u32,
    /// Speading-factor.
    #[prost(uint32, tag = "2")]
    pub spreading_factor: u32,
    /// Code-rate.
    #[prost(string, tag = "3")]
    pub code_rate: ::prost::alloc::string::String,
    /// Polarization inversion.
    #[prost(bool, tag = "4")]
    pub polarization_inversion: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FskModulationInfo {
    /// Frequency deviation.
    #[prost(uint32, tag = "1")]
    pub frequency_deviation: u32,
    /// FSK datarate (bits / sec).
    #[prost(uint32, tag = "2")]
    pub datarate: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EncryptedFineTimestamp {
    /// AES key index used for encrypting the fine timestamp.
    #[prost(uint32, tag = "1")]
    pub aes_key_index: u32,
    /// Encrypted 'main' fine-timestamp (ns precision part of the timestamp).
    #[prost(bytes = "vec", tag = "2")]
    pub encrypted_ns: ::prost::alloc::vec::Vec<u8>,
    /// FPGA ID.
    #[prost(bytes = "vec", tag = "3")]
    pub fpga_id: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlainFineTimestamp {
    /// Full timestamp.
    #[prost(message, optional, tag = "1")]
    pub time: ::core::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GatewayStats {
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    /// Gateway IP.
    #[prost(string, tag = "9")]
    pub ip: ::prost::alloc::string::String,
    /// Gateway time.
    #[prost(message, optional, tag = "2")]
    pub time: ::core::option::Option<::prost_types::Timestamp>,
    /// Gateway location.
    #[prost(message, optional, tag = "3")]
    pub location: ::core::option::Option<crate::common::Location>,
    /// Gateway configuration version (this maps to the config_version sent
    /// by LoRa Server to the gateway).
    #[prost(string, tag = "4")]
    pub config_version: ::prost::alloc::string::String,
    /// Number of radio packets received.
    #[prost(uint32, tag = "5")]
    pub rx_packets_received: u32,
    /// Number of radio packets received with valid PHY CRC.
    #[prost(uint32, tag = "6")]
    pub rx_packets_received_ok: u32,
    /// Number of downlink packets received for transmission.
    #[prost(uint32, tag = "7")]
    pub tx_packets_received: u32,
    /// Number of downlink packets emitted.
    #[prost(uint32, tag = "8")]
    pub tx_packets_emitted: u32,
    /// Additional gateway meta-data.
    #[prost(map = "string, string", tag = "10")]
    pub meta_data:
        ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
    /// Stats ID (UUID).
    /// Unique identifier for the gateway stats.
    #[prost(bytes = "vec", tag = "11")]
    pub stats_id: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UplinkRxInfo {
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    /// RX time (only set when the gateway has a GPS module).
    #[prost(message, optional, tag = "2")]
    pub time: ::core::option::Option<::prost_types::Timestamp>,
    /// RX time since GPS epoch (only set when the gateway has a GPS module).
    #[prost(message, optional, tag = "3")]
    pub time_since_gps_epoch: ::core::option::Option<::prost_types::Duration>,
    /// RSSI.
    #[prost(int32, tag = "5")]
    pub rssi: i32,
    /// LoRa SNR.
    #[prost(double, tag = "6")]
    pub lora_snr: f64,
    /// Channel.
    #[prost(uint32, tag = "7")]
    pub channel: u32,
    /// RF Chain.
    #[prost(uint32, tag = "8")]
    pub rf_chain: u32,
    /// Board.
    #[prost(uint32, tag = "9")]
    pub board: u32,
    /// Antenna.
    #[prost(uint32, tag = "10")]
    pub antenna: u32,
    /// Location.
    #[prost(message, optional, tag = "11")]
    pub location: ::core::option::Option<crate::common::Location>,
    /// Fine-timestamp type.
    #[prost(enumeration = "FineTimestampType", tag = "12")]
    pub fine_timestamp_type: i32,
    /// Gateway specific context.
    #[prost(bytes = "vec", tag = "15")]
    pub context: ::prost::alloc::vec::Vec<u8>,
    /// Uplink ID (UUID bytes).
    /// Unique and random ID which can be used to correlate the uplink across multiple logs.
    #[prost(bytes = "vec", tag = "16")]
    pub uplink_id: ::prost::alloc::vec::Vec<u8>,
    /// CRC status.
    #[prost(enumeration = "CrcStatus", tag = "17")]
    pub crc_status: i32,
    /// Fine-timestamp data.
    #[prost(oneof = "uplink_rx_info::FineTimestamp", tags = "13, 14")]
    pub fine_timestamp: ::core::option::Option<uplink_rx_info::FineTimestamp>,
}
/// Nested message and enum types in `UplinkRXInfo`.
pub mod uplink_rx_info {
    /// Fine-timestamp data.
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum FineTimestamp {
        /// Encrypted fine-timestamp data.
        #[prost(message, tag = "13")]
        EncryptedFineTimestamp(super::EncryptedFineTimestamp),
        /// Plain fine-timestamp data.
        #[prost(message, tag = "14")]
        PlainFineTimestamp(super::PlainFineTimestamp),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DownlinkTxInfo {
    /// Gateway ID.
    /// Deprecated: replaced by gateway_id in DownlinkFrame.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    /// TX frequency (in Hz).
    #[prost(uint32, tag = "5")]
    pub frequency: u32,
    /// TX power (in dBm).
    #[prost(int32, tag = "6")]
    pub power: i32,
    /// Modulation.
    #[prost(enumeration = "crate::common::Modulation", tag = "7")]
    pub modulation: i32,
    /// The board identifier for emitting the frame.
    #[prost(uint32, tag = "10")]
    pub board: u32,
    /// The antenna identifier for emitting the frame.
    #[prost(uint32, tag = "11")]
    pub antenna: u32,
    /// Timing defines the downlink timing to use.
    #[prost(enumeration = "DownlinkTiming", tag = "12")]
    pub timing: i32,
    /// Gateway specific context.
    /// In case of a Class-A downlink, this contains a copy of the uplink context.
    #[prost(bytes = "vec", tag = "16")]
    pub context: ::prost::alloc::vec::Vec<u8>,
    #[prost(oneof = "downlink_tx_info::ModulationInfo", tags = "8, 9")]
    pub modulation_info: ::core::option::Option<downlink_tx_info::ModulationInfo>,
    #[prost(oneof = "downlink_tx_info::TimingInfo", tags = "13, 14, 15")]
    pub timing_info: ::core::option::Option<downlink_tx_info::TimingInfo>,
}
/// Nested message and enum types in `DownlinkTXInfo`.
pub mod downlink_tx_info {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ModulationInfo {
        /// LoRa modulation information.
        #[prost(message, tag = "8")]
        LoraModulationInfo(super::LoRaModulationInfo),
        /// FSK modulation information.
        #[prost(message, tag = "9")]
        FskModulationInfo(super::FskModulationInfo),
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum TimingInfo {
        /// Immediately timing information.
        #[prost(message, tag = "13")]
        ImmediatelyTimingInfo(super::ImmediatelyTimingInfo),
        /// Context based delay timing information.
        #[prost(message, tag = "14")]
        DelayTimingInfo(super::DelayTimingInfo),
        /// GPS Epoch timing information.
        #[prost(message, tag = "15")]
        GpsEpochTimingInfo(super::GpsEpochTimingInfo),
    }
}
/// Not implemented yet.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ImmediatelyTimingInfo {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DelayTimingInfo {
    /// Delay (duration).
    /// The delay will be added to the gateway internal timing, provided by the context object.
    #[prost(message, optional, tag = "1")]
    pub delay: ::core::option::Option<::prost_types::Duration>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GpsEpochTimingInfo {
    /// Duration since GPS Epoch.
    #[prost(message, optional, tag = "1")]
    pub time_since_gps_epoch: ::core::option::Option<::prost_types::Duration>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UplinkFrame {
    /// PHYPayload.
    #[prost(bytes = "vec", tag = "1")]
    pub phy_payload: ::prost::alloc::vec::Vec<u8>,
    /// TX meta-data.
    #[prost(message, optional, tag = "2")]
    pub tx_info: ::core::option::Option<UplinkTxInfo>,
    /// RX meta-data.
    #[prost(message, optional, tag = "3")]
    pub rx_info: ::core::option::Option<UplinkRxInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UplinkFrameSet {
    /// PHYPayload.
    #[prost(bytes = "vec", tag = "1")]
    pub phy_payload: ::prost::alloc::vec::Vec<u8>,
    /// TX meta-data.
    #[prost(message, optional, tag = "2")]
    pub tx_info: ::core::option::Option<UplinkTxInfo>,
    /// RX meta-data set.
    #[prost(message, repeated, tag = "3")]
    pub rx_info: ::prost::alloc::vec::Vec<UplinkRxInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DownlinkFrame {
    /// PHYPayload.
    /// Deprecated: replaced by items.
    #[prost(bytes = "vec", tag = "1")]
    pub phy_payload: ::prost::alloc::vec::Vec<u8>,
    /// TX meta-data.
    /// Deprecated: replaced by items.
    #[prost(message, optional, tag = "2")]
    pub tx_info: ::core::option::Option<DownlinkTxInfo>,
    /// Token (uint16 value).
    /// Deprecated: replaced by downlink_id.
    #[prost(uint32, tag = "3")]
    pub token: u32,
    /// Downlink ID (UUID).
    #[prost(bytes = "vec", tag = "4")]
    pub downlink_id: ::prost::alloc::vec::Vec<u8>,
    /// Downlink frame items.
    /// This makes it possible to send multiple downlink opportunities to the
    /// gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the
    /// highest priority, the last the lowest. The gateway will emit at most
    /// one item.
    #[prost(message, repeated, tag = "5")]
    pub items: ::prost::alloc::vec::Vec<DownlinkFrameItem>,
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "6")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DownlinkFrameItem {
    /// PHYPayload.
    #[prost(bytes = "vec", tag = "1")]
    pub phy_payload: ::prost::alloc::vec::Vec<u8>,
    /// TX meta-data.
    #[prost(message, optional, tag = "2")]
    pub tx_info: ::core::option::Option<DownlinkTxInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DownlinkTxAck {
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    /// Token (uint16 value).
    /// Deprecated: replaced by downlink_id.
    #[prost(uint32, tag = "2")]
    pub token: u32,
    /// Error.
    /// Deprecated: replaced by items.
    #[prost(string, tag = "3")]
    pub error: ::prost::alloc::string::String,
    /// Downlink ID (UUID).
    #[prost(bytes = "vec", tag = "4")]
    pub downlink_id: ::prost::alloc::vec::Vec<u8>,
    /// Downlink frame items.
    /// This list has the same length as the request and indicates which
    /// downlink frame has been emitted of the requested list (or why it failed).
    /// Note that at most one item has a positive acknowledgement.
    #[prost(message, repeated, tag = "5")]
    pub items: ::prost::alloc::vec::Vec<DownlinkTxAckItem>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DownlinkTxAckItem {
    /// The Ack status of this item.
    #[prost(enumeration = "TxAckStatus", tag = "1")]
    pub status: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GatewayConfiguration {
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    /// Configuration version.
    #[prost(string, tag = "2")]
    pub version: ::prost::alloc::string::String,
    /// Channels.
    #[prost(message, repeated, tag = "3")]
    pub channels: ::prost::alloc::vec::Vec<ChannelConfiguration>,
    /// Stats interval.
    #[prost(message, optional, tag = "4")]
    pub stats_interval: ::core::option::Option<::prost_types::Duration>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChannelConfiguration {
    /// Frequency (Hz).
    #[prost(uint32, tag = "1")]
    pub frequency: u32,
    /// Channel modulation.
    #[prost(enumeration = "crate::common::Modulation", tag = "2")]
    pub modulation: i32,
    /// Board index.
    #[prost(uint32, tag = "5")]
    pub board: u32,
    /// Demodulator index (of the given board).
    #[prost(uint32, tag = "6")]
    pub demodulator: u32,
    #[prost(oneof = "channel_configuration::ModulationConfig", tags = "3, 4")]
    pub modulation_config: ::core::option::Option<channel_configuration::ModulationConfig>,
}
/// Nested message and enum types in `ChannelConfiguration`.
pub mod channel_configuration {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ModulationConfig {
        /// LoRa modulation config.
        #[prost(message, tag = "3")]
        LoraModulationConfig(super::LoRaModulationConfig),
        /// FSK modulation config.
        #[prost(message, tag = "4")]
        FskModulationConfig(super::FskModulationConfig),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoRaModulationConfig {
    /// Bandwidth.
    #[prost(uint32, tag = "1")]
    pub bandwidth: u32,
    /// Spreading-factors.
    #[prost(uint32, repeated, tag = "2")]
    pub spreading_factors: ::prost::alloc::vec::Vec<u32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FskModulationConfig {
    /// Bandwidth.
    #[prost(uint32, tag = "1")]
    pub bandwidth: u32,
    /// Bitrate.
    #[prost(uint32, tag = "2")]
    pub bitrate: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GatewayCommandExecRequest {
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    /// Command to execute.
    /// This command must be pre-configured in the LoRa Gateway Bridge configuration.
    #[prost(string, tag = "2")]
    pub command: ::prost::alloc::string::String,
    /// Execution request ID (UUID).
    /// The same token will be returned when the execution of the command has
    /// completed.
    #[prost(bytes = "vec", tag = "3")]
    pub exec_id: ::prost::alloc::vec::Vec<u8>,
    /// Standard input.
    #[prost(bytes = "vec", tag = "4")]
    pub stdin: ::prost::alloc::vec::Vec<u8>,
    /// Environment variables.
    #[prost(map = "string, string", tag = "5")]
    pub environment:
        ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GatewayCommandExecResponse {
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    /// Execution request ID (UUID).
    #[prost(bytes = "vec", tag = "2")]
    pub exec_id: ::prost::alloc::vec::Vec<u8>,
    /// Standard output.
    #[prost(bytes = "vec", tag = "3")]
    pub stdout: ::prost::alloc::vec::Vec<u8>,
    /// Standard error.
    #[prost(bytes = "vec", tag = "4")]
    pub stderr: ::prost::alloc::vec::Vec<u8>,
    /// Error message.
    #[prost(string, tag = "5")]
    pub error: ::prost::alloc::string::String,
}
/// RawPacketForwarderEvent contains a raw packet-forwarder event.
/// It can be used to access packet-forwarder features that are not (fully)
/// integrated with the ChirpStack Gateway Bridge.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RawPacketForwarderEvent {
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    /// Raw ID (UUID).
    #[prost(bytes = "vec", tag = "2")]
    pub raw_id: ::prost::alloc::vec::Vec<u8>,
    /// Payload contains the raw payload.
    #[prost(bytes = "vec", tag = "3")]
    pub payload: ::prost::alloc::vec::Vec<u8>,
}
/// RawPacketForwarderEvent contains a raw packet-forwarder command.
/// It can be used to access packet-forwarder features that are not (fully)
/// integrated with the ChirpStack Gateway Bridge.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RawPacketForwarderCommand {
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    /// Raw ID (UUID).
    #[prost(bytes = "vec", tag = "2")]
    pub raw_id: ::prost::alloc::vec::Vec<u8>,
    /// Payload contains the raw payload.
    #[prost(bytes = "vec", tag = "3")]
    pub payload: ::prost::alloc::vec::Vec<u8>,
}
/// ConnState contains the connection state of a gateway.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnState {
    /// Gateway ID.
    #[prost(bytes = "vec", tag = "1")]
    pub gateway_id: ::prost::alloc::vec::Vec<u8>,
    #[prost(enumeration = "conn_state::State", tag = "2")]
    pub state: i32,
}
/// Nested message and enum types in `ConnState`.
pub mod conn_state {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum State {
        Offline = 0,
        Online = 1,
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DownlinkTiming {
    /// Send the downlink immediately.
    Immediately = 0,
    /// Send downlink at the given delay (based on provided context).
    Delay = 1,
    /// Send at given GPS epoch value.
    GpsEpoch = 2,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum FineTimestampType {
    /// No fine-timestamp available.
    None = 0,
    /// Encrypted fine-timestamp.
    Encrypted = 1,
    /// Plain fine-timestamp.
    Plain = 2,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CrcStatus {
    /// No CRC.
    NoCrc = 0,
    /// Bad CRC.
    BadCrc = 1,
    /// CRC OK.
    CrcOk = 2,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TxAckStatus {
    /// Ignored (when a previous item was already emitted).
    Ignored = 0,
    /// Packet has been programmed for downlink.
    Ok = 1,
    /// Rejected because it was already too late to program this packet for downlink.
    TooLate = 2,
    /// Rejected because downlink packet timestamp is too much in advance.
    TooEarly = 3,
    /// Rejected because there was already a packet programmed in requested timeframe.
    CollisionPacket = 4,
    /// Rejected because there was already a beacon planned in requested timeframe.
    CollisionBeacon = 5,
    /// Rejected because requested frequency is not supported by TX RF chain.
    TxFreq = 6,
    /// Rejected because requested power is not supported by gateway.
    TxPower = 7,
    /// Rejected because GPS is unlocked, so GPS timestamp cannot be used.
    GpsUnlocked = 8,
    /// Downlink queue is full.
    QueueFull = 9,
    /// Internal error.
    InternalError = 10,
}