ngscopeclient v0.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TestDigitalWaveformSource Class Reference

Helper class for generating test digital waveforms. More...

#include <TestDigitalWaveformSource.h>

Public Member Functions

 TestDigitalWaveformSource ()
 Initializes a TestDigitalWaveformSource.
 
 TestDigitalWaveformSource (const TestDigitalWaveformSource &)=delete
 
TestDigitalWaveformSourceoperator= (const TestDigitalWaveformSource &)=delete
 
void GenerateUART (SparseDigitalWaveform *wfm, int64_t sampleperiod, size_t depth, int64_t baudrate=115200)
 Generates a UART waveform.
 
void GenerateUARTClock (SparseDigitalWaveform *wfm, int64_t sampleperiod, size_t depth, int64_t baudrate=115200)
 Generates a UART clock waveform.
 
void GenerateSPI (SparseDigitalWaveform *cs, SparseDigitalWaveform *sclk, SparseDigitalWaveform *mosi, int64_t sampleperiod, size_t depth)
 
void GenerateParallel (std::vector< SparseDigitalWaveform * > &waveforms, int64_t sampleperiod, size_t depth)
 

Detailed Description

Helper class for generating test digital waveforms.

Used by DemoOscilloscope

Member Function Documentation

◆ GenerateUART()

void TestDigitalWaveformSource::GenerateUART ( SparseDigitalWaveform wfm,
int64_t  sampleperiod,
size_t  depth,
int64_t  baudrate = 115200 
)

Generates a UART waveform.

Parameters
wfmWaveform to fill
sampleperiodInterval between samples, in femtoseconds
depthTotal number of samples to generate
baudrateThe baudrate of the UART link

◆ GenerateUARTClock()

void TestDigitalWaveformSource::GenerateUARTClock ( SparseDigitalWaveform wfm,
int64_t  sampleperiod,
size_t  depth,
int64_t  baudrate = 115200 
)

Generates a UART clock waveform.

Parameters
wfmWaveform to fill
sampleperiodInterval between samples, in femtoseconds
depthTotal number of samples to generate
baudrateThe baudrate of the UART link

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