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

#include <uwphy-clmsg.h>

Inheritance diagram for ClMsgUwPhyTxPwr:
Collaboration diagram for ClMsgUwPhyTxPwr:

Public Member Functions

 ClMsgUwPhyTxPwr ()
 
 ClMsgUwPhyTxPwr (int stack_id, int dest_module_id)
 
 ClMsgUwPhyTxPwr (const ClMsgUwPhyTxPwr &msg)
 
virtual ~ClMsgUwPhyTxPwr ()
 
double getPower ()
 
void setPower (double powr)
 
- 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 tx_power
 

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

ClMsgUwPhyTxPwr should be and used to ask either to set or get the transmitting power of a specific phy.

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

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

Constructor & Destructor Documentation

◆ ClMsgUwPhyTxPwr() [1/3]

ClMsgUwPhyTxPwr::ClMsgUwPhyTxPwr ( )

Broadcast constructor of the ClMsgUwPhyTxPwr class.

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

◆ ClMsgUwPhyTxPwr() [2/3]

ClMsgUwPhyTxPwr::ClMsgUwPhyTxPwr ( int  stack_id,
int  dest_module_id 
)

Unicast constructor of the ClMsgUwPhyTxPwr class.

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

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

◆ ClMsgUwPhyTxPwr() [3/3]

ClMsgUwPhyTxPwr::ClMsgUwPhyTxPwr ( const ClMsgUwPhyTxPwr msg)

Copy constructor.

Parameters
constClMsgUwPhy& msg: ClMsgUwPhyTxPwr that has to be copied

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

◆ ~ClMsgUwPhyTxPwr()

ClMsgUwPhyTxPwr::~ClMsgUwPhyTxPwr ( )
virtual

Destructor of the ClMsgUwPhyTxPwr class.

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

Member Function Documentation

◆ getPower()

double ClMsgUwPhyTxPwr::getPower ( )

method to return the transmitting power

Returns
tx_power

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

◆ setPower()

void ClMsgUwPhyTxPwr::setPower ( double  powr)

method to set the transmitting power

Parameters
doublepowr: power to set

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

Member Data Documentation

◆ tx_power

double ClMsgUwPhyTxPwr::tx_power
private

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


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