Falcon
Loading...
Searching...
No Matches

Public Member Functions

 SquareSource (double offset=0.0, double amplitude=1.0, double frequency=1.0, double duty_cycle=0.5, double sampling_rate=1.0, double noise_stdev=0, unsigned int nchannels=128, bool convert_byte_order=true)
std::string string () override
int64_t Produce (char **data) override
YAML::Node to_yaml () const override

Static Public Member Functions

static SquareSource * from_yaml (YAML::Node node)

Protected Attributes

double offset_
double amplitude_
double frequency_
double duty_cycle_
double sampling_rate_
double noise_stdev_
uint64_t timestamp_ = 0
uint64_t delta_
int64_t counter_
double current_amplitude_
std::vector< char > buffer_
std::default_random_engine generator_
std::normal_distribution< double > distribution_
unsigned int nchannels_
bool convert_byte_order_
Protected Attributes inherited from DataSource
nlx::NlxSignalRecord record_

Member Function Documentation

◆ Produce()

int64_t SquareSource::Produce ( char ** data)
overridevirtual

Implements DataSource.

◆ string()

std::string SquareSource::string ( )
overridevirtual

Implements DataSource.

◆ to_yaml()

YAML::Node SquareSource::to_yaml ( ) const
overridevirtual

Implements DataSource.


The documentation for this class was generated from the following files:
  • extensions/falcon-fklab-extensions/tools/nlxtestbench/squaresource.hpp
  • extensions/falcon-fklab-extensions/tools/nlxtestbench/squaresource.cpp