COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Transceiver information. More...
#include <jsondef.h>
Public Member Functions | |
json11::Json | to_json () const |
Convert class contents to JSON object. More... | |
void | from_json (const string &s) |
Set class contents from JSON string. More... | |
Public Attributes | |
uint16_t | opmode = 0 |
Operating mode. More... | |
uint16_t | modulation = 0 |
Data modulation. More... | |
uint16_t | rssi = 0 |
RSSI. More... | |
uint16_t | pktsize = 0 |
Packet Size. More... | |
double | freq = 0. |
Input Frequency. More... | |
double | maxfreq = 0. |
Maximum frequency allowed. More... | |
double | minfreq = 0. |
Minimum frequency allowed. More... | |
float | powerin = 0.f |
Current RX Power. More... | |
float | powerout = 0.f |
Current TX Power. More... | |
float | maxpower = 0.f |
Output Power limit. More... | |
float | band = 0.f |
Input Filter bandpass. More... | |
float | squelch_tone = 0.f |
repeater squelch tone frequency More... | |
double | goodratio = 0. |
Good Packet Percentage. More... | |
double | txutc = 0. |
Last TX time. More... | |
double | rxutc = 0. |
Last RX time. More... | |
double | uptime = 0. |
Connection Uptime. More... | |
Transceiver information.
This structure holds the information concerning transceivers.
|
inline |
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
s | JSON-formatted string to set class contents to |
uint16_t tcvstruc::opmode = 0 |
Operating mode.
uint16_t tcvstruc::modulation = 0 |
Data modulation.
uint16_t tcvstruc::rssi = 0 |
RSSI.
uint16_t tcvstruc::pktsize = 0 |
Packet Size.
double tcvstruc::freq = 0. |
Input Frequency.
double tcvstruc::maxfreq = 0. |
Maximum frequency allowed.
double tcvstruc::minfreq = 0. |
Minimum frequency allowed.
float tcvstruc::powerin = 0.f |
Current RX Power.
float tcvstruc::powerout = 0.f |
Current TX Power.
float tcvstruc::maxpower = 0.f |
Output Power limit.
float tcvstruc::band = 0.f |
Input Filter bandpass.
float tcvstruc::squelch_tone = 0.f |
repeater squelch tone frequency
double tcvstruc::goodratio = 0. |
Good Packet Percentage.
double tcvstruc::txutc = 0. |
Last TX time.
double tcvstruc::rxutc = 0. |
Last RX time.
double tcvstruc::uptime = 0. |
Connection Uptime.