Wiselib
Public Member Functions | Static Public Member Functions | Static Public Attributes
wiselib::ComIsenseTxPower< OsModel_P > Class Template Reference

This class implements the txpower_concept. More...

#include <com_isense_txpower.h>

List of all members.

Public Member Functions

 ComIsenseTxPower ()
 ComIsenseTxPower (ComIsenseTxPower const &)
ComIsenseTxPoweroperator= (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

Detailed Description

template<typename OsModel_P>
class wiselib::ComIsenseTxPower< OsModel_P >

This class implements the txpower_concept.

iSense implementation of the ComIsenseTxPower Concept ...


Constructor & Destructor Documentation

template<typename OsModel_P >
wiselib::ComIsenseTxPower< OsModel_P >::ComIsenseTxPower ( ) [inline]
template<typename OsModel_P >
wiselib::ComIsenseTxPower< OsModel_P >::ComIsenseTxPower ( ComIsenseTxPower< OsModel_P > const &  power) [inline]

Member Function Documentation

template<typename OsModel_P >
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}.

Parameters:
dbis the input dB value that shall be transformed
Returns:
ComIsenseTxPower object that has db preset
template<typename OsModel_P >
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.

Parameters:
ratiois the input ratio that shall be transformed
Returns:
ComIsenseTxPower object that has ratio preset
template<typename OsModel_P >
bool wiselib::ComIsenseTxPower< OsModel_P >::operator!= ( ComIsenseTxPower< OsModel_P >  p) const [inline]
template<typename OsModel_P >
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::operator++ ( )
template<typename OsModel_P >
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::operator++ ( int  )
template<typename OsModel_P >
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::operator-- ( )
template<typename OsModel_P >
ComIsenseTxPower< OsModel_P > wiselib::ComIsenseTxPower< OsModel_P >::operator-- ( int  )
template<typename OsModel_P >
bool wiselib::ComIsenseTxPower< OsModel_P >::operator< ( ComIsenseTxPower< OsModel_P >  p) const [inline]
template<typename OsModel_P >
bool wiselib::ComIsenseTxPower< OsModel_P >::operator<= ( ComIsenseTxPower< OsModel_P >  p) const [inline]
template<typename OsModel_P >
ComIsenseTxPower< OsModel_P > & wiselib::ComIsenseTxPower< OsModel_P >::operator= ( ComIsenseTxPower< OsModel_P > const &  p) [inline]
template<typename OsModel_P >
bool wiselib::ComIsenseTxPower< OsModel_P >::operator== ( ComIsenseTxPower< OsModel_P >  p) const [inline]
template<typename OsModel_P >
bool wiselib::ComIsenseTxPower< OsModel_P >::operator> ( ComIsenseTxPower< OsModel_P >  p) const [inline]
template<typename OsModel_P >
bool wiselib::ComIsenseTxPower< OsModel_P >::operator>= ( ComIsenseTxPower< OsModel_P >  p) const [inline]
template<typename OsModel_P >
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

Parameters:
dBvalue, any integer allowed
Returns:
void
template<typename OsModel_P >
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.

Parameters:
ratiois integer
Returns:
void
template<typename OsModel_P >
int wiselib::ComIsenseTxPower< OsModel_P >::to_dB ( ) const [inline]

Gives ratio that corresponds to set dB value of object.

Returns:
dB value
template<typename OsModel_P >
int wiselib::ComIsenseTxPower< OsModel_P >::to_ratio ( ) const

Gives ratio that corresponds to set dB value of object.

Returns:
dB value

Member Data Documentation

template<typename OsModel_P>
ComIsenseTxPower const wiselib::ComIsenseTxPower< OsModel_P >::MAX [static]
template<typename OsModel_P>
ComIsenseTxPower const wiselib::ComIsenseTxPower< OsModel_P >::MIN [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines