DESERT 4.0.0
ClMsgUwMmac Class Reference

#include <uwmmac-clmsg.h>

Inheritance diagram for ClMsgUwMmac:
Inheritance graph
Collaboration diagram for ClMsgUwMmac:
Collaboration graph

Public Types

enum  ReqType {
  NOT_VALID = -1 , SET_REQ , GET_REQ , SET_REPLY ,
  GET_REPLY
}
 

Public Member Functions

 ClMsgUwMmac (ClMessage_t type)
 
 ClMsgUwMmac (int stack_id, int dest_module_id, ClMessage_t type)
 
 ClMsgUwMmac (const ClMsgUwMmac &msg)
 
virtual ~ClMsgUwMmac ()
 
virtual ClMsgUwMmaccopy ()
 
void setReqType (ReqType type)
 
ReqType getReqType ()
 

Protected Attributes

int stack_id
 
ReqType req_type
 

Detailed Description

ClMsgUwMmac should be extended and used to ask to set or get a parameter of a specific phy. In addition, ClMsgUwMmac can be used from the phy to reply such a request.

Member Enumeration Documentation

◆ ReqType

Enumerator
NOT_VALID 
SET_REQ 
GET_REQ 
SET_REPLY 
GET_REPLY 

Constructor & Destructor Documentation

◆ ClMsgUwMmac() [1/3]

ClMsgUwMmac::ClMsgUwMmac ( ClMessage_t  type)

Broadcast constructor of the ClMsgUwMmac class

◆ ClMsgUwMmac() [2/3]

ClMsgUwMmac::ClMsgUwMmac ( int  stack_id,
int  dest_module_id,
ClMessage_t  type 
)

Unicast constructor of the ClMsgUwMmac class

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

◆ ClMsgUwMmac() [3/3]

ClMsgUwMmac::ClMsgUwMmac ( const ClMsgUwMmac msg)

Copy constructor

Parameters
constClMsgUwMmac& msg: ClMsgUwMmac that has to be copied

References req_type.

◆ ~ClMsgUwMmac()

ClMsgUwMmac::~ClMsgUwMmac ( )
virtual

Destructor of the ClMsgUwMmac class

Member Function Documentation

◆ copy()

ClMsgUwMmac * ClMsgUwMmac::copy ( )
virtual

Copy method of the ClMsgUwMmac class, the specialization of the return value is intentional and it is allowed by c++ standard

Returns
pointer to a copy of the current ClMsgUwMmac object

◆ getReqType()

ClMsgUwMmac::ReqType ClMsgUwMmac::getReqType ( )

method to return the request type

Returns
req_type

References req_type.

◆ setReqType()

void ClMsgUwMmac::setReqType ( ReqType  type)

method to set the request type

Parameters
ReqTypetype: request type

References req_type.

Member Data Documentation

◆ req_type

ReqType ClMsgUwMmac::req_type
protected

Referenced by ClMsgUwMmac(), getReqType(), and setReqType().

◆ stack_id

int ClMsgUwMmac::stack_id
protected

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