DESERT 4.0.0
ClMsgUwPhyBRate Class Reference

#include <uwphy-clmsg.h>

Inheritance diagram for ClMsgUwPhyBRate:
Inheritance graph
Collaboration diagram for ClMsgUwPhyBRate:
Collaboration graph

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.

Constructor & Destructor Documentation

◆ ClMsgUwPhyBRate() [1/3]

ClMsgUwPhyBRate::ClMsgUwPhyBRate ( )

Broadcast constructor of the ClMsgUwPhyBRate class

◆ 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

◆ ClMsgUwPhyBRate() [3/3]

ClMsgUwPhyBRate::ClMsgUwPhyBRate ( const ClMsgUwPhyBRate msg)

Copy constructor

Parameters
constClMsgUwPhyBRate& msg: ClMsgUwPhyBRate that has to be copied

References b_rate.

◆ ~ClMsgUwPhyBRate()

ClMsgUwPhyBRate::~ClMsgUwPhyBRate ( )
virtual

Destructor of the ClMsgUwPhyTxPwr class

Member Function Documentation

◆ getBRate()

double ClMsgUwPhyBRate::getBRate ( )

method to return the transmitting rate

Returns
b_rate

References b_rate.

◆ setBRate()

void ClMsgUwPhyBRate::setBRate ( double  rate)

method to set the transmitting rate

Parameters
doublerate: rate to set

References b_rate.

Member Data Documentation

◆ b_rate

double ClMsgUwPhyBRate::b_rate
private

Referenced by ClMsgUwPhyBRate(), getBRate(), and setBRate().


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