Extends Decider80211 by drawing power during receiving of messages. More...
#include <Decider80211Battery.h>
Inherits Decider80211.
Inherited by Decider80211MultiChannel.
Public Member Functions | |
Decider80211Battery (DeciderToPhyInterface *phy, double threshold, double sensitivity, int channel, double decodingCurrentDelta, int myIndex=-1, bool debug=false) | |
Initializes this Decider with the passed values. | |
virtual void | setChannelIdleStatus (bool isIdle) |
Draws either idle or rx current, depending on the "isIdle" state. | |
Protected Types | |
enum | Activities { DECODING_ACCT = 0 } |
Defines the power consuming activities (accounts) of the decider. | |
Protected Attributes | |
double | decodingCurrentDelta |
Stores the current delta in mA to draw during reception of AirFrames. |
Extends Decider80211 by drawing power during receiving of messages.
Definition at line 29 of file Decider80211Battery.h.
Decider80211Battery::Decider80211Battery | ( | DeciderToPhyInterface * | phy, | |
double | threshold, | |||
double | sensitivity, | |||
int | channel, | |||
double | decodingCurrentDelta, | |||
int | myIndex = -1 , |
|||
bool | debug = false | |||
) | [inline] |
Initializes this Decider with the passed values.
phy | Pointer to this deciders phy layer | |
threshold | The SNR threshold above which reception is correct | |
sensitivity | The strength (mW) at which a signal can be received | |
centerFrequency | The frequency used by the phy layer | |
decodingCurrentDelta | The additional amount of power it takes to decode a signal | |
myIndex | The index of this deciders host (for debug output) | |
debug | Use debug output? |
Definition at line 60 of file Decider80211Battery.h.
: Decider80211(phy, threshold, sensitivity, channel, myIndex, debug), decodingCurrentDelta(decodingCurrentDelta) {}
double Decider80211Battery::decodingCurrentDelta [protected] |
Stores the current delta in mA to draw during reception of AirFrames.
Stores the delta to add to the base current drawn during RX state when no frame is received but we are listening.
Definition at line 38 of file Decider80211Battery.h.
Referenced by setChannelIdleStatus().