00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00044 #include "phymac-clmsg.h"
00045
00046
00047 ClMessage_t CLMSG_PHY2MAC_ENDTX;
00048 ClMessage_t CLMSG_PHY2MAC_STARTRX;
00049 ClMessage_t CLMSG_PHY2MAC_CCA;
00050 ClMessage_t CLMSG_MAC2PHY_GETTXDURATION;
00051
00052 ClMsgPhy2MacEndTx::ClMsgPhy2MacEndTx(const Packet* p)
00053 : pkt(p),
00054 ClMessage(CLMSG_PHY2MAC_VERBOSITY, CLMSG_PHY2MAC_ENDTX)
00055 {
00056 }
00057
00058 ClMessage* ClMsgPhy2MacEndTx::copy()
00059 {
00060
00061 assert(0);
00062 }
00063
00064
00065
00066
00067 ClMsgPhy2MacStartRx::ClMsgPhy2MacStartRx(const Packet* p)
00068 : pkt(p),
00069 ClMessage(CLMSG_PHY2MAC_VERBOSITY, CLMSG_PHY2MAC_STARTRX)
00070 {
00071 }
00072
00073 ClMessage* ClMsgPhy2MacStartRx::copy()
00074 {
00075
00076 assert(0);
00077 }
00078
00079
00080
00081 ClMsgPhy2MacCCA::ClMsgPhy2MacCCA(bool new_cca)
00082 : CCA(new_cca),
00083 ClMessage(CLMSG_PHY2MAC_VERBOSITY, CLMSG_PHY2MAC_CCA)
00084 {
00085 }
00086
00087 ClMessage* ClMsgPhy2MacCCA::copy()
00088 {
00089
00090 assert(0);
00091 }
00092
00093
00094
00095 ClMsgMac2PhyGetTxDuration::ClMsgMac2PhyGetTxDuration(Packet* p)
00096 : pkt(p),
00097 ClMessage(CLMSG_MAC2PHY_VERBOSITY, CLMSG_MAC2PHY_GETTXDURATION)
00098 {
00099 }
00100
00101 ClMsgMac2PhyGetTxDuration::ClMsgMac2PhyGetTxDuration(int moduleId, Packet*p)
00102 : pkt(p), ClMessage(CLMSG_MAC2PHY_VERBOSITY, CLMSG_MAC2PHY_GETTXDURATION, UNICAST, moduleId)
00103 {
00104 }
00105
00106 ClMessage* ClMsgMac2PhyGetTxDuration::copy()
00107 {
00108
00109 assert(0);
00110 }
00111
00112
00114 void ClMsgMac2PhyGetTxDuration::setDuration(double time)
00115 {
00116 duration = time;
00117 }
00118
00119 double ClMsgMac2PhyGetTxDuration::getDuration()
00120 {
00121 return(duration);
00122 }