waterfall  0.2dev
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
WaterfallBackend Class Reference

Represents a backend that calculates FFT from the input and records the result through multiple recorders. More...

#include <WaterfallBackend.h>

Public Types

typedef RingBuffer2D< float > FFTBuffer
 
- Public Types inherited from FFTBackend
typedef RingBuffer2D< float > IQBuffer
 

Public Member Functions

 WaterfallBackend (int bins, int overlap, string origin)
 
string getOrigin ()
 
void addRecorder (Ref< Recorder > recorder)
 
virtual void startStream (StreamInfo info)
 
virtual void endStream ()
 
virtual bool injectDependency (Ref< DIObject > obj, std::string key)
 
int fftSamplesToRaw (int sampleCount)
 
- Public Member Functions inherited from FFTBackend
 FFTBackend (int bins, int overlap)
 
int getBins () const
 Returns number of the FFT bins.
 
float getFFTSampleRate () const
 Returns number of FFT samples (results) per second (in Hz).
 
SampleType getGain ()
 
void setGain (SampleType value)
 
int getPhaseShift ()
 
void setPhaseShift (int value)
 
virtual void process (const vector< Complex > &data, DataInfo info)
 
void resizeRawBuffer (int sampleCount)
 
float binToFrequency (int bin) const
 
float binToFrequency () const
 
int frequencyToBin (float frequency) const
 
double fftSamplesToTime (int samples)
 Converts number of FFT samples to seconds. More...
 
int timeToFFTSamples (double time)
 Converts time in seconds to number of FFT samples. More...
 
- Public Member Functions inherited from Backend
 Backend ()
 
StreamInfo getStreamInfo () const
 Return the stream information passed to the backend through startStream().
 

Static Public Member Functions

static Ref< DIObject > make (Ref< DynObject > config, Ref< DIObject > parent)
 
- Static Public Member Functions inherited from FFTBackend
static int16_t floatToInt (float f)
 
static void floatToInt (Complex c, int16_t *result)
 
static void floatToInt (Complex c, float *result)
 

Protected Member Functions

virtual void processFFT (const fftw_complex *data, int size, DataInfo info, int rawMark)
 

Additional Inherited Members

- Protected Attributes inherited from FFTBackend
int bins_
 
float fftSampleRate_
 Number of FFT results per second (Hz).
 
IQBuffer rawBuffer_
 contains raw I/Q data
 

Detailed Description

Represents a backend that calculates FFT from the input and records the result through multiple recorders.

Inheritance diagram for WaterfallBackend:
Inheritance graph
[legend]
Collaboration diagram for WaterfallBackend:
Collaboration graph
[legend]

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