DESERT 3.5.1
|
#include <minterpreterTEL.h>
Public Member Functions | |
MinterpreterTEL (UWMdriver *) | |
~MinterpreterTEL () | |
std::string | build_poweron_DSP (int _step) |
std::string | build_poweroff_DSP (int _step) |
std::string | build_busy_FPGA () |
std::string | build_stop_listen () |
std::string | build_config_DSP (int _gain, int _chipset, int _sl, int _th, int _mps_th) |
std::string | build_recv_data (int msg_bytes, int _stop_f, double _delay) |
std::string | build_send_ctrl (std::string _ctrl, int _delay_f, double _delay) |
std::string | build_send_data (std::string _data, int _delay_f, double _delay) |
std::string | build_bitrate (int _bitrate) |
std::string | build_clear_tx () |
void | parse_TELEGRAM (std::string telegram) |
![]() | |
UWMinterpreter (UWMdriver *) | |
~UWMinterpreter () | |
UWMinterpreter (UWMdriver *) | |
~UWMinterpreter () | |
Private Attributes | |
double | rx_integrity |
Additional Inherited Members | |
![]() | |
UWMdriver * | pmDriver |
int | debug_ |
Class used to build and parse TELEGRAMS (this class derives UWMinterpreter); currently, this class implements methods to build/parse:
Definition at line 65 of file minterpreterTEL.h.
MinterpreterTEL::MinterpreterTEL | ( | UWMdriver * | pmDriver_ | ) |
Class constructor.
pmDriver_ | pointer to the UWMdriver object to link with this UWMinterpreter object. |
Definition at line 126 of file minterpreterTEL.cpp.
MinterpreterTEL::~MinterpreterTEL | ( | ) |
Class destructor.
Definition at line 133 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_bitrate | ( | int | _bitrate | ) |
Method for building the TELEGRAM that will set the bitrate used for transmission.
_bitrate |
Definition at line 268 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_busy_FPGA | ( | ) |
Method which builds the string to ask the DSP if it is busy doing modulation/demodulation.
The pin under consideration is a read-only pin.
Definition at line 181 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_clear_tx | ( | ) |
Method for building the COMMAND that will clear the tx_on pin.
Definition at line 287 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_config_DSP | ( | int | _gain, |
int | _chipset, | ||
int | _sl, | ||
int | _th, | ||
int | _mps_th | ||
) |
Method for building the TELEGRAM that will allow configuring the DSP.
It sets basic settings like gain and source level.
_gain | |
_chipset | |
_sl | |
_th | |
mps_th |
Definition at line 193 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_poweroff_DSP | ( | int | _step | ) |
Method for building the string for turning off the DSP of the modem which basically turns off the physical layer.
Steps go from 1 to 3.
_step | At which step of the turn off process are you (1-3)? |
Definition at line 161 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_poweron_DSP | ( | int | _step | ) |
Method for building the string that allow turning on the DSP of the modem, which basically turns on the physical layer: it is made up of four steps, numbered from 1 to 4,and there is a short interval of 1 second in the middle of the procedure.
_step | At which step of the turn on process are you (1-4)? |
Definition at line 138 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_recv_data | ( | int | msg_bytes, |
int | _stop_f, | ||
double | _delay | ||
) |
Method for building the TELEGRAM that will allow receiving BITS, wheter CONTROL or DATA messages.
It basically switches the physical layer to detect signals and demodulate them. Any new TELEGRAM automatically makes the physical layer to exit this mode.
_stop_f | Flag to tell the firmware to stop listening after _stop |
_delay | Time to wait before shutting stopping listening |
Definition at line 210 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_send_ctrl | ( | std::string | _ctrl, |
int | _delay_f, | ||
double | _delay | ||
) |
Method for building the TELEGRAM that will transmit CONTROL messages, which are short messanges of maximum length with fixed bitrate.
The bitrate is ? and maximum allowed length is ?.
_crtl | |
_delay_f | |
_delay |
Definition at line 228 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_send_data | ( | std::string | _data, |
int | _delay_f, | ||
double | _delay | ||
) |
Method for building the TELEGRAM that will send DATA messages.
The maximum allowed length of DATA messages is 7881
_data | |
_delay_f | Flag to tell the firmware to real _delay |
_delay | Can make the operation to wait some maount of time |
Definition at line 248 of file minterpreterTEL.cpp.
std::string MinterpreterTEL::build_stop_listen | ( | ) |
Method which builds the TELEGRAM that makes the physical layer to exit the listen mode.
The modem stops listening for incoming signals asnd returns a timestamp.
Definition at line 187 of file minterpreterTEL.cpp.
void MinterpreterTEL::parse_TELEGRAM | ( | std::string | telegram | ) |
Method for parsing what is received upon receiving a TELEGRAM.
_received |
Definition at line 294 of file minterpreterTEL.cpp.
|
private |
Integrity of the last received packet.
Definition at line 69 of file minterpreterTEL.h.