|
DESERT 4.0.0
|
#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) |
Public Member Functions inherited from UWMinterpreter | |
| UWMinterpreter (UWMdriver *) | |
| ~UWMinterpreter () | |
| UWMinterpreter (UWMdriver *) | |
| ~UWMinterpreter () | |
Private Attributes | |
| double | rx_integrity |
Additional Inherited Members | |
Protected Attributes inherited from UWMinterpreter | |
| UWMdriver * | pmDriver |
| int | debug_ |
Class used to build and parse TELEGRAMS (this class derives UWMinterpreter); currently, this class implements methods to build/parse:
| MinterpreterTEL::MinterpreterTEL | ( | UWMdriver * | pmDriver_ | ) |
Class constructor.
| pmDriver_ | pointer to the UWMdriver object to link with this UWMinterpreter object. |
References rx_integrity.
| MinterpreterTEL::~MinterpreterTEL | ( | ) |
Class destructor.
| std::string MinterpreterTEL::build_bitrate | ( | int | _bitrate | ) |
Method for building the TELEGRAM that will set the bitrate used for transmission.
| _bitrate |
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| 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.
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| std::string MinterpreterTEL::build_clear_tx | ( | ) |
Method for building the COMMAND that will clear the tx_on pin
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| 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 |
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| 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)? |
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| 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)? |
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| 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 |
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| 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 |
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| 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 |
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| 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.
Referenced by MdriverS2C_Evo_lowlev::modemTxManager().
| void MinterpreterTEL::parse_TELEGRAM | ( | std::string | telegram | ) |
Method for parsing what is received upon receiving a TELEGRAM
| _received |
References UWMinterpreter::pmDriver, rx_integrity, and UWMdriver::updateRx().
Referenced by MdriverS2C_Evo_lowlev::updateStatus().

|
private |
Integrity of the last received packet.
Referenced by MinterpreterTEL(), and parse_TELEGRAM().