senf::emu::AthSpectralScan Class Reference

#include <senf/Ext/NetEmu/WLAN/AthSpectralScan.hh>

Public Types

typedef std::function< void(std::uint64_t tsft, std::uint16_t frequency, unsigned numBins, void *spectralSample)> AthSpectralScanCallback
 

Public Member Functions

 AthSpectralScan (std::string phyName)
 
 ~AthSpectralScan ()
 
bool spectralSetting (std::string option, std::string value)
 
bool spectralSetting (std::string option, unsigned value)
 
unsigned spectralSetting (std::string option) const
 
bool callback (AthSpectralScanCallback const &cb)
 
void disable ()
 
void frequency (std::uint32_t freq, std::uint32_t bandwidth, std::int32_t offset=0)
 
bool detected () const
 
bool is_ath9k () const
 
bool is_ath10k () const
 
void stats (std::ostream &os)
 
unsigned spectralPeriod () const
 
unsigned spectralFFTPeriod () const
 
unsigned spectralShortRepeat () const
 
unsigned spectralCount () const
 
unsigned spectralBins () const
 
bool spectralPeriod (unsigned v)
 
bool spectralFFTPeriod (unsigned v)
 
bool spectralShortRepeat (unsigned v)
 
bool spectralCount (unsigned v)
 
bool spectralBins (unsigned v)
 

Detailed Description

Definition at line 38 of file AthSpectralScan.hh.

Member Typedef Documentation

◆ AthSpectralScanCallback

typedef std::function<void (std::uint64_t tsft, std::uint16_t frequency, unsigned numBins, void * spectralSample)> senf::emu::AthSpectralScan::AthSpectralScanCallback

Definition at line 41 of file AthSpectralScan.hh.

Constructor & Destructor Documentation

◆ AthSpectralScan()

senf::emu::AthSpectralScan::AthSpectralScan ( std::string  phyName)

Definition at line 31 of file AthSpectralScan.cc.

◆ ~AthSpectralScan()

senf::emu::AthSpectralScan::~AthSpectralScan ( )

Definition at line 59 of file AthSpectralScan.cc.

Member Function Documentation

◆ callback()

bool senf::emu::AthSpectralScan::callback ( AthSpectralScanCallback const &  cb)

Definition at line 253 of file AthSpectralScan.cc.

◆ detected()

bool senf::emu::AthSpectralScan::detected ( ) const

Definition at line 64 of file AthSpectralScan.cc.

◆ disable()

void senf::emu::AthSpectralScan::disable ( )

Definition at line 83 of file AthSpectralScan.cc.

◆ frequency()

void senf::emu::AthSpectralScan::frequency ( std::uint32_t  freq,
std::uint32_t  bandwidth,
std::int32_t  offset = 0 
)

Definition at line 99 of file AthSpectralScan.cc.

◆ is_ath10k()

bool senf::emu::AthSpectralScan::is_ath10k ( ) const

Definition at line 76 of file AthSpectralScan.cc.

◆ is_ath9k()

bool senf::emu::AthSpectralScan::is_ath9k ( ) const

Definition at line 70 of file AthSpectralScan.cc.

◆ spectralBins() [1/2]

unsigned senf::emu::AthSpectralScan::spectralBins ( ) const

Definition at line 311 of file AthSpectralScan.cc.

◆ spectralBins() [2/2]

bool senf::emu::AthSpectralScan::spectralBins ( unsigned  v)

Definition at line 337 of file AthSpectralScan.cc.

◆ spectralCount() [1/2]

unsigned senf::emu::AthSpectralScan::spectralCount ( ) const

Definition at line 305 of file AthSpectralScan.cc.

◆ spectralCount() [2/2]

bool senf::emu::AthSpectralScan::spectralCount ( unsigned  v)

Definition at line 332 of file AthSpectralScan.cc.

◆ spectralFFTPeriod() [1/2]

unsigned senf::emu::AthSpectralScan::spectralFFTPeriod ( ) const

Definition at line 293 of file AthSpectralScan.cc.

◆ spectralFFTPeriod() [2/2]

bool senf::emu::AthSpectralScan::spectralFFTPeriod ( unsigned  v)

Definition at line 322 of file AthSpectralScan.cc.

◆ spectralPeriod() [1/2]

unsigned senf::emu::AthSpectralScan::spectralPeriod ( ) const

Definition at line 287 of file AthSpectralScan.cc.

◆ spectralPeriod() [2/2]

bool senf::emu::AthSpectralScan::spectralPeriod ( unsigned  v)

Definition at line 317 of file AthSpectralScan.cc.

◆ spectralSetting() [1/3]

bool senf::emu::AthSpectralScan::spectralSetting ( std::string  option,
std::string  value 
)

Definition at line 236 of file AthSpectralScan.cc.

◆ spectralSetting() [2/3]

bool senf::emu::AthSpectralScan::spectralSetting ( std::string  option,
unsigned  value 
)

Definition at line 248 of file AthSpectralScan.cc.

◆ spectralSetting() [3/3]

unsigned senf::emu::AthSpectralScan::spectralSetting ( std::string  option) const

Definition at line 221 of file AthSpectralScan.cc.

◆ spectralShortRepeat() [1/2]

unsigned senf::emu::AthSpectralScan::spectralShortRepeat ( ) const

Definition at line 299 of file AthSpectralScan.cc.

◆ spectralShortRepeat() [2/2]

bool senf::emu::AthSpectralScan::spectralShortRepeat ( unsigned  v)

Definition at line 327 of file AthSpectralScan.cc.

◆ stats()

void senf::emu::AthSpectralScan::stats ( std::ostream &  os)

Definition at line 279 of file AthSpectralScan.cc.


The documentation for this class was generated from the following files: