COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Receiver 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 | rxutc = 0. |
Last RX time. More... | |
double | uptime = 0. |
Connection Uptime. More... | |
Receiver information.
This structure holds the information concerning receivers.
|
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 rxrstruc::opmode = 0 |
Operating mode.
uint16_t rxrstruc::modulation = 0 |
Data modulation.
uint16_t rxrstruc::rssi = 0 |
RSSI.
uint16_t rxrstruc::pktsize = 0 |
Packet Size.
double rxrstruc::freq = 0. |
Input Frequency.
double rxrstruc::maxfreq = 0. |
Maximum frequency allowed.
double rxrstruc::minfreq = 0. |
Minimum frequency allowed.
float rxrstruc::powerin = 0.f |
Current RX Power.
float rxrstruc::powerout = 0.f |
Current TX Power.
float rxrstruc::maxpower = 0.f |
Output Power limit.
float rxrstruc::band = 0.f |
Input Filter bandpass.
float rxrstruc::squelch_tone = 0.f |
repeater squelch tone frequency
double rxrstruc::goodratio = 0. |
Good Packet Percentage.
double rxrstruc::rxutc = 0. |
Last RX time.
double rxrstruc::uptime = 0. |
Connection Uptime.