Wiselib
|
This class implements the txpower_concept. More...
#include <com_isense_txpower.h>
Public Member Functions | |
ComIsenseTxPower () | |
ComIsenseTxPower (ComIsenseTxPower const &) | |
ComIsenseTxPower & | operator= (ComIsenseTxPower const &) |
bool | operator== (ComIsenseTxPower) const |
bool | operator!= (ComIsenseTxPower) const |
bool | operator<= (ComIsenseTxPower) const |
bool | operator>= (ComIsenseTxPower) const |
bool | operator< (ComIsenseTxPower) const |
bool | operator> (ComIsenseTxPower) const |
ComIsenseTxPower | operator++ () |
ComIsenseTxPower | operator++ (int) |
ComIsenseTxPower | operator-- () |
ComIsenseTxPower | operator-- (int) |
void | set_ratio (int) |
This method sets the dB value by a given ratio. | |
int | to_ratio () const |
Gives ratio that corresponds to set dB value of object. | |
void | set_dB (int) |
set transmission power to value in interval [-30,0] in value-6 steps | |
int | to_dB () const |
Gives ratio that corresponds to set dB value of object. | |
Static Public Member Functions | |
static ComIsenseTxPower | from_ratio (int) |
Transforms an arbitrary input ratio to ComIsenseTxPower object with corresponding radio power set. | |
static ComIsenseTxPower | from_dB (int) |
Transforms an arbitrary input dB integer value to valid value in set {-30,-24,..,0}. | |
Static Public Attributes | |
static ComIsenseTxPower const | MIN |
static ComIsenseTxPower const | MAX |
This class implements the txpower_concept.
iSense implementation of the ComIsenseTxPower Concept ...
wiselib::ComIsenseTxPower< OsModel_P >::ComIsenseTxPower | ( | ) | [inline] |
wiselib::ComIsenseTxPower< OsModel_P >::ComIsenseTxPower | ( | ComIsenseTxPower< OsModel_P > const & | power | ) | [inline] |
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::from_dB | ( | int | db | ) | [static] |
Transforms an arbitrary input dB integer value to valid value in set {-30,-24,..,0}.
db | is the input dB value that shall be transformed |
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::from_ratio | ( | int | ratio | ) | [static] |
Transforms an arbitrary input ratio to ComIsenseTxPower object with corresponding radio power set.
ratio | is the input ratio that shall be transformed |
bool wiselib::ComIsenseTxPower< OsModel_P >::operator!= | ( | ComIsenseTxPower< OsModel_P > | p | ) | const [inline] |
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::operator++ | ( | ) |
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::operator++ | ( | int | ) |
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::operator-- | ( | ) |
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::operator-- | ( | int | ) |
bool wiselib::ComIsenseTxPower< OsModel_P >::operator< | ( | ComIsenseTxPower< OsModel_P > | p | ) | const [inline] |
bool wiselib::ComIsenseTxPower< OsModel_P >::operator<= | ( | ComIsenseTxPower< OsModel_P > | p | ) | const [inline] |
ComIsenseTxPower< OsModel_P > & wiselib::ComIsenseTxPower< OsModel_P >::operator= | ( | ComIsenseTxPower< OsModel_P > const & | p | ) | [inline] |
bool wiselib::ComIsenseTxPower< OsModel_P >::operator== | ( | ComIsenseTxPower< OsModel_P > | p | ) | const [inline] |
bool wiselib::ComIsenseTxPower< OsModel_P >::operator> | ( | ComIsenseTxPower< OsModel_P > | p | ) | const [inline] |
bool wiselib::ComIsenseTxPower< OsModel_P >::operator>= | ( | ComIsenseTxPower< OsModel_P > | p | ) | const [inline] |
void wiselib::ComIsenseTxPower< OsModel_P >::set_dB | ( | int | db | ) |
set transmission power to value in interval [-30,0] in value-6 steps
this method sets the transmission power if dB value is not within allowed range or of allowed value, the input value is changed to a valid value that meets all criteria
dB | value, any integer allowed |
void wiselib::ComIsenseTxPower< OsModel_P >::set_ratio | ( | int | ratio | ) |
This method sets the dB value by a given ratio.
Here everything below 1 corresponds to dB=-30 and everything above 1000 corresponds to dB=0, all other values in between these correspond by powers of 2 to the accurate dB values, each. Mapping is done by next higher power.
ratio | is integer |
int wiselib::ComIsenseTxPower< OsModel_P >::to_dB | ( | ) | const [inline] |
Gives ratio that corresponds to set dB value of object.
int wiselib::ComIsenseTxPower< OsModel_P >::to_ratio | ( | ) | const |
Gives ratio that corresponds to set dB value of object.
ComIsenseTxPower const wiselib::ComIsenseTxPower< OsModel_P >::MAX [static] |
ComIsenseTxPower const wiselib::ComIsenseTxPower< OsModel_P >::MIN [static] |