30 changed files with 4493 additions and 283 deletions
@ -0,0 +1,187 @@
@@ -0,0 +1,187 @@
|
||||
MeshtasticDemodSettings: |
||||
description: MeshtasticDemod |
||||
properties: |
||||
inputFrequencyOffset: |
||||
type: integer |
||||
format: int64 |
||||
bandwidthIndex: |
||||
type: integer |
||||
description: > |
||||
standard bandwidths index: |
||||
* 0 - 375 Hz (384000 / 1024) |
||||
* 1 - 750 Hz (384000 / 512) |
||||
* 2 - 1500 Hz (384000 / 256) |
||||
* 3 - 2604 Hz (333333 / 128) |
||||
* 4 - 3125 Hz (400000 / 128) |
||||
* 5 - 3906 Hz (500000 / 128) |
||||
* 6 - 5208 Hz (333333 / 64) |
||||
* 7 - 6250 Hz (400000 / 64) |
||||
* 8 - 7813 Hz (500000 / 64) |
||||
* 9 - 10417 Hz (333333 / 32) |
||||
* 10 - 12500 Hz (400000 / 32) |
||||
* 11 - 15625 Hz (500000 / 32) |
||||
* 12 - 20833 Hz (333333 / 16) |
||||
* 13 - 25000 Hz (400000 / 16) |
||||
* 14 - 31250 Hz (500000 / 16) |
||||
* 15 - 41667 Hz (333333 / 8) |
||||
* 16 - 50000 Hz (400000 / 8) |
||||
* 17 - 62500 Hz (500000 / 8) |
||||
* 18 - 83333 Hz (333333 / 4) |
||||
* 19 - 100000 Hz (400000 / 4) |
||||
* 20 - 125000 Hz (500000 / 4) |
||||
* 21 - 166667 Hz (333333 / 2) |
||||
* 22 - 200000 Hz (400000 / 2) |
||||
* 23 - 250000 Hz (500000 / 2) |
||||
* 24 - 333333 Hz (333333 / 1) |
||||
* 25 - 400000 Hz (400000 / 1) |
||||
* 26 - 500000 Hz (500000 / 1) |
||||
spreadFactor: |
||||
type: integer |
||||
deBits: |
||||
description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol |
||||
type: integer |
||||
decodeActive: |
||||
description: boolean 1 to activate 0 to de-activate decoder |
||||
type: integer |
||||
eomSquelchTenths: |
||||
description: argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10 |
||||
type: integer |
||||
nbSymbolsMax: |
||||
description: expected maximum number of symbols in a payload |
||||
type: integer |
||||
preambleChirps: |
||||
description: Number of expected preamble chirps |
||||
type: integer |
||||
nbParityBits: |
||||
description: Hamming FEC parity bits (LoRa) |
||||
type: integer |
||||
packetLength: |
||||
description: expected packet length in number of bytes (LoRa) |
||||
type: integer |
||||
sendViaUDP: |
||||
description: boolean 1 to send decoded message via UDP else 0 |
||||
type: integer |
||||
udpEnabled: |
||||
type: integer |
||||
description: > |
||||
Boolean - Send via UDP |
||||
* 0 - Do not send decoded messages via UDP |
||||
* 1 - Send decoded messages via UDP |
||||
udpAddress: |
||||
description: UDP destination udpAddress |
||||
type: string |
||||
udpPort: |
||||
description: UDP destination port |
||||
type: integer |
||||
invertRamps: |
||||
type: integer |
||||
description: > |
||||
Invert chirp ramps |
||||
* 0 - Normal chirp ramps (upchirps for preamble and payload) |
||||
* 1 - Inverted chirp ramps (downchirps for preamble and payload) |
||||
rgbColor: |
||||
type: integer |
||||
title: |
||||
type: string |
||||
streamIndex: |
||||
description: MIMO channel. Not relevant when connected to SI (single Rx). |
||||
type: integer |
||||
useReverseAPI: |
||||
description: Synchronize with reverse API (1 for yes, 0 for no) |
||||
type: integer |
||||
reverseAPIAddress: |
||||
type: string |
||||
reverseAPIPort: |
||||
type: integer |
||||
reverseAPIDeviceIndex: |
||||
type: integer |
||||
reverseAPIChannelIndex: |
||||
type: integer |
||||
spectrumConfig: |
||||
$ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" |
||||
channelMarker: |
||||
$ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" |
||||
rollupState: |
||||
$ref: "/doc/swagger/include/RollupState.yaml#/RollupState" |
||||
|
||||
MeshtasticDemodReport: |
||||
description: MeshtasticDemod |
||||
properties: |
||||
channelPowerDB: |
||||
description: current de-chirped total channel power (dB) |
||||
type: number |
||||
format: float |
||||
noisePowerDB: |
||||
description: current de-chirped noise argmax power (dB) |
||||
type: number |
||||
format: float |
||||
signalPowerDB: |
||||
description: last message de-chirped signal argmax power (dB) |
||||
type: number |
||||
format: float |
||||
snrPowerDB: |
||||
description: last message de-chirped signal to noise ratio power (dB) |
||||
type: number |
||||
format: float |
||||
channelSampleRate: |
||||
type: integer |
||||
syncWord: |
||||
description: 2 bytes sync word (0..65535) |
||||
type: integer |
||||
nbParityBits: |
||||
description: Hamming FEC parity bits (LoRa) |
||||
type: integer |
||||
packetLength: |
||||
description: Packet length in number of bytes (LoRa) |
||||
type: integer |
||||
nbSymbols: |
||||
description: Number of symbols in the payload with header and CRC (LoRa) |
||||
type: integer |
||||
nbCodewords: |
||||
description: Number of codewords in the payload with header and CRC (LoRa) |
||||
type: integer |
||||
headerParityStatus: |
||||
type: integer |
||||
description: > |
||||
Header FEC parity status: |
||||
* 0 - Undefined |
||||
* 1 - Uncorrectable error |
||||
* 2 - Corrected error |
||||
* 3 - OK |
||||
headerCRCStatus: |
||||
description: header CRC check status. Boolean 1 if OK else 0 |
||||
type: integer |
||||
payloadParityStatus: |
||||
type: integer |
||||
description: > |
||||
Payload FEC parity status: |
||||
* 0 - Undefined |
||||
* 1 - Uncorrectable error |
||||
* 2 - Corrected error |
||||
* 3 - OK |
||||
payloadCRCStatus: |
||||
description: payload CRC check status. Boolean 1 if OK else 0 |
||||
type: integer |
||||
messageTimestamp: |
||||
description: timestamp of the last decoded message |
||||
type: string |
||||
messageString: |
||||
description: string representation of the last decoded message |
||||
type: string |
||||
frameType: |
||||
description: frame type shown in the GUI tree view (for example LORA_FRAME or POSITION_APP) |
||||
type: string |
||||
channelType: |
||||
description: Channel type code e.g. LONG_FAST |
||||
type: string |
||||
messageBytes: |
||||
description: bytes of the last decoded message as an array of hex string represented bytes (00..FF) |
||||
type: array |
||||
items: |
||||
type: string |
||||
decoding: |
||||
type: integer |
||||
description: > |
||||
Boolean - decoding status |
||||
* 0 - no decoding |
||||
* 1 - decoding |
||||
@ -0,0 +1,128 @@
@@ -0,0 +1,128 @@
|
||||
MeshtasticModSettings: |
||||
description: MeshtasticMod |
||||
properties: |
||||
inputFrequencyOffset: |
||||
type: integer |
||||
format: int64 |
||||
bandwidthIndex: |
||||
type: integer |
||||
description: > |
||||
standard bandwidths index: |
||||
* 0 - 375 Hz (384000 / 1024) |
||||
* 1 - 750 Hz (384000 / 512) |
||||
* 2 - 1500 Hz (384000 / 256) |
||||
* 3 - 2604 Hz (333333 / 128) |
||||
* 4 - 3125 Hz (400000 / 128) |
||||
* 5 - 3906 Hz (500000 / 128) |
||||
* 6 - 5208 Hz (333333 / 64) |
||||
* 7 - 6250 Hz (400000 / 64) |
||||
* 8 - 7813 Hz (500000 / 64) |
||||
* 9 - 10417 Hz (333333 / 32) |
||||
* 10 - 12500 Hz (400000 / 32) |
||||
* 11 - 15625 Hz (500000 / 32) |
||||
* 12 - 20833 Hz (333333 / 16) |
||||
* 13 - 25000 Hz (400000 / 16) |
||||
* 14 - 31250 Hz (500000 / 16) |
||||
* 15 - 41667 Hz (333333 / 8) |
||||
* 16 - 50000 Hz (400000 / 8) |
||||
* 17 - 62500 Hz (500000 / 8) |
||||
* 18 - 83333 Hz (333333 / 4) |
||||
* 19 - 100000 Hz (400000 / 4) |
||||
* 20 - 125000 Hz (500000 / 4) |
||||
* 21 - 166667 Hz (333333 / 2) |
||||
* 22 - 200000 Hz (400000 / 2) |
||||
* 23 - 250000 Hz (500000 / 2) |
||||
* 24 - 333333 Hz (333333 / 1) |
||||
* 25 - 400000 Hz (400000 / 1) |
||||
* 26 - 500000 Hz (500000 / 1) |
||||
spreadFactor: |
||||
type: integer |
||||
deBits: |
||||
description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol |
||||
type: integer |
||||
preambleChirps: |
||||
description: Number of preamble chirps |
||||
type: integer |
||||
quietMillis: |
||||
description: Number of milliseconds to pause between transmissions |
||||
type: integer |
||||
syncWord: |
||||
description: 2 byte (0..65535) synchronization syncWord |
||||
type: integer |
||||
channelMute: |
||||
description: boolean |
||||
type: integer |
||||
nbParityBits: |
||||
description: Hamming FEC parity bits (LoRa) |
||||
type: integer |
||||
textMessage: |
||||
description: freeform text message |
||||
type: string |
||||
messageRepeat: |
||||
description: number of repetitions of the same message (0 for infinite) |
||||
type: integer |
||||
udpEnabled: |
||||
description: boolean 1 to enable forwarding messages via UDP else 0 |
||||
type: integer |
||||
udpAddress: |
||||
description: UDP address to listen for messages to transmit on |
||||
type: string |
||||
udpPort: |
||||
description: UDP port to listen for messages to transmit on |
||||
type: integer |
||||
invertRamps: |
||||
type: integer |
||||
description: > |
||||
Invert chirp ramps |
||||
* 0 - Normal chirp ramps (upchirps for preamble and payload) |
||||
* 1 - Inverted chirp ramps (downchirps for preamble and payload) |
||||
rgbColor: |
||||
type: integer |
||||
title: |
||||
type: string |
||||
streamIndex: |
||||
description: MIMO channel. Not relevant when connected to SI (single Rx). |
||||
type: integer |
||||
useReverseAPI: |
||||
description: Synchronize with reverse API (1 for yes, 0 for no) |
||||
type: integer |
||||
reverseAPIAddress: |
||||
type: string |
||||
reverseAPIPort: |
||||
type: integer |
||||
reverseAPIDeviceIndex: |
||||
type: integer |
||||
reverseAPIChannelIndex: |
||||
type: integer |
||||
channelMarker: |
||||
$ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" |
||||
rollupState: |
||||
$ref: "/doc/swagger/include/RollupState.yaml#/RollupState" |
||||
|
||||
MeshtasticModReport: |
||||
description: MeshtasticMod |
||||
properties: |
||||
channelPowerDB: |
||||
description: power transmitted in channel (dB) |
||||
type: number |
||||
format: float |
||||
channelSampleRate: |
||||
type: integer |
||||
symbolTimeMs: |
||||
description: symbol duration (ms) |
||||
type: number |
||||
format: float |
||||
payloadTimeMs: |
||||
description: payload duration (ms) |
||||
type: number |
||||
format: float |
||||
totalTimeMs: |
||||
description: total message duration inc. preamble and SFD (ms) |
||||
type: number |
||||
format: float |
||||
playing: |
||||
type: integer |
||||
description: > |
||||
Boolean - modulator is active (playing) including idle time |
||||
* 0 - Modulator not active |
||||
* 1 - Modulator active |
||||
@ -0,0 +1,187 @@
@@ -0,0 +1,187 @@
|
||||
MeshtasticDemodSettings: |
||||
description: MeshtasticDemod |
||||
properties: |
||||
inputFrequencyOffset: |
||||
type: integer |
||||
format: int64 |
||||
bandwidthIndex: |
||||
type: integer |
||||
description: > |
||||
standard bandwidths index: |
||||
* 0 - 375 Hz (384000 / 1024) |
||||
* 1 - 750 Hz (384000 / 512) |
||||
* 2 - 1500 Hz (384000 / 256) |
||||
* 3 - 2604 Hz (333333 / 128) |
||||
* 4 - 3125 Hz (400000 / 128) |
||||
* 5 - 3906 Hz (500000 / 128) |
||||
* 6 - 5208 Hz (333333 / 64) |
||||
* 7 - 6250 Hz (400000 / 64) |
||||
* 8 - 7813 Hz (500000 / 64) |
||||
* 9 - 10417 Hz (333333 / 32) |
||||
* 10 - 12500 Hz (400000 / 32) |
||||
* 11 - 15625 Hz (500000 / 32) |
||||
* 12 - 20833 Hz (333333 / 16) |
||||
* 13 - 25000 Hz (400000 / 16) |
||||
* 14 - 31250 Hz (500000 / 16) |
||||
* 15 - 41667 Hz (333333 / 8) |
||||
* 16 - 50000 Hz (400000 / 8) |
||||
* 17 - 62500 Hz (500000 / 8) |
||||
* 18 - 83333 Hz (333333 / 4) |
||||
* 19 - 100000 Hz (400000 / 4) |
||||
* 20 - 125000 Hz (500000 / 4) |
||||
* 21 - 166667 Hz (333333 / 2) |
||||
* 22 - 200000 Hz (400000 / 2) |
||||
* 23 - 250000 Hz (500000 / 2) |
||||
* 24 - 333333 Hz (333333 / 1) |
||||
* 25 - 400000 Hz (400000 / 1) |
||||
* 26 - 500000 Hz (500000 / 1) |
||||
spreadFactor: |
||||
type: integer |
||||
deBits: |
||||
description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol |
||||
type: integer |
||||
decodeActive: |
||||
description: boolean 1 to activate 0 to de-activate decoder |
||||
type: integer |
||||
eomSquelchTenths: |
||||
description: argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10 |
||||
type: integer |
||||
nbSymbolsMax: |
||||
description: expected maximum number of symbols in a payload |
||||
type: integer |
||||
preambleChirps: |
||||
description: Number of expected preamble chirps |
||||
type: integer |
||||
nbParityBits: |
||||
description: Hamming FEC parity bits (LoRa) |
||||
type: integer |
||||
packetLength: |
||||
description: expected packet length in number of bytes (LoRa) |
||||
type: integer |
||||
sendViaUDP: |
||||
description: boolean 1 to send decoded message via UDP else 0 |
||||
type: integer |
||||
udpEnabled: |
||||
type: integer |
||||
description: > |
||||
Boolean - Send via UDP |
||||
* 0 - Do not send decoded messages via UDP |
||||
* 1 - Send decoded messages via UDP |
||||
udpAddress: |
||||
description: UDP destination udpAddress |
||||
type: string |
||||
udpPort: |
||||
description: UDP destination port |
||||
type: integer |
||||
invertRamps: |
||||
type: integer |
||||
description: > |
||||
Invert chirp ramps |
||||
* 0 - Normal chirp ramps (upchirps for preamble and payload) |
||||
* 1 - Inverted chirp ramps (downchirps for preamble and payload) |
||||
rgbColor: |
||||
type: integer |
||||
title: |
||||
type: string |
||||
streamIndex: |
||||
description: MIMO channel. Not relevant when connected to SI (single Rx). |
||||
type: integer |
||||
useReverseAPI: |
||||
description: Synchronize with reverse API (1 for yes, 0 for no) |
||||
type: integer |
||||
reverseAPIAddress: |
||||
type: string |
||||
reverseAPIPort: |
||||
type: integer |
||||
reverseAPIDeviceIndex: |
||||
type: integer |
||||
reverseAPIChannelIndex: |
||||
type: integer |
||||
spectrumConfig: |
||||
$ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" |
||||
channelMarker: |
||||
$ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" |
||||
rollupState: |
||||
$ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" |
||||
|
||||
MeshtasticDemodReport: |
||||
description: MeshtasticDemod |
||||
properties: |
||||
channelPowerDB: |
||||
description: current de-chirped total channel power (dB) |
||||
type: number |
||||
format: float |
||||
noisePowerDB: |
||||
description: current de-chirped noise argmax power (dB) |
||||
type: number |
||||
format: float |
||||
signalPowerDB: |
||||
description: last message de-chirped signal argmax power (dB) |
||||
type: number |
||||
format: float |
||||
snrPowerDB: |
||||
description: last message de-chirped signal to noise ratio power (dB) |
||||
type: number |
||||
format: float |
||||
channelSampleRate: |
||||
type: integer |
||||
syncWord: |
||||
description: 2 bytes sync word (0..65535) |
||||
type: integer |
||||
nbParityBits: |
||||
description: Hamming FEC parity bits (LoRa) |
||||
type: integer |
||||
packetLength: |
||||
description: Packet length in number of bytes (LoRa) |
||||
type: integer |
||||
nbSymbols: |
||||
description: Number of symbols in the payload with header and CRC (LoRa) |
||||
type: integer |
||||
nbCodewords: |
||||
description: Number of codewords in the payload with header and CRC (LoRa) |
||||
type: integer |
||||
headerParityStatus: |
||||
type: integer |
||||
description: > |
||||
Header FEC parity status: |
||||
* 0 - Undefined |
||||
* 1 - Uncorrectable error |
||||
* 2 - Corrected error |
||||
* 3 - OK |
||||
headerCRCStatus: |
||||
description: header CRC check status. Boolean 1 if OK else 0 |
||||
type: integer |
||||
payloadParityStatus: |
||||
type: integer |
||||
description: > |
||||
Payload FEC parity status: |
||||
* 0 - Undefined |
||||
* 1 - Uncorrectable error |
||||
* 2 - Corrected error |
||||
* 3 - OK |
||||
payloadCRCStatus: |
||||
description: payload CRC check status. Boolean 1 if OK else 0 |
||||
type: integer |
||||
messageTimestamp: |
||||
description: timestamp of the last decoded message |
||||
type: string |
||||
messageString: |
||||
description: string representation of the last decoded message |
||||
type: string |
||||
frameType: |
||||
description: frame type shown in the GUI tree view (for example LORA_FRAME or POSITION_APP) |
||||
type: string |
||||
channelType: |
||||
description: Channel type code e.g. LONG_FAST |
||||
type: string |
||||
messageBytes: |
||||
description: bytes of the last decoded message as an array of hex string represented bytes (00..FF) |
||||
type: array |
||||
items: |
||||
type: string |
||||
decoding: |
||||
type: integer |
||||
description: > |
||||
Boolean - decoding status |
||||
* 0 - no decoding |
||||
* 1 - decoding |
||||
@ -0,0 +1,128 @@
@@ -0,0 +1,128 @@
|
||||
MeshtasticModSettings: |
||||
description: MeshtasticMod |
||||
properties: |
||||
inputFrequencyOffset: |
||||
type: integer |
||||
format: int64 |
||||
bandwidthIndex: |
||||
type: integer |
||||
description: > |
||||
standard bandwidths index: |
||||
* 0 - 375 Hz (384000 / 1024) |
||||
* 1 - 750 Hz (384000 / 512) |
||||
* 2 - 1500 Hz (384000 / 256) |
||||
* 3 - 2604 Hz (333333 / 128) |
||||
* 4 - 3125 Hz (400000 / 128) |
||||
* 5 - 3906 Hz (500000 / 128) |
||||
* 6 - 5208 Hz (333333 / 64) |
||||
* 7 - 6250 Hz (400000 / 64) |
||||
* 8 - 7813 Hz (500000 / 64) |
||||
* 9 - 10417 Hz (333333 / 32) |
||||
* 10 - 12500 Hz (400000 / 32) |
||||
* 11 - 15625 Hz (500000 / 32) |
||||
* 12 - 20833 Hz (333333 / 16) |
||||
* 13 - 25000 Hz (400000 / 16) |
||||
* 14 - 31250 Hz (500000 / 16) |
||||
* 15 - 41667 Hz (333333 / 8) |
||||
* 16 - 50000 Hz (400000 / 8) |
||||
* 17 - 62500 Hz (500000 / 8) |
||||
* 18 - 83333 Hz (333333 / 4) |
||||
* 19 - 100000 Hz (400000 / 4) |
||||
* 20 - 125000 Hz (500000 / 4) |
||||
* 21 - 166667 Hz (333333 / 2) |
||||
* 22 - 200000 Hz (400000 / 2) |
||||
* 23 - 250000 Hz (500000 / 2) |
||||
* 24 - 333333 Hz (333333 / 1) |
||||
* 25 - 400000 Hz (400000 / 1) |
||||
* 26 - 500000 Hz (500000 / 1) |
||||
spreadFactor: |
||||
type: integer |
||||
deBits: |
||||
description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol |
||||
type: integer |
||||
preambleChirps: |
||||
description: Number of preamble chirps |
||||
type: integer |
||||
quietMillis: |
||||
description: Number of milliseconds to pause between transmissions |
||||
type: integer |
||||
syncWord: |
||||
description: 2 byte (0..65535) synchronization syncWord |
||||
type: integer |
||||
channelMute: |
||||
description: boolean |
||||
type: integer |
||||
nbParityBits: |
||||
description: Hamming FEC parity bits (LoRa) |
||||
type: integer |
||||
textMessage: |
||||
description: freeform text message |
||||
type: string |
||||
messageRepeat: |
||||
description: number of repetitions of the same message (0 for infinite) |
||||
type: integer |
||||
udpEnabled: |
||||
description: boolean 1 to enable forwarding messages via UDP else 0 |
||||
type: integer |
||||
udpAddress: |
||||
description: UDP address to listen for messages to transmit on |
||||
type: string |
||||
udpPort: |
||||
description: UDP port to listen for messages to transmit on |
||||
type: integer |
||||
invertRamps: |
||||
type: integer |
||||
description: > |
||||
Invert chirp ramps |
||||
* 0 - Normal chirp ramps (upchirps for preamble and payload) |
||||
* 1 - Inverted chirp ramps (downchirps for preamble and payload) |
||||
rgbColor: |
||||
type: integer |
||||
title: |
||||
type: string |
||||
streamIndex: |
||||
description: MIMO channel. Not relevant when connected to SI (single Rx). |
||||
type: integer |
||||
useReverseAPI: |
||||
description: Synchronize with reverse API (1 for yes, 0 for no) |
||||
type: integer |
||||
reverseAPIAddress: |
||||
type: string |
||||
reverseAPIPort: |
||||
type: integer |
||||
reverseAPIDeviceIndex: |
||||
type: integer |
||||
reverseAPIChannelIndex: |
||||
type: integer |
||||
channelMarker: |
||||
$ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" |
||||
rollupState: |
||||
$ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" |
||||
|
||||
MeshtasticModReport: |
||||
description: MeshtasticMod |
||||
properties: |
||||
channelPowerDB: |
||||
description: power transmitted in channel (dB) |
||||
type: number |
||||
format: float |
||||
channelSampleRate: |
||||
type: integer |
||||
symbolTimeMs: |
||||
description: symbol duration (ms) |
||||
type: number |
||||
format: float |
||||
payloadTimeMs: |
||||
description: payload duration (ms) |
||||
type: number |
||||
format: float |
||||
totalTimeMs: |
||||
description: total message duration inc. preamble and SFD (ms) |
||||
type: number |
||||
format: float |
||||
playing: |
||||
type: integer |
||||
description: > |
||||
Boolean - modulator is active (playing) including idle time |
||||
* 0 - Modulator not active |
||||
* 1 - Modulator active |
||||
@ -0,0 +1,559 @@
@@ -0,0 +1,559 @@
|
||||
/**
|
||||
* SDRangel |
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
* |
||||
* OpenAPI spec version: 7.0.0 |
||||
* Contact: f4exb06@gmail.com |
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*/ |
||||
|
||||
|
||||
#include "SWGMeshtasticDemodReport.h" |
||||
|
||||
#include "SWGHelpers.h" |
||||
|
||||
#include <QJsonDocument> |
||||
#include <QJsonArray> |
||||
#include <QObject> |
||||
#include <QDebug> |
||||
|
||||
namespace SWGSDRangel { |
||||
|
||||
SWGMeshtasticDemodReport::SWGMeshtasticDemodReport(QString* json) { |
||||
init(); |
||||
this->fromJson(*json); |
||||
} |
||||
|
||||
SWGMeshtasticDemodReport::SWGMeshtasticDemodReport() { |
||||
channel_power_db = 0.0f; |
||||
m_channel_power_db_isSet = false; |
||||
noise_power_db = 0.0f; |
||||
m_noise_power_db_isSet = false; |
||||
signal_power_db = 0.0f; |
||||
m_signal_power_db_isSet = false; |
||||
snr_power_db = 0.0f; |
||||
m_snr_power_db_isSet = false; |
||||
channel_sample_rate = 0; |
||||
m_channel_sample_rate_isSet = false; |
||||
sync_word = 0; |
||||
m_sync_word_isSet = false; |
||||
nb_parity_bits = 0; |
||||
m_nb_parity_bits_isSet = false; |
||||
packet_length = 0; |
||||
m_packet_length_isSet = false; |
||||
nb_symbols = 0; |
||||
m_nb_symbols_isSet = false; |
||||
nb_codewords = 0; |
||||
m_nb_codewords_isSet = false; |
||||
header_parity_status = 0; |
||||
m_header_parity_status_isSet = false; |
||||
header_crc_status = 0; |
||||
m_header_crc_status_isSet = false; |
||||
payload_parity_status = 0; |
||||
m_payload_parity_status_isSet = false; |
||||
payload_crc_status = 0; |
||||
m_payload_crc_status_isSet = false; |
||||
message_timestamp = nullptr; |
||||
m_message_timestamp_isSet = false; |
||||
message_string = nullptr; |
||||
m_message_string_isSet = false; |
||||
frame_type = nullptr; |
||||
m_frame_type_isSet = false; |
||||
channel_type = nullptr; |
||||
m_channel_type_isSet = false; |
||||
message_bytes = nullptr; |
||||
m_message_bytes_isSet = false; |
||||
decoding = 0; |
||||
m_decoding_isSet = false; |
||||
} |
||||
|
||||
SWGMeshtasticDemodReport::~SWGMeshtasticDemodReport() { |
||||
this->cleanup(); |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticDemodReport::init() { |
||||
channel_power_db = 0.0f; |
||||
m_channel_power_db_isSet = false; |
||||
noise_power_db = 0.0f; |
||||
m_noise_power_db_isSet = false; |
||||
signal_power_db = 0.0f; |
||||
m_signal_power_db_isSet = false; |
||||
snr_power_db = 0.0f; |
||||
m_snr_power_db_isSet = false; |
||||
channel_sample_rate = 0; |
||||
m_channel_sample_rate_isSet = false; |
||||
sync_word = 0; |
||||
m_sync_word_isSet = false; |
||||
nb_parity_bits = 0; |
||||
m_nb_parity_bits_isSet = false; |
||||
packet_length = 0; |
||||
m_packet_length_isSet = false; |
||||
nb_symbols = 0; |
||||
m_nb_symbols_isSet = false; |
||||
nb_codewords = 0; |
||||
m_nb_codewords_isSet = false; |
||||
header_parity_status = 0; |
||||
m_header_parity_status_isSet = false; |
||||
header_crc_status = 0; |
||||
m_header_crc_status_isSet = false; |
||||
payload_parity_status = 0; |
||||
m_payload_parity_status_isSet = false; |
||||
payload_crc_status = 0; |
||||
m_payload_crc_status_isSet = false; |
||||
message_timestamp = new QString(""); |
||||
m_message_timestamp_isSet = false; |
||||
message_string = new QString(""); |
||||
m_message_string_isSet = false; |
||||
frame_type = new QString(""); |
||||
m_frame_type_isSet = false; |
||||
channel_type = new QString(""); |
||||
m_channel_type_isSet = false; |
||||
message_bytes = new QList<QString*>(); |
||||
m_message_bytes_isSet = false; |
||||
decoding = 0; |
||||
m_decoding_isSet = false; |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticDemodReport::cleanup() { |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(message_timestamp != nullptr) {
|
||||
delete message_timestamp; |
||||
} |
||||
if(message_string != nullptr) {
|
||||
delete message_string; |
||||
} |
||||
if(frame_type != nullptr) {
|
||||
delete frame_type; |
||||
} |
||||
if(channel_type != nullptr) {
|
||||
delete channel_type; |
||||
} |
||||
if(message_bytes != nullptr) {
|
||||
auto arr = message_bytes; |
||||
for(auto o: *arr) {
|
||||
delete o; |
||||
} |
||||
delete message_bytes; |
||||
} |
||||
|
||||
} |
||||
|
||||
SWGMeshtasticDemodReport* |
||||
SWGMeshtasticDemodReport::fromJson(QString &json) { |
||||
QByteArray array (json.toStdString().c_str()); |
||||
QJsonDocument doc = QJsonDocument::fromJson(array); |
||||
QJsonObject jsonObject = doc.object(); |
||||
this->fromJsonObject(jsonObject); |
||||
return this; |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticDemodReport::fromJsonObject(QJsonObject &pJson) { |
||||
::SWGSDRangel::setValue(&channel_power_db, pJson["channelPowerDB"], "float", ""); |
||||
|
||||
::SWGSDRangel::setValue(&noise_power_db, pJson["noisePowerDB"], "float", ""); |
||||
|
||||
::SWGSDRangel::setValue(&signal_power_db, pJson["signalPowerDB"], "float", ""); |
||||
|
||||
::SWGSDRangel::setValue(&snr_power_db, pJson["snrPowerDB"], "float", ""); |
||||
|
||||
::SWGSDRangel::setValue(&channel_sample_rate, pJson["channelSampleRate"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&sync_word, pJson["syncWord"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&nb_parity_bits, pJson["nbParityBits"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&packet_length, pJson["packetLength"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&nb_symbols, pJson["nbSymbols"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&nb_codewords, pJson["nbCodewords"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&header_parity_status, pJson["headerParityStatus"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&header_crc_status, pJson["headerCRCStatus"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&payload_parity_status, pJson["payloadParityStatus"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&payload_crc_status, pJson["payloadCRCStatus"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&message_timestamp, pJson["messageTimestamp"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&message_string, pJson["messageString"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&frame_type, pJson["frameType"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&channel_type, pJson["channelType"], "QString", "QString"); |
||||
|
||||
|
||||
::SWGSDRangel::setValue(&message_bytes, pJson["messageBytes"], "QList", "QString"); |
||||
::SWGSDRangel::setValue(&decoding, pJson["decoding"], "qint32", ""); |
||||
|
||||
} |
||||
|
||||
QString |
||||
SWGMeshtasticDemodReport::asJson () |
||||
{ |
||||
QJsonObject* obj = this->asJsonObject(); |
||||
|
||||
QJsonDocument doc(*obj); |
||||
QByteArray bytes = doc.toJson(); |
||||
delete obj; |
||||
return QString(bytes); |
||||
} |
||||
|
||||
QJsonObject* |
||||
SWGMeshtasticDemodReport::asJsonObject() { |
||||
QJsonObject* obj = new QJsonObject(); |
||||
if(m_channel_power_db_isSet){ |
||||
obj->insert("channelPowerDB", QJsonValue(channel_power_db)); |
||||
} |
||||
if(m_noise_power_db_isSet){ |
||||
obj->insert("noisePowerDB", QJsonValue(noise_power_db)); |
||||
} |
||||
if(m_signal_power_db_isSet){ |
||||
obj->insert("signalPowerDB", QJsonValue(signal_power_db)); |
||||
} |
||||
if(m_snr_power_db_isSet){ |
||||
obj->insert("snrPowerDB", QJsonValue(snr_power_db)); |
||||
} |
||||
if(m_channel_sample_rate_isSet){ |
||||
obj->insert("channelSampleRate", QJsonValue(channel_sample_rate)); |
||||
} |
||||
if(m_sync_word_isSet){ |
||||
obj->insert("syncWord", QJsonValue(sync_word)); |
||||
} |
||||
if(m_nb_parity_bits_isSet){ |
||||
obj->insert("nbParityBits", QJsonValue(nb_parity_bits)); |
||||
} |
||||
if(m_packet_length_isSet){ |
||||
obj->insert("packetLength", QJsonValue(packet_length)); |
||||
} |
||||
if(m_nb_symbols_isSet){ |
||||
obj->insert("nbSymbols", QJsonValue(nb_symbols)); |
||||
} |
||||
if(m_nb_codewords_isSet){ |
||||
obj->insert("nbCodewords", QJsonValue(nb_codewords)); |
||||
} |
||||
if(m_header_parity_status_isSet){ |
||||
obj->insert("headerParityStatus", QJsonValue(header_parity_status)); |
||||
} |
||||
if(m_header_crc_status_isSet){ |
||||
obj->insert("headerCRCStatus", QJsonValue(header_crc_status)); |
||||
} |
||||
if(m_payload_parity_status_isSet){ |
||||
obj->insert("payloadParityStatus", QJsonValue(payload_parity_status)); |
||||
} |
||||
if(m_payload_crc_status_isSet){ |
||||
obj->insert("payloadCRCStatus", QJsonValue(payload_crc_status)); |
||||
} |
||||
if(message_timestamp != nullptr && *message_timestamp != QString("")){ |
||||
toJsonValue(QString("messageTimestamp"), message_timestamp, obj, QString("QString")); |
||||
} |
||||
if(message_string != nullptr && *message_string != QString("")){ |
||||
toJsonValue(QString("messageString"), message_string, obj, QString("QString")); |
||||
} |
||||
if(frame_type != nullptr && *frame_type != QString("")){ |
||||
toJsonValue(QString("frameType"), frame_type, obj, QString("QString")); |
||||
} |
||||
if(channel_type != nullptr && *channel_type != QString("")){ |
||||
toJsonValue(QString("channelType"), channel_type, obj, QString("QString")); |
||||
} |
||||
if(message_bytes && message_bytes->size() > 0){ |
||||
toJsonArray((QList<void*>*)message_bytes, obj, "messageBytes", "QString"); |
||||
} |
||||
if(m_decoding_isSet){ |
||||
obj->insert("decoding", QJsonValue(decoding)); |
||||
} |
||||
|
||||
return obj; |
||||
} |
||||
|
||||
float |
||||
SWGMeshtasticDemodReport::getChannelPowerDb() { |
||||
return channel_power_db; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setChannelPowerDb(float channel_power_db) { |
||||
this->channel_power_db = channel_power_db; |
||||
this->m_channel_power_db_isSet = true; |
||||
} |
||||
|
||||
float |
||||
SWGMeshtasticDemodReport::getNoisePowerDb() { |
||||
return noise_power_db; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setNoisePowerDb(float noise_power_db) { |
||||
this->noise_power_db = noise_power_db; |
||||
this->m_noise_power_db_isSet = true; |
||||
} |
||||
|
||||
float |
||||
SWGMeshtasticDemodReport::getSignalPowerDb() { |
||||
return signal_power_db; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setSignalPowerDb(float signal_power_db) { |
||||
this->signal_power_db = signal_power_db; |
||||
this->m_signal_power_db_isSet = true; |
||||
} |
||||
|
||||
float |
||||
SWGMeshtasticDemodReport::getSnrPowerDb() { |
||||
return snr_power_db; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setSnrPowerDb(float snr_power_db) { |
||||
this->snr_power_db = snr_power_db; |
||||
this->m_snr_power_db_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getChannelSampleRate() { |
||||
return channel_sample_rate; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setChannelSampleRate(qint32 channel_sample_rate) { |
||||
this->channel_sample_rate = channel_sample_rate; |
||||
this->m_channel_sample_rate_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getSyncWord() { |
||||
return sync_word; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setSyncWord(qint32 sync_word) { |
||||
this->sync_word = sync_word; |
||||
this->m_sync_word_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getNbParityBits() { |
||||
return nb_parity_bits; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setNbParityBits(qint32 nb_parity_bits) { |
||||
this->nb_parity_bits = nb_parity_bits; |
||||
this->m_nb_parity_bits_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getPacketLength() { |
||||
return packet_length; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setPacketLength(qint32 packet_length) { |
||||
this->packet_length = packet_length; |
||||
this->m_packet_length_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getNbSymbols() { |
||||
return nb_symbols; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setNbSymbols(qint32 nb_symbols) { |
||||
this->nb_symbols = nb_symbols; |
||||
this->m_nb_symbols_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getNbCodewords() { |
||||
return nb_codewords; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setNbCodewords(qint32 nb_codewords) { |
||||
this->nb_codewords = nb_codewords; |
||||
this->m_nb_codewords_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getHeaderParityStatus() { |
||||
return header_parity_status; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setHeaderParityStatus(qint32 header_parity_status) { |
||||
this->header_parity_status = header_parity_status; |
||||
this->m_header_parity_status_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getHeaderCrcStatus() { |
||||
return header_crc_status; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setHeaderCrcStatus(qint32 header_crc_status) { |
||||
this->header_crc_status = header_crc_status; |
||||
this->m_header_crc_status_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getPayloadParityStatus() { |
||||
return payload_parity_status; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setPayloadParityStatus(qint32 payload_parity_status) { |
||||
this->payload_parity_status = payload_parity_status; |
||||
this->m_payload_parity_status_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getPayloadCrcStatus() { |
||||
return payload_crc_status; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setPayloadCrcStatus(qint32 payload_crc_status) { |
||||
this->payload_crc_status = payload_crc_status; |
||||
this->m_payload_crc_status_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticDemodReport::getMessageTimestamp() { |
||||
return message_timestamp; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setMessageTimestamp(QString* message_timestamp) { |
||||
this->message_timestamp = message_timestamp; |
||||
this->m_message_timestamp_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticDemodReport::getMessageString() { |
||||
return message_string; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setMessageString(QString* message_string) { |
||||
this->message_string = message_string; |
||||
this->m_message_string_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticDemodReport::getFrameType() { |
||||
return frame_type; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setFrameType(QString* frame_type) { |
||||
this->frame_type = frame_type; |
||||
this->m_frame_type_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticDemodReport::getChannelType() { |
||||
return channel_type; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setChannelType(QString* channel_type) { |
||||
this->channel_type = channel_type; |
||||
this->m_channel_type_isSet = true; |
||||
} |
||||
|
||||
QList<QString*>* |
||||
SWGMeshtasticDemodReport::getMessageBytes() { |
||||
return message_bytes; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setMessageBytes(QList<QString*>* message_bytes) { |
||||
this->message_bytes = message_bytes; |
||||
this->m_message_bytes_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodReport::getDecoding() { |
||||
return decoding; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodReport::setDecoding(qint32 decoding) { |
||||
this->decoding = decoding; |
||||
this->m_decoding_isSet = true; |
||||
} |
||||
|
||||
|
||||
bool |
||||
SWGMeshtasticDemodReport::isSet(){ |
||||
bool isObjectUpdated = false; |
||||
do{ |
||||
if(m_channel_power_db_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_noise_power_db_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_signal_power_db_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_snr_power_db_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_channel_sample_rate_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_sync_word_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_nb_parity_bits_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_packet_length_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_nb_symbols_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_nb_codewords_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_header_parity_status_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_header_crc_status_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_payload_parity_status_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_payload_crc_status_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(message_timestamp && *message_timestamp != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(message_string && *message_string != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(frame_type && *frame_type != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(channel_type && *channel_type != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(message_bytes && (message_bytes->size() > 0)){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_decoding_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
}while(false); |
||||
return isObjectUpdated; |
||||
} |
||||
} |
||||
|
||||
@ -0,0 +1,174 @@
@@ -0,0 +1,174 @@
|
||||
/**
|
||||
* SDRangel |
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
* |
||||
* OpenAPI spec version: 7.0.0 |
||||
* Contact: f4exb06@gmail.com |
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*/ |
||||
|
||||
/*
|
||||
* SWGMeshtasticDemodReport.h |
||||
* |
||||
* MeshtasticDemod |
||||
*/ |
||||
|
||||
#ifndef SWGMeshtasticDemodReport_H_ |
||||
#define SWGMeshtasticDemodReport_H_ |
||||
|
||||
#include <QJsonObject> |
||||
|
||||
|
||||
#include <QList> |
||||
#include <QString> |
||||
|
||||
#include "SWGObject.h" |
||||
#include "export.h" |
||||
|
||||
namespace SWGSDRangel { |
||||
|
||||
class SWG_API SWGMeshtasticDemodReport: public SWGObject { |
||||
public: |
||||
SWGMeshtasticDemodReport(); |
||||
SWGMeshtasticDemodReport(QString* json); |
||||
virtual ~SWGMeshtasticDemodReport(); |
||||
void init(); |
||||
void cleanup(); |
||||
|
||||
virtual QString asJson () override; |
||||
virtual QJsonObject* asJsonObject() override; |
||||
virtual void fromJsonObject(QJsonObject &json) override; |
||||
virtual SWGMeshtasticDemodReport* fromJson(QString &jsonString) override; |
||||
|
||||
float getChannelPowerDb(); |
||||
void setChannelPowerDb(float channel_power_db); |
||||
|
||||
float getNoisePowerDb(); |
||||
void setNoisePowerDb(float noise_power_db); |
||||
|
||||
float getSignalPowerDb(); |
||||
void setSignalPowerDb(float signal_power_db); |
||||
|
||||
float getSnrPowerDb(); |
||||
void setSnrPowerDb(float snr_power_db); |
||||
|
||||
qint32 getChannelSampleRate(); |
||||
void setChannelSampleRate(qint32 channel_sample_rate); |
||||
|
||||
qint32 getSyncWord(); |
||||
void setSyncWord(qint32 sync_word); |
||||
|
||||
qint32 getNbParityBits(); |
||||
void setNbParityBits(qint32 nb_parity_bits); |
||||
|
||||
qint32 getPacketLength(); |
||||
void setPacketLength(qint32 packet_length); |
||||
|
||||
qint32 getNbSymbols(); |
||||
void setNbSymbols(qint32 nb_symbols); |
||||
|
||||
qint32 getNbCodewords(); |
||||
void setNbCodewords(qint32 nb_codewords); |
||||
|
||||
qint32 getHeaderParityStatus(); |
||||
void setHeaderParityStatus(qint32 header_parity_status); |
||||
|
||||
qint32 getHeaderCrcStatus(); |
||||
void setHeaderCrcStatus(qint32 header_crc_status); |
||||
|
||||
qint32 getPayloadParityStatus(); |
||||
void setPayloadParityStatus(qint32 payload_parity_status); |
||||
|
||||
qint32 getPayloadCrcStatus(); |
||||
void setPayloadCrcStatus(qint32 payload_crc_status); |
||||
|
||||
QString* getMessageTimestamp(); |
||||
void setMessageTimestamp(QString* message_timestamp); |
||||
|
||||
QString* getMessageString(); |
||||
void setMessageString(QString* message_string); |
||||
|
||||
QString* getFrameType(); |
||||
void setFrameType(QString* frame_type); |
||||
|
||||
QString* getChannelType(); |
||||
void setChannelType(QString* channel_type); |
||||
|
||||
QList<QString*>* getMessageBytes(); |
||||
void setMessageBytes(QList<QString*>* message_bytes); |
||||
|
||||
qint32 getDecoding(); |
||||
void setDecoding(qint32 decoding); |
||||
|
||||
|
||||
virtual bool isSet() override; |
||||
|
||||
private: |
||||
float channel_power_db; |
||||
bool m_channel_power_db_isSet; |
||||
|
||||
float noise_power_db; |
||||
bool m_noise_power_db_isSet; |
||||
|
||||
float signal_power_db; |
||||
bool m_signal_power_db_isSet; |
||||
|
||||
float snr_power_db; |
||||
bool m_snr_power_db_isSet; |
||||
|
||||
qint32 channel_sample_rate; |
||||
bool m_channel_sample_rate_isSet; |
||||
|
||||
qint32 sync_word; |
||||
bool m_sync_word_isSet; |
||||
|
||||
qint32 nb_parity_bits; |
||||
bool m_nb_parity_bits_isSet; |
||||
|
||||
qint32 packet_length; |
||||
bool m_packet_length_isSet; |
||||
|
||||
qint32 nb_symbols; |
||||
bool m_nb_symbols_isSet; |
||||
|
||||
qint32 nb_codewords; |
||||
bool m_nb_codewords_isSet; |
||||
|
||||
qint32 header_parity_status; |
||||
bool m_header_parity_status_isSet; |
||||
|
||||
qint32 header_crc_status; |
||||
bool m_header_crc_status_isSet; |
||||
|
||||
qint32 payload_parity_status; |
||||
bool m_payload_parity_status_isSet; |
||||
|
||||
qint32 payload_crc_status; |
||||
bool m_payload_crc_status_isSet; |
||||
|
||||
QString* message_timestamp; |
||||
bool m_message_timestamp_isSet; |
||||
|
||||
QString* message_string; |
||||
bool m_message_string_isSet; |
||||
|
||||
QString* frame_type; |
||||
bool m_frame_type_isSet; |
||||
|
||||
QString* channel_type; |
||||
bool m_channel_type_isSet; |
||||
|
||||
QList<QString*>* message_bytes; |
||||
bool m_message_bytes_isSet; |
||||
|
||||
qint32 decoding; |
||||
bool m_decoding_isSet; |
||||
|
||||
}; |
||||
|
||||
} |
||||
|
||||
#endif /* SWGMeshtasticDemodReport_H_ */ |
||||
@ -0,0 +1,695 @@
@@ -0,0 +1,695 @@
|
||||
/**
|
||||
* SDRangel |
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
* |
||||
* OpenAPI spec version: 7.0.0 |
||||
* Contact: f4exb06@gmail.com |
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*/ |
||||
|
||||
|
||||
#include "SWGMeshtasticDemodSettings.h" |
||||
|
||||
#include "SWGHelpers.h" |
||||
|
||||
#include <QJsonDocument> |
||||
#include <QJsonArray> |
||||
#include <QObject> |
||||
#include <QDebug> |
||||
|
||||
namespace SWGSDRangel { |
||||
|
||||
SWGMeshtasticDemodSettings::SWGMeshtasticDemodSettings(QString* json) { |
||||
init(); |
||||
this->fromJson(*json); |
||||
} |
||||
|
||||
SWGMeshtasticDemodSettings::SWGMeshtasticDemodSettings() { |
||||
input_frequency_offset = 0L; |
||||
m_input_frequency_offset_isSet = false; |
||||
bandwidth_index = 0; |
||||
m_bandwidth_index_isSet = false; |
||||
spread_factor = 0; |
||||
m_spread_factor_isSet = false; |
||||
de_bits = 0; |
||||
m_de_bits_isSet = false; |
||||
decode_active = 0; |
||||
m_decode_active_isSet = false; |
||||
eom_squelch_tenths = 0; |
||||
m_eom_squelch_tenths_isSet = false; |
||||
nb_symbols_max = 0; |
||||
m_nb_symbols_max_isSet = false; |
||||
preamble_chirps = 0; |
||||
m_preamble_chirps_isSet = false; |
||||
nb_parity_bits = 0; |
||||
m_nb_parity_bits_isSet = false; |
||||
packet_length = 0; |
||||
m_packet_length_isSet = false; |
||||
send_via_udp = 0; |
||||
m_send_via_udp_isSet = false; |
||||
udp_enabled = 0; |
||||
m_udp_enabled_isSet = false; |
||||
udp_address = nullptr; |
||||
m_udp_address_isSet = false; |
||||
udp_port = 0; |
||||
m_udp_port_isSet = false; |
||||
invert_ramps = 0; |
||||
m_invert_ramps_isSet = false; |
||||
rgb_color = 0; |
||||
m_rgb_color_isSet = false; |
||||
title = nullptr; |
||||
m_title_isSet = false; |
||||
stream_index = 0; |
||||
m_stream_index_isSet = false; |
||||
use_reverse_api = 0; |
||||
m_use_reverse_api_isSet = false; |
||||
reverse_api_address = nullptr; |
||||
m_reverse_api_address_isSet = false; |
||||
reverse_api_port = 0; |
||||
m_reverse_api_port_isSet = false; |
||||
reverse_api_device_index = 0; |
||||
m_reverse_api_device_index_isSet = false; |
||||
reverse_api_channel_index = 0; |
||||
m_reverse_api_channel_index_isSet = false; |
||||
spectrum_config = nullptr; |
||||
m_spectrum_config_isSet = false; |
||||
channel_marker = nullptr; |
||||
m_channel_marker_isSet = false; |
||||
rollup_state = nullptr; |
||||
m_rollup_state_isSet = false; |
||||
} |
||||
|
||||
SWGMeshtasticDemodSettings::~SWGMeshtasticDemodSettings() { |
||||
this->cleanup(); |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticDemodSettings::init() { |
||||
input_frequency_offset = 0L; |
||||
m_input_frequency_offset_isSet = false; |
||||
bandwidth_index = 0; |
||||
m_bandwidth_index_isSet = false; |
||||
spread_factor = 0; |
||||
m_spread_factor_isSet = false; |
||||
de_bits = 0; |
||||
m_de_bits_isSet = false; |
||||
decode_active = 0; |
||||
m_decode_active_isSet = false; |
||||
eom_squelch_tenths = 0; |
||||
m_eom_squelch_tenths_isSet = false; |
||||
nb_symbols_max = 0; |
||||
m_nb_symbols_max_isSet = false; |
||||
preamble_chirps = 0; |
||||
m_preamble_chirps_isSet = false; |
||||
nb_parity_bits = 0; |
||||
m_nb_parity_bits_isSet = false; |
||||
packet_length = 0; |
||||
m_packet_length_isSet = false; |
||||
send_via_udp = 0; |
||||
m_send_via_udp_isSet = false; |
||||
udp_enabled = 0; |
||||
m_udp_enabled_isSet = false; |
||||
udp_address = new QString(""); |
||||
m_udp_address_isSet = false; |
||||
udp_port = 0; |
||||
m_udp_port_isSet = false; |
||||
invert_ramps = 0; |
||||
m_invert_ramps_isSet = false; |
||||
rgb_color = 0; |
||||
m_rgb_color_isSet = false; |
||||
title = new QString(""); |
||||
m_title_isSet = false; |
||||
stream_index = 0; |
||||
m_stream_index_isSet = false; |
||||
use_reverse_api = 0; |
||||
m_use_reverse_api_isSet = false; |
||||
reverse_api_address = new QString(""); |
||||
m_reverse_api_address_isSet = false; |
||||
reverse_api_port = 0; |
||||
m_reverse_api_port_isSet = false; |
||||
reverse_api_device_index = 0; |
||||
m_reverse_api_device_index_isSet = false; |
||||
reverse_api_channel_index = 0; |
||||
m_reverse_api_channel_index_isSet = false; |
||||
spectrum_config = new SWGGLSpectrum(); |
||||
m_spectrum_config_isSet = false; |
||||
channel_marker = new SWGChannelMarker(); |
||||
m_channel_marker_isSet = false; |
||||
rollup_state = new SWGRollupState(); |
||||
m_rollup_state_isSet = false; |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticDemodSettings::cleanup() { |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(udp_address != nullptr) {
|
||||
delete udp_address; |
||||
} |
||||
|
||||
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title; |
||||
} |
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
delete reverse_api_address; |
||||
} |
||||
|
||||
|
||||
|
||||
if(spectrum_config != nullptr) {
|
||||
delete spectrum_config; |
||||
} |
||||
if(channel_marker != nullptr) {
|
||||
delete channel_marker; |
||||
} |
||||
if(rollup_state != nullptr) {
|
||||
delete rollup_state; |
||||
} |
||||
} |
||||
|
||||
SWGMeshtasticDemodSettings* |
||||
SWGMeshtasticDemodSettings::fromJson(QString &json) { |
||||
QByteArray array (json.toStdString().c_str()); |
||||
QJsonDocument doc = QJsonDocument::fromJson(array); |
||||
QJsonObject jsonObject = doc.object(); |
||||
this->fromJsonObject(jsonObject); |
||||
return this; |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticDemodSettings::fromJsonObject(QJsonObject &pJson) { |
||||
::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", ""); |
||||
|
||||
::SWGSDRangel::setValue(&bandwidth_index, pJson["bandwidthIndex"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&spread_factor, pJson["spreadFactor"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&de_bits, pJson["deBits"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&decode_active, pJson["decodeActive"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&eom_squelch_tenths, pJson["eomSquelchTenths"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&nb_symbols_max, pJson["nbSymbolsMax"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&preamble_chirps, pJson["preambleChirps"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&nb_parity_bits, pJson["nbParityBits"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&packet_length, pJson["packetLength"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&send_via_udp, pJson["sendViaUDP"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&udp_address, pJson["udpAddress"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&udp_port, pJson["udpPort"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&invert_ramps, pJson["invertRamps"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&spectrum_config, pJson["spectrumConfig"], "SWGGLSpectrum", "SWGGLSpectrum"); |
||||
|
||||
::SWGSDRangel::setValue(&channel_marker, pJson["channelMarker"], "SWGChannelMarker", "SWGChannelMarker"); |
||||
|
||||
::SWGSDRangel::setValue(&rollup_state, pJson["rollupState"], "SWGRollupState", "SWGRollupState"); |
||||
|
||||
} |
||||
|
||||
QString |
||||
SWGMeshtasticDemodSettings::asJson () |
||||
{ |
||||
QJsonObject* obj = this->asJsonObject(); |
||||
|
||||
QJsonDocument doc(*obj); |
||||
QByteArray bytes = doc.toJson(); |
||||
delete obj; |
||||
return QString(bytes); |
||||
} |
||||
|
||||
QJsonObject* |
||||
SWGMeshtasticDemodSettings::asJsonObject() { |
||||
QJsonObject* obj = new QJsonObject(); |
||||
if(m_input_frequency_offset_isSet){ |
||||
obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset)); |
||||
} |
||||
if(m_bandwidth_index_isSet){ |
||||
obj->insert("bandwidthIndex", QJsonValue(bandwidth_index)); |
||||
} |
||||
if(m_spread_factor_isSet){ |
||||
obj->insert("spreadFactor", QJsonValue(spread_factor)); |
||||
} |
||||
if(m_de_bits_isSet){ |
||||
obj->insert("deBits", QJsonValue(de_bits)); |
||||
} |
||||
if(m_decode_active_isSet){ |
||||
obj->insert("decodeActive", QJsonValue(decode_active)); |
||||
} |
||||
if(m_eom_squelch_tenths_isSet){ |
||||
obj->insert("eomSquelchTenths", QJsonValue(eom_squelch_tenths)); |
||||
} |
||||
if(m_nb_symbols_max_isSet){ |
||||
obj->insert("nbSymbolsMax", QJsonValue(nb_symbols_max)); |
||||
} |
||||
if(m_preamble_chirps_isSet){ |
||||
obj->insert("preambleChirps", QJsonValue(preamble_chirps)); |
||||
} |
||||
if(m_nb_parity_bits_isSet){ |
||||
obj->insert("nbParityBits", QJsonValue(nb_parity_bits)); |
||||
} |
||||
if(m_packet_length_isSet){ |
||||
obj->insert("packetLength", QJsonValue(packet_length)); |
||||
} |
||||
if(m_send_via_udp_isSet){ |
||||
obj->insert("sendViaUDP", QJsonValue(send_via_udp)); |
||||
} |
||||
if(m_udp_enabled_isSet){ |
||||
obj->insert("udpEnabled", QJsonValue(udp_enabled)); |
||||
} |
||||
if(udp_address != nullptr && *udp_address != QString("")){ |
||||
toJsonValue(QString("udpAddress"), udp_address, obj, QString("QString")); |
||||
} |
||||
if(m_udp_port_isSet){ |
||||
obj->insert("udpPort", QJsonValue(udp_port)); |
||||
} |
||||
if(m_invert_ramps_isSet){ |
||||
obj->insert("invertRamps", QJsonValue(invert_ramps)); |
||||
} |
||||
if(m_rgb_color_isSet){ |
||||
obj->insert("rgbColor", QJsonValue(rgb_color)); |
||||
} |
||||
if(title != nullptr && *title != QString("")){ |
||||
toJsonValue(QString("title"), title, obj, QString("QString")); |
||||
} |
||||
if(m_stream_index_isSet){ |
||||
obj->insert("streamIndex", QJsonValue(stream_index)); |
||||
} |
||||
if(m_use_reverse_api_isSet){ |
||||
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); |
||||
} |
||||
if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ |
||||
toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString")); |
||||
} |
||||
if(m_reverse_api_port_isSet){ |
||||
obj->insert("reverseAPIPort", QJsonValue(reverse_api_port)); |
||||
} |
||||
if(m_reverse_api_device_index_isSet){ |
||||
obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index)); |
||||
} |
||||
if(m_reverse_api_channel_index_isSet){ |
||||
obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index)); |
||||
} |
||||
if((spectrum_config != nullptr) && (spectrum_config->isSet())){ |
||||
toJsonValue(QString("spectrumConfig"), spectrum_config, obj, QString("SWGGLSpectrum")); |
||||
} |
||||
if((channel_marker != nullptr) && (channel_marker->isSet())){ |
||||
toJsonValue(QString("channelMarker"), channel_marker, obj, QString("SWGChannelMarker")); |
||||
} |
||||
if((rollup_state != nullptr) && (rollup_state->isSet())){ |
||||
toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState")); |
||||
} |
||||
|
||||
return obj; |
||||
} |
||||
|
||||
qint64 |
||||
SWGMeshtasticDemodSettings::getInputFrequencyOffset() { |
||||
return input_frequency_offset; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setInputFrequencyOffset(qint64 input_frequency_offset) { |
||||
this->input_frequency_offset = input_frequency_offset; |
||||
this->m_input_frequency_offset_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getBandwidthIndex() { |
||||
return bandwidth_index; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setBandwidthIndex(qint32 bandwidth_index) { |
||||
this->bandwidth_index = bandwidth_index; |
||||
this->m_bandwidth_index_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getSpreadFactor() { |
||||
return spread_factor; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setSpreadFactor(qint32 spread_factor) { |
||||
this->spread_factor = spread_factor; |
||||
this->m_spread_factor_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getDeBits() { |
||||
return de_bits; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setDeBits(qint32 de_bits) { |
||||
this->de_bits = de_bits; |
||||
this->m_de_bits_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getDecodeActive() { |
||||
return decode_active; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setDecodeActive(qint32 decode_active) { |
||||
this->decode_active = decode_active; |
||||
this->m_decode_active_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getEomSquelchTenths() { |
||||
return eom_squelch_tenths; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setEomSquelchTenths(qint32 eom_squelch_tenths) { |
||||
this->eom_squelch_tenths = eom_squelch_tenths; |
||||
this->m_eom_squelch_tenths_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getNbSymbolsMax() { |
||||
return nb_symbols_max; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setNbSymbolsMax(qint32 nb_symbols_max) { |
||||
this->nb_symbols_max = nb_symbols_max; |
||||
this->m_nb_symbols_max_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getPreambleChirps() { |
||||
return preamble_chirps; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setPreambleChirps(qint32 preamble_chirps) { |
||||
this->preamble_chirps = preamble_chirps; |
||||
this->m_preamble_chirps_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getNbParityBits() { |
||||
return nb_parity_bits; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setNbParityBits(qint32 nb_parity_bits) { |
||||
this->nb_parity_bits = nb_parity_bits; |
||||
this->m_nb_parity_bits_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getPacketLength() { |
||||
return packet_length; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setPacketLength(qint32 packet_length) { |
||||
this->packet_length = packet_length; |
||||
this->m_packet_length_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getSendViaUdp() { |
||||
return send_via_udp; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setSendViaUdp(qint32 send_via_udp) { |
||||
this->send_via_udp = send_via_udp; |
||||
this->m_send_via_udp_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getUdpEnabled() { |
||||
return udp_enabled; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setUdpEnabled(qint32 udp_enabled) { |
||||
this->udp_enabled = udp_enabled; |
||||
this->m_udp_enabled_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticDemodSettings::getUdpAddress() { |
||||
return udp_address; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setUdpAddress(QString* udp_address) { |
||||
this->udp_address = udp_address; |
||||
this->m_udp_address_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getUdpPort() { |
||||
return udp_port; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setUdpPort(qint32 udp_port) { |
||||
this->udp_port = udp_port; |
||||
this->m_udp_port_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getInvertRamps() { |
||||
return invert_ramps; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setInvertRamps(qint32 invert_ramps) { |
||||
this->invert_ramps = invert_ramps; |
||||
this->m_invert_ramps_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getRgbColor() { |
||||
return rgb_color; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setRgbColor(qint32 rgb_color) { |
||||
this->rgb_color = rgb_color; |
||||
this->m_rgb_color_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticDemodSettings::getTitle() { |
||||
return title; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setTitle(QString* title) { |
||||
this->title = title; |
||||
this->m_title_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getStreamIndex() { |
||||
return stream_index; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setStreamIndex(qint32 stream_index) { |
||||
this->stream_index = stream_index; |
||||
this->m_stream_index_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getUseReverseApi() { |
||||
return use_reverse_api; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setUseReverseApi(qint32 use_reverse_api) { |
||||
this->use_reverse_api = use_reverse_api; |
||||
this->m_use_reverse_api_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticDemodSettings::getReverseApiAddress() { |
||||
return reverse_api_address; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setReverseApiAddress(QString* reverse_api_address) { |
||||
this->reverse_api_address = reverse_api_address; |
||||
this->m_reverse_api_address_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getReverseApiPort() { |
||||
return reverse_api_port; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setReverseApiPort(qint32 reverse_api_port) { |
||||
this->reverse_api_port = reverse_api_port; |
||||
this->m_reverse_api_port_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getReverseApiDeviceIndex() { |
||||
return reverse_api_device_index; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) { |
||||
this->reverse_api_device_index = reverse_api_device_index; |
||||
this->m_reverse_api_device_index_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticDemodSettings::getReverseApiChannelIndex() { |
||||
return reverse_api_channel_index; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) { |
||||
this->reverse_api_channel_index = reverse_api_channel_index; |
||||
this->m_reverse_api_channel_index_isSet = true; |
||||
} |
||||
|
||||
SWGGLSpectrum* |
||||
SWGMeshtasticDemodSettings::getSpectrumConfig() { |
||||
return spectrum_config; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setSpectrumConfig(SWGGLSpectrum* spectrum_config) { |
||||
this->spectrum_config = spectrum_config; |
||||
this->m_spectrum_config_isSet = true; |
||||
} |
||||
|
||||
SWGChannelMarker* |
||||
SWGMeshtasticDemodSettings::getChannelMarker() { |
||||
return channel_marker; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setChannelMarker(SWGChannelMarker* channel_marker) { |
||||
this->channel_marker = channel_marker; |
||||
this->m_channel_marker_isSet = true; |
||||
} |
||||
|
||||
SWGRollupState* |
||||
SWGMeshtasticDemodSettings::getRollupState() { |
||||
return rollup_state; |
||||
} |
||||
void |
||||
SWGMeshtasticDemodSettings::setRollupState(SWGRollupState* rollup_state) { |
||||
this->rollup_state = rollup_state; |
||||
this->m_rollup_state_isSet = true; |
||||
} |
||||
|
||||
|
||||
bool |
||||
SWGMeshtasticDemodSettings::isSet(){ |
||||
bool isObjectUpdated = false; |
||||
do{ |
||||
if(m_input_frequency_offset_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_bandwidth_index_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_spread_factor_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_de_bits_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_decode_active_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_eom_squelch_tenths_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_nb_symbols_max_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_preamble_chirps_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_nb_parity_bits_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_packet_length_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_send_via_udp_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_udp_enabled_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(udp_address && *udp_address != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_udp_port_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_invert_ramps_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_rgb_color_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(title && *title != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_stream_index_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_use_reverse_api_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(reverse_api_address && *reverse_api_address != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_reverse_api_port_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_reverse_api_device_index_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_reverse_api_channel_index_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(spectrum_config && spectrum_config->isSet()){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(channel_marker && channel_marker->isSet()){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(rollup_state && rollup_state->isSet()){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
}while(false); |
||||
return isObjectUpdated; |
||||
} |
||||
} |
||||
|
||||
@ -0,0 +1,212 @@
@@ -0,0 +1,212 @@
|
||||
/**
|
||||
* SDRangel |
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
* |
||||
* OpenAPI spec version: 7.0.0 |
||||
* Contact: f4exb06@gmail.com |
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*/ |
||||
|
||||
/*
|
||||
* SWGMeshtasticDemodSettings.h |
||||
* |
||||
* MeshtasticDemod |
||||
*/ |
||||
|
||||
#ifndef SWGMeshtasticDemodSettings_H_ |
||||
#define SWGMeshtasticDemodSettings_H_ |
||||
|
||||
#include <QJsonObject> |
||||
|
||||
|
||||
#include "SWGChannelMarker.h" |
||||
#include "SWGGLSpectrum.h" |
||||
#include "SWGRollupState.h" |
||||
#include <QString> |
||||
|
||||
#include "SWGObject.h" |
||||
#include "export.h" |
||||
|
||||
namespace SWGSDRangel { |
||||
|
||||
class SWG_API SWGMeshtasticDemodSettings: public SWGObject { |
||||
public: |
||||
SWGMeshtasticDemodSettings(); |
||||
SWGMeshtasticDemodSettings(QString* json); |
||||
virtual ~SWGMeshtasticDemodSettings(); |
||||
void init(); |
||||
void cleanup(); |
||||
|
||||
virtual QString asJson () override; |
||||
virtual QJsonObject* asJsonObject() override; |
||||
virtual void fromJsonObject(QJsonObject &json) override; |
||||
virtual SWGMeshtasticDemodSettings* fromJson(QString &jsonString) override; |
||||
|
||||
qint64 getInputFrequencyOffset(); |
||||
void setInputFrequencyOffset(qint64 input_frequency_offset); |
||||
|
||||
qint32 getBandwidthIndex(); |
||||
void setBandwidthIndex(qint32 bandwidth_index); |
||||
|
||||
qint32 getSpreadFactor(); |
||||
void setSpreadFactor(qint32 spread_factor); |
||||
|
||||
qint32 getDeBits(); |
||||
void setDeBits(qint32 de_bits); |
||||
|
||||
qint32 getDecodeActive(); |
||||
void setDecodeActive(qint32 decode_active); |
||||
|
||||
qint32 getEomSquelchTenths(); |
||||
void setEomSquelchTenths(qint32 eom_squelch_tenths); |
||||
|
||||
qint32 getNbSymbolsMax(); |
||||
void setNbSymbolsMax(qint32 nb_symbols_max); |
||||
|
||||
qint32 getPreambleChirps(); |
||||
void setPreambleChirps(qint32 preamble_chirps); |
||||
|
||||
qint32 getNbParityBits(); |
||||
void setNbParityBits(qint32 nb_parity_bits); |
||||
|
||||
qint32 getPacketLength(); |
||||
void setPacketLength(qint32 packet_length); |
||||
|
||||
qint32 getSendViaUdp(); |
||||
void setSendViaUdp(qint32 send_via_udp); |
||||
|
||||
qint32 getUdpEnabled(); |
||||
void setUdpEnabled(qint32 udp_enabled); |
||||
|
||||
QString* getUdpAddress(); |
||||
void setUdpAddress(QString* udp_address); |
||||
|
||||
qint32 getUdpPort(); |
||||
void setUdpPort(qint32 udp_port); |
||||
|
||||
qint32 getInvertRamps(); |
||||
void setInvertRamps(qint32 invert_ramps); |
||||
|
||||
qint32 getRgbColor(); |
||||
void setRgbColor(qint32 rgb_color); |
||||
|
||||
QString* getTitle(); |
||||
void setTitle(QString* title); |
||||
|
||||
qint32 getStreamIndex(); |
||||
void setStreamIndex(qint32 stream_index); |
||||
|
||||
qint32 getUseReverseApi(); |
||||
void setUseReverseApi(qint32 use_reverse_api); |
||||
|
||||
QString* getReverseApiAddress(); |
||||
void setReverseApiAddress(QString* reverse_api_address); |
||||
|
||||
qint32 getReverseApiPort(); |
||||
void setReverseApiPort(qint32 reverse_api_port); |
||||
|
||||
qint32 getReverseApiDeviceIndex(); |
||||
void setReverseApiDeviceIndex(qint32 reverse_api_device_index); |
||||
|
||||
qint32 getReverseApiChannelIndex(); |
||||
void setReverseApiChannelIndex(qint32 reverse_api_channel_index); |
||||
|
||||
SWGGLSpectrum* getSpectrumConfig(); |
||||
void setSpectrumConfig(SWGGLSpectrum* spectrum_config); |
||||
|
||||
SWGChannelMarker* getChannelMarker(); |
||||
void setChannelMarker(SWGChannelMarker* channel_marker); |
||||
|
||||
SWGRollupState* getRollupState(); |
||||
void setRollupState(SWGRollupState* rollup_state); |
||||
|
||||
|
||||
virtual bool isSet() override; |
||||
|
||||
private: |
||||
qint64 input_frequency_offset; |
||||
bool m_input_frequency_offset_isSet; |
||||
|
||||
qint32 bandwidth_index; |
||||
bool m_bandwidth_index_isSet; |
||||
|
||||
qint32 spread_factor; |
||||
bool m_spread_factor_isSet; |
||||
|
||||
qint32 de_bits; |
||||
bool m_de_bits_isSet; |
||||
|
||||
qint32 decode_active; |
||||
bool m_decode_active_isSet; |
||||
|
||||
qint32 eom_squelch_tenths; |
||||
bool m_eom_squelch_tenths_isSet; |
||||
|
||||
qint32 nb_symbols_max; |
||||
bool m_nb_symbols_max_isSet; |
||||
|
||||
qint32 preamble_chirps; |
||||
bool m_preamble_chirps_isSet; |
||||
|
||||
qint32 nb_parity_bits; |
||||
bool m_nb_parity_bits_isSet; |
||||
|
||||
qint32 packet_length; |
||||
bool m_packet_length_isSet; |
||||
|
||||
qint32 send_via_udp; |
||||
bool m_send_via_udp_isSet; |
||||
|
||||
qint32 udp_enabled; |
||||
bool m_udp_enabled_isSet; |
||||
|
||||
QString* udp_address; |
||||
bool m_udp_address_isSet; |
||||
|
||||
qint32 udp_port; |
||||
bool m_udp_port_isSet; |
||||
|
||||
qint32 invert_ramps; |
||||
bool m_invert_ramps_isSet; |
||||
|
||||
qint32 rgb_color; |
||||
bool m_rgb_color_isSet; |
||||
|
||||
QString* title; |
||||
bool m_title_isSet; |
||||
|
||||
qint32 stream_index; |
||||
bool m_stream_index_isSet; |
||||
|
||||
qint32 use_reverse_api; |
||||
bool m_use_reverse_api_isSet; |
||||
|
||||
QString* reverse_api_address; |
||||
bool m_reverse_api_address_isSet; |
||||
|
||||
qint32 reverse_api_port; |
||||
bool m_reverse_api_port_isSet; |
||||
|
||||
qint32 reverse_api_device_index; |
||||
bool m_reverse_api_device_index_isSet; |
||||
|
||||
qint32 reverse_api_channel_index; |
||||
bool m_reverse_api_channel_index_isSet; |
||||
|
||||
SWGGLSpectrum* spectrum_config; |
||||
bool m_spectrum_config_isSet; |
||||
|
||||
SWGChannelMarker* channel_marker; |
||||
bool m_channel_marker_isSet; |
||||
|
||||
SWGRollupState* rollup_state; |
||||
bool m_rollup_state_isSet; |
||||
|
||||
}; |
||||
|
||||
} |
||||
|
||||
#endif /* SWGMeshtasticDemodSettings_H_ */ |
||||
@ -0,0 +1,223 @@
@@ -0,0 +1,223 @@
|
||||
/**
|
||||
* SDRangel |
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
* |
||||
* OpenAPI spec version: 7.0.0 |
||||
* Contact: f4exb06@gmail.com |
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*/ |
||||
|
||||
|
||||
#include "SWGMeshtasticModReport.h" |
||||
|
||||
#include "SWGHelpers.h" |
||||
|
||||
#include <QJsonDocument> |
||||
#include <QJsonArray> |
||||
#include <QObject> |
||||
#include <QDebug> |
||||
|
||||
namespace SWGSDRangel { |
||||
|
||||
SWGMeshtasticModReport::SWGMeshtasticModReport(QString* json) { |
||||
init(); |
||||
this->fromJson(*json); |
||||
} |
||||
|
||||
SWGMeshtasticModReport::SWGMeshtasticModReport() { |
||||
channel_power_db = 0.0f; |
||||
m_channel_power_db_isSet = false; |
||||
channel_sample_rate = 0; |
||||
m_channel_sample_rate_isSet = false; |
||||
symbol_time_ms = 0.0f; |
||||
m_symbol_time_ms_isSet = false; |
||||
payload_time_ms = 0.0f; |
||||
m_payload_time_ms_isSet = false; |
||||
total_time_ms = 0.0f; |
||||
m_total_time_ms_isSet = false; |
||||
playing = 0; |
||||
m_playing_isSet = false; |
||||
} |
||||
|
||||
SWGMeshtasticModReport::~SWGMeshtasticModReport() { |
||||
this->cleanup(); |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticModReport::init() { |
||||
channel_power_db = 0.0f; |
||||
m_channel_power_db_isSet = false; |
||||
channel_sample_rate = 0; |
||||
m_channel_sample_rate_isSet = false; |
||||
symbol_time_ms = 0.0f; |
||||
m_symbol_time_ms_isSet = false; |
||||
payload_time_ms = 0.0f; |
||||
m_payload_time_ms_isSet = false; |
||||
total_time_ms = 0.0f; |
||||
m_total_time_ms_isSet = false; |
||||
playing = 0; |
||||
m_playing_isSet = false; |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticModReport::cleanup() { |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} |
||||
|
||||
SWGMeshtasticModReport* |
||||
SWGMeshtasticModReport::fromJson(QString &json) { |
||||
QByteArray array (json.toStdString().c_str()); |
||||
QJsonDocument doc = QJsonDocument::fromJson(array); |
||||
QJsonObject jsonObject = doc.object(); |
||||
this->fromJsonObject(jsonObject); |
||||
return this; |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticModReport::fromJsonObject(QJsonObject &pJson) { |
||||
::SWGSDRangel::setValue(&channel_power_db, pJson["channelPowerDB"], "float", ""); |
||||
|
||||
::SWGSDRangel::setValue(&channel_sample_rate, pJson["channelSampleRate"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&symbol_time_ms, pJson["symbolTimeMs"], "float", ""); |
||||
|
||||
::SWGSDRangel::setValue(&payload_time_ms, pJson["payloadTimeMs"], "float", ""); |
||||
|
||||
::SWGSDRangel::setValue(&total_time_ms, pJson["totalTimeMs"], "float", ""); |
||||
|
||||
::SWGSDRangel::setValue(&playing, pJson["playing"], "qint32", ""); |
||||
|
||||
} |
||||
|
||||
QString |
||||
SWGMeshtasticModReport::asJson () |
||||
{ |
||||
QJsonObject* obj = this->asJsonObject(); |
||||
|
||||
QJsonDocument doc(*obj); |
||||
QByteArray bytes = doc.toJson(); |
||||
delete obj; |
||||
return QString(bytes); |
||||
} |
||||
|
||||
QJsonObject* |
||||
SWGMeshtasticModReport::asJsonObject() { |
||||
QJsonObject* obj = new QJsonObject(); |
||||
if(m_channel_power_db_isSet){ |
||||
obj->insert("channelPowerDB", QJsonValue(channel_power_db)); |
||||
} |
||||
if(m_channel_sample_rate_isSet){ |
||||
obj->insert("channelSampleRate", QJsonValue(channel_sample_rate)); |
||||
} |
||||
if(m_symbol_time_ms_isSet){ |
||||
obj->insert("symbolTimeMs", QJsonValue(symbol_time_ms)); |
||||
} |
||||
if(m_payload_time_ms_isSet){ |
||||
obj->insert("payloadTimeMs", QJsonValue(payload_time_ms)); |
||||
} |
||||
if(m_total_time_ms_isSet){ |
||||
obj->insert("totalTimeMs", QJsonValue(total_time_ms)); |
||||
} |
||||
if(m_playing_isSet){ |
||||
obj->insert("playing", QJsonValue(playing)); |
||||
} |
||||
|
||||
return obj; |
||||
} |
||||
|
||||
float |
||||
SWGMeshtasticModReport::getChannelPowerDb() { |
||||
return channel_power_db; |
||||
} |
||||
void |
||||
SWGMeshtasticModReport::setChannelPowerDb(float channel_power_db) { |
||||
this->channel_power_db = channel_power_db; |
||||
this->m_channel_power_db_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModReport::getChannelSampleRate() { |
||||
return channel_sample_rate; |
||||
} |
||||
void |
||||
SWGMeshtasticModReport::setChannelSampleRate(qint32 channel_sample_rate) { |
||||
this->channel_sample_rate = channel_sample_rate; |
||||
this->m_channel_sample_rate_isSet = true; |
||||
} |
||||
|
||||
float |
||||
SWGMeshtasticModReport::getSymbolTimeMs() { |
||||
return symbol_time_ms; |
||||
} |
||||
void |
||||
SWGMeshtasticModReport::setSymbolTimeMs(float symbol_time_ms) { |
||||
this->symbol_time_ms = symbol_time_ms; |
||||
this->m_symbol_time_ms_isSet = true; |
||||
} |
||||
|
||||
float |
||||
SWGMeshtasticModReport::getPayloadTimeMs() { |
||||
return payload_time_ms; |
||||
} |
||||
void |
||||
SWGMeshtasticModReport::setPayloadTimeMs(float payload_time_ms) { |
||||
this->payload_time_ms = payload_time_ms; |
||||
this->m_payload_time_ms_isSet = true; |
||||
} |
||||
|
||||
float |
||||
SWGMeshtasticModReport::getTotalTimeMs() { |
||||
return total_time_ms; |
||||
} |
||||
void |
||||
SWGMeshtasticModReport::setTotalTimeMs(float total_time_ms) { |
||||
this->total_time_ms = total_time_ms; |
||||
this->m_total_time_ms_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModReport::getPlaying() { |
||||
return playing; |
||||
} |
||||
void |
||||
SWGMeshtasticModReport::setPlaying(qint32 playing) { |
||||
this->playing = playing; |
||||
this->m_playing_isSet = true; |
||||
} |
||||
|
||||
|
||||
bool |
||||
SWGMeshtasticModReport::isSet(){ |
||||
bool isObjectUpdated = false; |
||||
do{ |
||||
if(m_channel_power_db_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_channel_sample_rate_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_symbol_time_ms_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_payload_time_ms_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_total_time_ms_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_playing_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
}while(false); |
||||
return isObjectUpdated; |
||||
} |
||||
} |
||||
|
||||
@ -0,0 +1,88 @@
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* SDRangel |
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
* |
||||
* OpenAPI spec version: 7.0.0 |
||||
* Contact: f4exb06@gmail.com |
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*/ |
||||
|
||||
/*
|
||||
* SWGMeshtasticModReport.h |
||||
* |
||||
* MeshtasticMod |
||||
*/ |
||||
|
||||
#ifndef SWGMeshtasticModReport_H_ |
||||
#define SWGMeshtasticModReport_H_ |
||||
|
||||
#include <QJsonObject> |
||||
|
||||
|
||||
|
||||
#include "SWGObject.h" |
||||
#include "export.h" |
||||
|
||||
namespace SWGSDRangel { |
||||
|
||||
class SWG_API SWGMeshtasticModReport: public SWGObject { |
||||
public: |
||||
SWGMeshtasticModReport(); |
||||
SWGMeshtasticModReport(QString* json); |
||||
virtual ~SWGMeshtasticModReport(); |
||||
void init(); |
||||
void cleanup(); |
||||
|
||||
virtual QString asJson () override; |
||||
virtual QJsonObject* asJsonObject() override; |
||||
virtual void fromJsonObject(QJsonObject &json) override; |
||||
virtual SWGMeshtasticModReport* fromJson(QString &jsonString) override; |
||||
|
||||
float getChannelPowerDb(); |
||||
void setChannelPowerDb(float channel_power_db); |
||||
|
||||
qint32 getChannelSampleRate(); |
||||
void setChannelSampleRate(qint32 channel_sample_rate); |
||||
|
||||
float getSymbolTimeMs(); |
||||
void setSymbolTimeMs(float symbol_time_ms); |
||||
|
||||
float getPayloadTimeMs(); |
||||
void setPayloadTimeMs(float payload_time_ms); |
||||
|
||||
float getTotalTimeMs(); |
||||
void setTotalTimeMs(float total_time_ms); |
||||
|
||||
qint32 getPlaying(); |
||||
void setPlaying(qint32 playing); |
||||
|
||||
|
||||
virtual bool isSet() override; |
||||
|
||||
private: |
||||
float channel_power_db; |
||||
bool m_channel_power_db_isSet; |
||||
|
||||
qint32 channel_sample_rate; |
||||
bool m_channel_sample_rate_isSet; |
||||
|
||||
float symbol_time_ms; |
||||
bool m_symbol_time_ms_isSet; |
||||
|
||||
float payload_time_ms; |
||||
bool m_payload_time_ms_isSet; |
||||
|
||||
float total_time_ms; |
||||
bool m_total_time_ms_isSet; |
||||
|
||||
qint32 playing; |
||||
bool m_playing_isSet; |
||||
|
||||
}; |
||||
|
||||
} |
||||
|
||||
#endif /* SWGMeshtasticModReport_H_ */ |
||||
@ -0,0 +1,672 @@
@@ -0,0 +1,672 @@
|
||||
/**
|
||||
* SDRangel |
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
* |
||||
* OpenAPI spec version: 7.0.0 |
||||
* Contact: f4exb06@gmail.com |
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*/ |
||||
|
||||
|
||||
#include "SWGMeshtasticModSettings.h" |
||||
|
||||
#include "SWGHelpers.h" |
||||
|
||||
#include <QJsonDocument> |
||||
#include <QJsonArray> |
||||
#include <QObject> |
||||
#include <QDebug> |
||||
|
||||
namespace SWGSDRangel { |
||||
|
||||
SWGMeshtasticModSettings::SWGMeshtasticModSettings(QString* json) { |
||||
init(); |
||||
this->fromJson(*json); |
||||
} |
||||
|
||||
SWGMeshtasticModSettings::SWGMeshtasticModSettings() { |
||||
input_frequency_offset = 0L; |
||||
m_input_frequency_offset_isSet = false; |
||||
bandwidth_index = 0; |
||||
m_bandwidth_index_isSet = false; |
||||
spread_factor = 0; |
||||
m_spread_factor_isSet = false; |
||||
de_bits = 0; |
||||
m_de_bits_isSet = false; |
||||
preamble_chirps = 0; |
||||
m_preamble_chirps_isSet = false; |
||||
quiet_millis = 0; |
||||
m_quiet_millis_isSet = false; |
||||
sync_word = 0; |
||||
m_sync_word_isSet = false; |
||||
channel_mute = 0; |
||||
m_channel_mute_isSet = false; |
||||
nb_parity_bits = 0; |
||||
m_nb_parity_bits_isSet = false; |
||||
text_message = nullptr; |
||||
m_text_message_isSet = false; |
||||
message_repeat = 0; |
||||
m_message_repeat_isSet = false; |
||||
udp_enabled = 0; |
||||
m_udp_enabled_isSet = false; |
||||
udp_address = nullptr; |
||||
m_udp_address_isSet = false; |
||||
udp_port = 0; |
||||
m_udp_port_isSet = false; |
||||
invert_ramps = 0; |
||||
m_invert_ramps_isSet = false; |
||||
rgb_color = 0; |
||||
m_rgb_color_isSet = false; |
||||
title = nullptr; |
||||
m_title_isSet = false; |
||||
stream_index = 0; |
||||
m_stream_index_isSet = false; |
||||
use_reverse_api = 0; |
||||
m_use_reverse_api_isSet = false; |
||||
reverse_api_address = nullptr; |
||||
m_reverse_api_address_isSet = false; |
||||
reverse_api_port = 0; |
||||
m_reverse_api_port_isSet = false; |
||||
reverse_api_device_index = 0; |
||||
m_reverse_api_device_index_isSet = false; |
||||
reverse_api_channel_index = 0; |
||||
m_reverse_api_channel_index_isSet = false; |
||||
channel_marker = nullptr; |
||||
m_channel_marker_isSet = false; |
||||
rollup_state = nullptr; |
||||
m_rollup_state_isSet = false; |
||||
} |
||||
|
||||
SWGMeshtasticModSettings::~SWGMeshtasticModSettings() { |
||||
this->cleanup(); |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticModSettings::init() { |
||||
input_frequency_offset = 0L; |
||||
m_input_frequency_offset_isSet = false; |
||||
bandwidth_index = 0; |
||||
m_bandwidth_index_isSet = false; |
||||
spread_factor = 0; |
||||
m_spread_factor_isSet = false; |
||||
de_bits = 0; |
||||
m_de_bits_isSet = false; |
||||
preamble_chirps = 0; |
||||
m_preamble_chirps_isSet = false; |
||||
quiet_millis = 0; |
||||
m_quiet_millis_isSet = false; |
||||
sync_word = 0; |
||||
m_sync_word_isSet = false; |
||||
channel_mute = 0; |
||||
m_channel_mute_isSet = false; |
||||
nb_parity_bits = 0; |
||||
m_nb_parity_bits_isSet = false; |
||||
text_message = new QString(""); |
||||
m_text_message_isSet = false; |
||||
message_repeat = 0; |
||||
m_message_repeat_isSet = false; |
||||
udp_enabled = 0; |
||||
m_udp_enabled_isSet = false; |
||||
udp_address = new QString(""); |
||||
m_udp_address_isSet = false; |
||||
udp_port = 0; |
||||
m_udp_port_isSet = false; |
||||
invert_ramps = 0; |
||||
m_invert_ramps_isSet = false; |
||||
rgb_color = 0; |
||||
m_rgb_color_isSet = false; |
||||
title = new QString(""); |
||||
m_title_isSet = false; |
||||
stream_index = 0; |
||||
m_stream_index_isSet = false; |
||||
use_reverse_api = 0; |
||||
m_use_reverse_api_isSet = false; |
||||
reverse_api_address = new QString(""); |
||||
m_reverse_api_address_isSet = false; |
||||
reverse_api_port = 0; |
||||
m_reverse_api_port_isSet = false; |
||||
reverse_api_device_index = 0; |
||||
m_reverse_api_device_index_isSet = false; |
||||
reverse_api_channel_index = 0; |
||||
m_reverse_api_channel_index_isSet = false; |
||||
channel_marker = new SWGChannelMarker(); |
||||
m_channel_marker_isSet = false; |
||||
rollup_state = new SWGRollupState(); |
||||
m_rollup_state_isSet = false; |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticModSettings::cleanup() { |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(text_message != nullptr) {
|
||||
delete text_message; |
||||
} |
||||
|
||||
|
||||
if(udp_address != nullptr) {
|
||||
delete udp_address; |
||||
} |
||||
|
||||
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title; |
||||
} |
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
delete reverse_api_address; |
||||
} |
||||
|
||||
|
||||
|
||||
if(channel_marker != nullptr) {
|
||||
delete channel_marker; |
||||
} |
||||
if(rollup_state != nullptr) {
|
||||
delete rollup_state; |
||||
} |
||||
} |
||||
|
||||
SWGMeshtasticModSettings* |
||||
SWGMeshtasticModSettings::fromJson(QString &json) { |
||||
QByteArray array (json.toStdString().c_str()); |
||||
QJsonDocument doc = QJsonDocument::fromJson(array); |
||||
QJsonObject jsonObject = doc.object(); |
||||
this->fromJsonObject(jsonObject); |
||||
return this; |
||||
} |
||||
|
||||
void |
||||
SWGMeshtasticModSettings::fromJsonObject(QJsonObject &pJson) { |
||||
::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", ""); |
||||
|
||||
::SWGSDRangel::setValue(&bandwidth_index, pJson["bandwidthIndex"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&spread_factor, pJson["spreadFactor"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&de_bits, pJson["deBits"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&preamble_chirps, pJson["preambleChirps"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&quiet_millis, pJson["quietMillis"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&sync_word, pJson["syncWord"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&channel_mute, pJson["channelMute"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&nb_parity_bits, pJson["nbParityBits"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&text_message, pJson["textMessage"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&message_repeat, pJson["messageRepeat"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&udp_address, pJson["udpAddress"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&udp_port, pJson["udpPort"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&invert_ramps, pJson["invertRamps"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); |
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", ""); |
||||
|
||||
::SWGSDRangel::setValue(&channel_marker, pJson["channelMarker"], "SWGChannelMarker", "SWGChannelMarker"); |
||||
|
||||
::SWGSDRangel::setValue(&rollup_state, pJson["rollupState"], "SWGRollupState", "SWGRollupState"); |
||||
|
||||
} |
||||
|
||||
QString |
||||
SWGMeshtasticModSettings::asJson () |
||||
{ |
||||
QJsonObject* obj = this->asJsonObject(); |
||||
|
||||
QJsonDocument doc(*obj); |
||||
QByteArray bytes = doc.toJson(); |
||||
delete obj; |
||||
return QString(bytes); |
||||
} |
||||
|
||||
QJsonObject* |
||||
SWGMeshtasticModSettings::asJsonObject() { |
||||
QJsonObject* obj = new QJsonObject(); |
||||
if(m_input_frequency_offset_isSet){ |
||||
obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset)); |
||||
} |
||||
if(m_bandwidth_index_isSet){ |
||||
obj->insert("bandwidthIndex", QJsonValue(bandwidth_index)); |
||||
} |
||||
if(m_spread_factor_isSet){ |
||||
obj->insert("spreadFactor", QJsonValue(spread_factor)); |
||||
} |
||||
if(m_de_bits_isSet){ |
||||
obj->insert("deBits", QJsonValue(de_bits)); |
||||
} |
||||
if(m_preamble_chirps_isSet){ |
||||
obj->insert("preambleChirps", QJsonValue(preamble_chirps)); |
||||
} |
||||
if(m_quiet_millis_isSet){ |
||||
obj->insert("quietMillis", QJsonValue(quiet_millis)); |
||||
} |
||||
if(m_sync_word_isSet){ |
||||
obj->insert("syncWord", QJsonValue(sync_word)); |
||||
} |
||||
if(m_channel_mute_isSet){ |
||||
obj->insert("channelMute", QJsonValue(channel_mute)); |
||||
} |
||||
if(m_nb_parity_bits_isSet){ |
||||
obj->insert("nbParityBits", QJsonValue(nb_parity_bits)); |
||||
} |
||||
if(text_message != nullptr && *text_message != QString("")){ |
||||
toJsonValue(QString("textMessage"), text_message, obj, QString("QString")); |
||||
} |
||||
if(m_message_repeat_isSet){ |
||||
obj->insert("messageRepeat", QJsonValue(message_repeat)); |
||||
} |
||||
if(m_udp_enabled_isSet){ |
||||
obj->insert("udpEnabled", QJsonValue(udp_enabled)); |
||||
} |
||||
if(udp_address != nullptr && *udp_address != QString("")){ |
||||
toJsonValue(QString("udpAddress"), udp_address, obj, QString("QString")); |
||||
} |
||||
if(m_udp_port_isSet){ |
||||
obj->insert("udpPort", QJsonValue(udp_port)); |
||||
} |
||||
if(m_invert_ramps_isSet){ |
||||
obj->insert("invertRamps", QJsonValue(invert_ramps)); |
||||
} |
||||
if(m_rgb_color_isSet){ |
||||
obj->insert("rgbColor", QJsonValue(rgb_color)); |
||||
} |
||||
if(title != nullptr && *title != QString("")){ |
||||
toJsonValue(QString("title"), title, obj, QString("QString")); |
||||
} |
||||
if(m_stream_index_isSet){ |
||||
obj->insert("streamIndex", QJsonValue(stream_index)); |
||||
} |
||||
if(m_use_reverse_api_isSet){ |
||||
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); |
||||
} |
||||
if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ |
||||
toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString")); |
||||
} |
||||
if(m_reverse_api_port_isSet){ |
||||
obj->insert("reverseAPIPort", QJsonValue(reverse_api_port)); |
||||
} |
||||
if(m_reverse_api_device_index_isSet){ |
||||
obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index)); |
||||
} |
||||
if(m_reverse_api_channel_index_isSet){ |
||||
obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index)); |
||||
} |
||||
if((channel_marker != nullptr) && (channel_marker->isSet())){ |
||||
toJsonValue(QString("channelMarker"), channel_marker, obj, QString("SWGChannelMarker")); |
||||
} |
||||
if((rollup_state != nullptr) && (rollup_state->isSet())){ |
||||
toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState")); |
||||
} |
||||
|
||||
return obj; |
||||
} |
||||
|
||||
qint64 |
||||
SWGMeshtasticModSettings::getInputFrequencyOffset() { |
||||
return input_frequency_offset; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setInputFrequencyOffset(qint64 input_frequency_offset) { |
||||
this->input_frequency_offset = input_frequency_offset; |
||||
this->m_input_frequency_offset_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getBandwidthIndex() { |
||||
return bandwidth_index; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setBandwidthIndex(qint32 bandwidth_index) { |
||||
this->bandwidth_index = bandwidth_index; |
||||
this->m_bandwidth_index_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getSpreadFactor() { |
||||
return spread_factor; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setSpreadFactor(qint32 spread_factor) { |
||||
this->spread_factor = spread_factor; |
||||
this->m_spread_factor_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getDeBits() { |
||||
return de_bits; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setDeBits(qint32 de_bits) { |
||||
this->de_bits = de_bits; |
||||
this->m_de_bits_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getPreambleChirps() { |
||||
return preamble_chirps; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setPreambleChirps(qint32 preamble_chirps) { |
||||
this->preamble_chirps = preamble_chirps; |
||||
this->m_preamble_chirps_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getQuietMillis() { |
||||
return quiet_millis; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setQuietMillis(qint32 quiet_millis) { |
||||
this->quiet_millis = quiet_millis; |
||||
this->m_quiet_millis_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getSyncWord() { |
||||
return sync_word; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setSyncWord(qint32 sync_word) { |
||||
this->sync_word = sync_word; |
||||
this->m_sync_word_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getChannelMute() { |
||||
return channel_mute; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setChannelMute(qint32 channel_mute) { |
||||
this->channel_mute = channel_mute; |
||||
this->m_channel_mute_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getNbParityBits() { |
||||
return nb_parity_bits; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setNbParityBits(qint32 nb_parity_bits) { |
||||
this->nb_parity_bits = nb_parity_bits; |
||||
this->m_nb_parity_bits_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticModSettings::getTextMessage() { |
||||
return text_message; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setTextMessage(QString* text_message) { |
||||
this->text_message = text_message; |
||||
this->m_text_message_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getMessageRepeat() { |
||||
return message_repeat; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setMessageRepeat(qint32 message_repeat) { |
||||
this->message_repeat = message_repeat; |
||||
this->m_message_repeat_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getUdpEnabled() { |
||||
return udp_enabled; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setUdpEnabled(qint32 udp_enabled) { |
||||
this->udp_enabled = udp_enabled; |
||||
this->m_udp_enabled_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticModSettings::getUdpAddress() { |
||||
return udp_address; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setUdpAddress(QString* udp_address) { |
||||
this->udp_address = udp_address; |
||||
this->m_udp_address_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getUdpPort() { |
||||
return udp_port; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setUdpPort(qint32 udp_port) { |
||||
this->udp_port = udp_port; |
||||
this->m_udp_port_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getInvertRamps() { |
||||
return invert_ramps; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setInvertRamps(qint32 invert_ramps) { |
||||
this->invert_ramps = invert_ramps; |
||||
this->m_invert_ramps_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getRgbColor() { |
||||
return rgb_color; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setRgbColor(qint32 rgb_color) { |
||||
this->rgb_color = rgb_color; |
||||
this->m_rgb_color_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticModSettings::getTitle() { |
||||
return title; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setTitle(QString* title) { |
||||
this->title = title; |
||||
this->m_title_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getStreamIndex() { |
||||
return stream_index; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setStreamIndex(qint32 stream_index) { |
||||
this->stream_index = stream_index; |
||||
this->m_stream_index_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getUseReverseApi() { |
||||
return use_reverse_api; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setUseReverseApi(qint32 use_reverse_api) { |
||||
this->use_reverse_api = use_reverse_api; |
||||
this->m_use_reverse_api_isSet = true; |
||||
} |
||||
|
||||
QString* |
||||
SWGMeshtasticModSettings::getReverseApiAddress() { |
||||
return reverse_api_address; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setReverseApiAddress(QString* reverse_api_address) { |
||||
this->reverse_api_address = reverse_api_address; |
||||
this->m_reverse_api_address_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getReverseApiPort() { |
||||
return reverse_api_port; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setReverseApiPort(qint32 reverse_api_port) { |
||||
this->reverse_api_port = reverse_api_port; |
||||
this->m_reverse_api_port_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getReverseApiDeviceIndex() { |
||||
return reverse_api_device_index; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) { |
||||
this->reverse_api_device_index = reverse_api_device_index; |
||||
this->m_reverse_api_device_index_isSet = true; |
||||
} |
||||
|
||||
qint32 |
||||
SWGMeshtasticModSettings::getReverseApiChannelIndex() { |
||||
return reverse_api_channel_index; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) { |
||||
this->reverse_api_channel_index = reverse_api_channel_index; |
||||
this->m_reverse_api_channel_index_isSet = true; |
||||
} |
||||
|
||||
SWGChannelMarker* |
||||
SWGMeshtasticModSettings::getChannelMarker() { |
||||
return channel_marker; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setChannelMarker(SWGChannelMarker* channel_marker) { |
||||
this->channel_marker = channel_marker; |
||||
this->m_channel_marker_isSet = true; |
||||
} |
||||
|
||||
SWGRollupState* |
||||
SWGMeshtasticModSettings::getRollupState() { |
||||
return rollup_state; |
||||
} |
||||
void |
||||
SWGMeshtasticModSettings::setRollupState(SWGRollupState* rollup_state) { |
||||
this->rollup_state = rollup_state; |
||||
this->m_rollup_state_isSet = true; |
||||
} |
||||
|
||||
|
||||
bool |
||||
SWGMeshtasticModSettings::isSet(){ |
||||
bool isObjectUpdated = false; |
||||
do{ |
||||
if(m_input_frequency_offset_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_bandwidth_index_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_spread_factor_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_de_bits_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_preamble_chirps_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_quiet_millis_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_sync_word_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_channel_mute_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_nb_parity_bits_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(text_message && *text_message != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_message_repeat_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_udp_enabled_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(udp_address && *udp_address != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_udp_port_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_invert_ramps_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_rgb_color_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(title && *title != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_stream_index_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_use_reverse_api_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(reverse_api_address && *reverse_api_address != QString("")){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_reverse_api_port_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_reverse_api_device_index_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(m_reverse_api_channel_index_isSet){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(channel_marker && channel_marker->isSet()){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
if(rollup_state && rollup_state->isSet()){ |
||||
isObjectUpdated = true; break; |
||||
} |
||||
}while(false); |
||||
return isObjectUpdated; |
||||
} |
||||
} |
||||
|
||||
@ -0,0 +1,205 @@
@@ -0,0 +1,205 @@
|
||||
/**
|
||||
* SDRangel |
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
* |
||||
* OpenAPI spec version: 7.0.0 |
||||
* Contact: f4exb06@gmail.com |
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*/ |
||||
|
||||
/*
|
||||
* SWGMeshtasticModSettings.h |
||||
* |
||||
* MeshtasticMod |
||||
*/ |
||||
|
||||
#ifndef SWGMeshtasticModSettings_H_ |
||||
#define SWGMeshtasticModSettings_H_ |
||||
|
||||
#include <QJsonObject> |
||||
|
||||
|
||||
#include "SWGChannelMarker.h" |
||||
#include "SWGRollupState.h" |
||||
#include <QString> |
||||
|
||||
#include "SWGObject.h" |
||||
#include "export.h" |
||||
|
||||
namespace SWGSDRangel { |
||||
|
||||
class SWG_API SWGMeshtasticModSettings: public SWGObject { |
||||
public: |
||||
SWGMeshtasticModSettings(); |
||||
SWGMeshtasticModSettings(QString* json); |
||||
virtual ~SWGMeshtasticModSettings(); |
||||
void init(); |
||||
void cleanup(); |
||||
|
||||
virtual QString asJson () override; |
||||
virtual QJsonObject* asJsonObject() override; |
||||
virtual void fromJsonObject(QJsonObject &json) override; |
||||
virtual SWGMeshtasticModSettings* fromJson(QString &jsonString) override; |
||||
|
||||
qint64 getInputFrequencyOffset(); |
||||
void setInputFrequencyOffset(qint64 input_frequency_offset); |
||||
|
||||
qint32 getBandwidthIndex(); |
||||
void setBandwidthIndex(qint32 bandwidth_index); |
||||
|
||||
qint32 getSpreadFactor(); |
||||
void setSpreadFactor(qint32 spread_factor); |
||||
|
||||
qint32 getDeBits(); |
||||
void setDeBits(qint32 de_bits); |
||||
|
||||
qint32 getPreambleChirps(); |
||||
void setPreambleChirps(qint32 preamble_chirps); |
||||
|
||||
qint32 getQuietMillis(); |
||||
void setQuietMillis(qint32 quiet_millis); |
||||
|
||||
qint32 getSyncWord(); |
||||
void setSyncWord(qint32 sync_word); |
||||
|
||||
qint32 getChannelMute(); |
||||
void setChannelMute(qint32 channel_mute); |
||||
|
||||
qint32 getNbParityBits(); |
||||
void setNbParityBits(qint32 nb_parity_bits); |
||||
|
||||
QString* getTextMessage(); |
||||
void setTextMessage(QString* text_message); |
||||
|
||||
qint32 getMessageRepeat(); |
||||
void setMessageRepeat(qint32 message_repeat); |
||||
|
||||
qint32 getUdpEnabled(); |
||||
void setUdpEnabled(qint32 udp_enabled); |
||||
|
||||
QString* getUdpAddress(); |
||||
void setUdpAddress(QString* udp_address); |
||||
|
||||
qint32 getUdpPort(); |
||||
void setUdpPort(qint32 udp_port); |
||||
|
||||
qint32 getInvertRamps(); |
||||
void setInvertRamps(qint32 invert_ramps); |
||||
|
||||
qint32 getRgbColor(); |
||||
void setRgbColor(qint32 rgb_color); |
||||
|
||||
QString* getTitle(); |
||||
void setTitle(QString* title); |
||||
|
||||
qint32 getStreamIndex(); |
||||
void setStreamIndex(qint32 stream_index); |
||||
|
||||
qint32 getUseReverseApi(); |
||||
void setUseReverseApi(qint32 use_reverse_api); |
||||
|
||||
QString* getReverseApiAddress(); |
||||
void setReverseApiAddress(QString* reverse_api_address); |
||||
|
||||
qint32 getReverseApiPort(); |
||||
void setReverseApiPort(qint32 reverse_api_port); |
||||
|
||||
qint32 getReverseApiDeviceIndex(); |
||||
void setReverseApiDeviceIndex(qint32 reverse_api_device_index); |
||||
|
||||
qint32 getReverseApiChannelIndex(); |
||||
void setReverseApiChannelIndex(qint32 reverse_api_channel_index); |
||||
|
||||
SWGChannelMarker* getChannelMarker(); |
||||
void setChannelMarker(SWGChannelMarker* channel_marker); |
||||
|
||||
SWGRollupState* getRollupState(); |
||||
void setRollupState(SWGRollupState* rollup_state); |
||||
|
||||
|
||||
virtual bool isSet() override; |
||||
|
||||
private: |
||||
qint64 input_frequency_offset; |
||||
bool m_input_frequency_offset_isSet; |
||||
|
||||
qint32 bandwidth_index; |
||||
bool m_bandwidth_index_isSet; |
||||
|
||||
qint32 spread_factor; |
||||
bool m_spread_factor_isSet; |
||||
|
||||
qint32 de_bits; |
||||
bool m_de_bits_isSet; |
||||
|
||||
qint32 preamble_chirps; |
||||
bool m_preamble_chirps_isSet; |
||||
|
||||
qint32 quiet_millis; |
||||
bool m_quiet_millis_isSet; |
||||
|
||||
qint32 sync_word; |
||||
bool m_sync_word_isSet; |
||||
|
||||
qint32 channel_mute; |
||||
bool m_channel_mute_isSet; |
||||
|
||||
qint32 nb_parity_bits; |
||||
bool m_nb_parity_bits_isSet; |
||||
|
||||
QString* text_message; |
||||
bool m_text_message_isSet; |
||||
|
||||
qint32 message_repeat; |
||||
bool m_message_repeat_isSet; |
||||
|
||||
qint32 udp_enabled; |
||||
bool m_udp_enabled_isSet; |
||||
|
||||
QString* udp_address; |
||||
bool m_udp_address_isSet; |
||||
|
||||
qint32 udp_port; |
||||
bool m_udp_port_isSet; |
||||
|
||||
qint32 invert_ramps; |
||||
bool m_invert_ramps_isSet; |
||||
|
||||
qint32 rgb_color; |
||||
bool m_rgb_color_isSet; |
||||
|
||||
QString* title; |
||||
bool m_title_isSet; |
||||
|
||||
qint32 stream_index; |
||||
bool m_stream_index_isSet; |
||||
|
||||
qint32 use_reverse_api; |
||||
bool m_use_reverse_api_isSet; |
||||
|
||||
QString* reverse_api_address; |
||||
bool m_reverse_api_address_isSet; |
||||
|
||||
qint32 reverse_api_port; |
||||
bool m_reverse_api_port_isSet; |
||||
|
||||
qint32 reverse_api_device_index; |
||||
bool m_reverse_api_device_index_isSet; |
||||
|
||||
qint32 reverse_api_channel_index; |
||||
bool m_reverse_api_channel_index_isSet; |
||||
|
||||
SWGChannelMarker* channel_marker; |
||||
bool m_channel_marker_isSet; |
||||
|
||||
SWGRollupState* rollup_state; |
||||
bool m_rollup_state_isSet; |
||||
|
||||
}; |
||||
|
||||
} |
||||
|
||||
#endif /* SWGMeshtasticModSettings_H_ */ |
||||
Loading…
Reference in new issue