118 throw cRuntimeError(
"Unknown received signal part");
121 throw cRuntimeError(
"Unknown radio reception state");
140 throw cRuntimeError(
"Unknown transmitted signal part");
143 throw cRuntimeError(
"Unknown radio transmission state");
Definition: IRadioSignal.h:38
The radio medium is busy, a signal strong enough to receive is detected.
Definition: IRadio.h:161
virtual IRadioSignal::SignalPart getReceivedSignalPart() const =0
Returns the signal part of the ongoing reception that the receiver is currently receiving or -1 if no...
A receiverBusyCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:48
The radio medium state is unknown, reception state is meaningless, signal detection is not possible...
Definition: IRadio.h:142
value< double, units::A > A
Definition: Units.h:1051
TransmissionState
This enumeration specifies the transmission state of the radio.
Definition: IRadio.h:167
ReceptionState
This enumeration specifies the reception state of the radio.
Definition: IRadio.h:136
A receiverReceivingDataCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:52
A sleepCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:45
The radio is not transmitting a signal on the radio medium.
Definition: IRadio.h:178
The radio is prepared for frame transmission, frame reception is not possible, power consumption is l...
Definition: IRadio.h:116
A transmitterTransmittingCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:54
A receiverReceivingPreambleCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:50
The radio is sleeping, frame reception or transmission is not possible, power consumption is minimal...
Definition: IRadio.h:102
The radio medium is busy, a signal is detected but it is not strong enough to receive.
Definition: IRadio.h:155
RadioMode
This enumeration specifies the requested operational mode of the radio.
Definition: IRadio.h:91
IRadio * radio
Definition: StateBasedCcEnergyConsumer.h:60
virtual RadioMode getRadioMode() const =0
Returns the current radio mode, This is the same mode as the one emitted with the last radioModeChang...
The radio medium is busy, the radio is currently transmitting a signal.
Definition: IRadio.h:183
The radio medium is free, no signal is detected.
Definition: IRadio.h:148
Definition: IRadioSignal.h:39
A offCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:44
Definition: IRadioSignal.h:41
The radio is prepared for frame reception, frame transmission is not possible, power consumption is l...
Definition: IRadio.h:109
A transmitterTransmittingPreambleCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:55
Definition: IRadioSignal.h:42
virtual IRadioSignal::SignalPart getTransmittedSignalPart() const =0
Returns the signal part of the ongoing transmission that the transmitter is currently transmitting or...
virtual ReceptionState getReceptionState() const =0
Returns the current radio reception state.
The radio is prepared for simultaneous frame reception and transmission, power consumption is low whe...
Definition: IRadio.h:123
A currentConsumption
Definition: StateBasedCcEnergyConsumer.h:64
A transmitterTransmittingDataCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:57
Definition: IRadioSignal.h:40
A transmitterTransmittingHeaderCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:56
A receiverIdleCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:47
The transmission state is undefined or meaningless.
Definition: IRadio.h:172
A receiverReceivingHeaderCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:51
The radio is turned off, frame reception or transmission is not possible, power consumption is zero...
Definition: IRadio.h:96
The radio is switching from one mode to another, frame reception or transmission is not possible...
Definition: IRadio.h:129
A receiverReceivingCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:49
virtual TransmissionState getTransmissionState() const =0
Returns the current radio transmission state.
A transmitterIdleCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:53
A switchingCurrentConsumption
Definition: StateBasedCcEnergyConsumer.h:46