DESERT 3.5.1
Loading...
Searching...
No Matches
ClMsgUwPhyBRate Class Reference

#include <uwphy-clmsg.h>

Inheritance diagram for ClMsgUwPhyBRate:
Collaboration diagram for ClMsgUwPhyBRate:

Public Member Functions

 ClMsgUwPhyBRate ()
 
 ClMsgUwPhyBRate (int stack_id, int dest_module_id)
 
 ClMsgUwPhyBRate (const ClMsgUwPhyBRate &msg)
 
virtual ~ClMsgUwPhyBRate ()
 
double getBRate ()
 
void setBRate (double rate)
 
- Public Member Functions inherited from ClMsgUwPhy
 ClMsgUwPhy (ClMessage_t type)
 
 ClMsgUwPhy (int stack_id, int dest_module_id, ClMessage_t type)
 
 ClMsgUwPhy (const ClMsgUwPhy &msg)
 
virtual ~ClMsgUwPhy ()
 
virtual ClMsgUwPhycopy ()
 
void setReqType (ReqType type)
 
ReqType getReqType ()
 

Private Attributes

double b_rate
 

Additional Inherited Members

- Public Types inherited from ClMsgUwPhy
enum  ReqType {
  NOT_VALID = -1 , SET_REQ , GET_REQ , SET_REPLY ,
  GET_REPLY
}
 
- Protected Attributes inherited from ClMsgUwPhy
int stack_id
 
ReqType req_type
 

Detailed Description

ClMsgUwPhyBRate should be and used to ask either to set or get the communication rate (can be bitrate or baudrate, depending on the phy) of a specific phy.

In addition, ClMsgUwPhyBRate can be used from the phy to reply such a request.

Definition at line 187 of file uwphy-clmsg.h.

Constructor & Destructor Documentation

◆ ClMsgUwPhyBRate() [1/3]

ClMsgUwPhyBRate::ClMsgUwPhyBRate ( )

Broadcast constructor of the ClMsgUwPhyBRate class.

Definition at line 115 of file uwphy-clmsg.cc.

◆ ClMsgUwPhyBRate() [2/3]

ClMsgUwPhyBRate::ClMsgUwPhyBRate ( int  stack_id,
int  dest_module_id 
)

Unicast constructor of the ClMsgUwPhyBRate class.

Parameters
intstack_id: id of the stack
dest_mod_idid of the destination module

Definition at line 121 of file uwphy-clmsg.cc.

◆ ClMsgUwPhyBRate() [3/3]

ClMsgUwPhyBRate::ClMsgUwPhyBRate ( const ClMsgUwPhyBRate msg)

Copy constructor.

Parameters
constClMsgUwPhyBRate& msg: ClMsgUwPhyBRate that has to be copied

Definition at line 127 of file uwphy-clmsg.cc.

◆ ~ClMsgUwPhyBRate()

ClMsgUwPhyBRate::~ClMsgUwPhyBRate ( )
virtual

Destructor of the ClMsgUwPhyTxPwr class.

Definition at line 133 of file uwphy-clmsg.cc.

Member Function Documentation

◆ getBRate()

double ClMsgUwPhyBRate::getBRate ( )

method to return the transmitting rate

Returns
b_rate

Definition at line 137 of file uwphy-clmsg.cc.

◆ setBRate()

void ClMsgUwPhyBRate::setBRate ( double  rate)

method to set the transmitting rate

Parameters
doublerate: rate to set

Definition at line 142 of file uwphy-clmsg.cc.

Member Data Documentation

◆ b_rate

double ClMsgUwPhyBRate::b_rate
private

Definition at line 230 of file uwphy-clmsg.h.


The documentation for this class was generated from the following files: