Provides information about the current state of the channel: More...
#include <ChannelState.h>
Public Member Functions | |
ChannelState (bool isIdle=false, double rssi=0.0) | |
Creates and initializes a new ChannelState with the passed state. | |
bool | isIdle () const |
Returns true if the channel is considered idle, meaning depends on the used decider. | |
double | getRSSI () const |
Returns the current RSSI value of the channel. | |
std::string | info () const |
Output for this ChannelState. | |
Protected Attributes | |
bool | idle |
defines if the channel is currently idle | |
double | rssi |
the current RSSI value of the channel |
Provides information about the current state of the channel:
idle/busy - is the physical currently receiving something? RSSI - the currently received signal strength indicator.
Definition at line 14 of file ChannelState.h.
ChannelState::ChannelState | ( | bool | isIdle = false , |
|
double | rssi = 0.0 | |||
) | [inline] |
Creates and initializes a new ChannelState with the passed state.
isIdle - defines if the channel is currently idle rssi - the current RSSI value of the channel
Definition at line 31 of file ChannelState.h.
std::string ChannelState::info | ( | ) | const [inline] |
Output for this ChannelState.
Of the form "[<idle/busy> with rssi of x]".
Definition at line 50 of file ChannelState.h.
Referenced by Mac80211::beginNewCycle().