38#ifndef UWMDRIVERS2CLOWLEVEL_H
39#define UWMDRIVERS2CLOWLEVEL_H
89 std::queue<std::string>
enum MODEM_STATES modem_state_t
Class containing the basic functions to drive the S2C EvoLogics acoustic modem transmissions/receptio...
int _SL
Variable holding the Source Level of the low level driver.
void modemTxBurst()
Method that notifies the driver that there is a packet to be sent via the modem.
void modemTx()
Method that notifies the driver that there is a packet to be sent via the modem.
ll_tx_state_t m_state_tx
TX state to manage transmission methods.
double _delay
Variable that holds the delay required for doing some operations, e.g., sending a message,...
void modemCfgDSP()
Method that notifies the driver that there is a configuration to be sent to the modem (DSP).
int _chipset
Variable holding the chipset that will be used by the low level firmware.
void start()
Method to let the driver start operations and initialize configurations.
void stop()
Method to stop the driver operations.
int _delay_flag
Variable that holds that flag that triggers the waiting time for some operations e....
Msocket mConnector
Object that handles the physical host to modem communications via TCP/IP sockets.
std::queue< std::string > queue_tx
Queue used to buffer incoming strings for tx messages.
std::queue< std::string > queue_rx
Queue used to buffer incoming strings for rx messages.
ll_rx_state_t m_state_rx
RX state to manage reception methods.
void setBitrate(int index)
Method to set the bitrate that will be sent to the modem config.
void setPktBitLen(int bitlen)
Method to set the msg bitlength that will be received by rx.
int _gain
Variable holding the Gain level of the low level driver.
virtual modem_state_t updateStatus()
Method to update modem status.
int _th
Variable holding the threshold used by the low level firmware.
~MdriverS2C_Evo_lowlev()
Class destructor.
void setSourceLevel(int level)
Method to set the source level that will be sent to the modem config.
void updateTxState(ll_tx_state_t)
Method for updating the state after a significant change, namely: a configuration of the firmware par...
void modemCfgBitrate()
Method that notifies the driver that there is a configuration to be sent to the modem (Bitrate).
int _mps_th
Variable holding the MPS treshold used by the low level firmware.
void modemTxPBM()
Method that notifies the driver that there is a packet to be sent via the modem.
virtual void modemSetID()
Method to set the ID of the modem.
int _msg_bitlen
Very very temporary parameter to let the receiver not screw up and read only the, known,...
void modemTxManager()
Method that manages the transmission of TELEGRAMS and configurations via GPIOs to the modem.
int _bitrate_i
Variable holding the bitrate index of the low level firmware.
MinterpreterTEL mInterpreter
Object that builds/parses TELEGRAMS and GPIO settings.
Class used to build and parse TELEGRAMS (this class derives UWMinterpreter); currently,...
Class used to manage host/modem string exchange via TCP/IP connection (this class is a derived class ...
The main class implementing the module used to implement the interface between ns2/NS-Miracle and rea...
The class needed by UWMPhy_modem to handle the different transmissions cases and corresponding protoc...
enum LL_STATE_RX ll_rx_state_t
enum LL_STATE_TX ll_tx_state_t
Class that is in charge of building and parsing the required messages to make the UWMdriver able to c...