49 : TclClass(
"Module/UW/MPhy_modem/S2CLowLevel")
54 create(
int args,
const char *
const *argv)
71 bind(
"bitrate_index", (
int *) &
bitrate_i);
72 bind(
"SL", (
int *) &
SL);
86 return MPhy::recvSyncClMsg(m);
94 std::stringstream sstr(
"");
96 sstr <<
"CHECK_MODEM::TRANSITION_FROM_" << modemStatus_old <<
"_TO_"
enum MODEM_STATES modem_state_t
Class to create the Otcl shadow object for an object of the class MS2C_Evo_lowlev.
MS2C_Evo_lowlev_TclClass()
TclObject * create(int args, const char *const *argv)
Class that implements the interface between ns2/NS-Miracle and the S2C EvoLogics modem using low leve...
MdriverS2C_Evo_lowlev mDriver
Object which drives the modem operations.
virtual int recvSyncClMsg(ClMessage *m)
Receive Sync CrossLayer Messages.
~MS2C_Evo_lowlev()
Class destructor.
DropTimer dropTmr
Object which sets the modem queue to reset status.
MS2C_Evo_lowlev(std::string)
Class constructor.
CheckTimer checkTmr
Object which schedules the check-modem events.
virtual modem_state_t check_modem()
Check the state of the modem and update its status.
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.
void setSourceLevel(int level)
Method to set the source level that will be sent to the modem config.
The main class implementing the module used to implement the interface between ns2/NS-Miracle and rea...
Packet * popTxBuff()
Method to pop the oldest packet in the TX buffer or to delete after a tx or to drop it.
virtual void startRx(Packet *)
Method to start a packet reception.
UWMdriver * pmDriver
Pointer to an object to drive the modem operations.
Packet * PktRx
Transmission buffer's index; it must be in {-1, 0, 1, ..., _MTBL-1}.
virtual void endRx(Packet *)
Method to end a packet reception.
virtual void endTx(Packet *)
Method to end a packet transmission.
void setConnections(CheckTimer *, UWMdriver *, DropTimer *)
Link connector.
modem_state_t getStatus()
Method to return the modem's status.
void printOnLog(log_level_t log_level, std::string module, std::string message)
virtual modem_state_t updateStatus()=0
Method to update modem status.
MS2C_Evo_lowlev_TclClass class_module_s2cevologics
Header of the main class that implements the general interface between ns2/NS-Miracle and the S2C Evo...