LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
InBufHandler Class Reference

Specific helper for the input buffer. More...

#include <lasp_uldaq_bufhandler.h>

Inheritance diagram for InBufHandler:
Collaboration diagram for InBufHandler:

Public Member Functions

 InBufHandler (DT9837A &daq, InDaqCallback cb)
 
void start ()
 
bool operator() ()
 InBufHandler::operator()()
 
 ~InBufHandler ()
 
- Public Member Functions inherited from BufHandler
 BufHandler (DT9837A &daq, const us nchannels)
 Initialize bufhandler.
 

Additional Inherited Members

- Protected Attributes inherited from BufHandler
DT9837Adaq
 Reference to underlying Daq.
 
const DataTypeDescriptor dtype_descr = dtype_desc_fl64
 The type of data, in this case always double precision floats.
 
us nchannels
 The number of channels, number of frames per callback (block).
 
us nFramesPerBlock
 
double samplerate
 Sampling frequency in Hz.
 
std::vector< double > buf
 Storage capacity for the DAQ I/O.
 
bool topenqueued = false
 Whether the top part of the buffer is enqueued.
 
bool botenqueued = false
 Whether the bottom part of the buffer is enqueued enqueued.
 
us totalFramesCount = 0
 Counter for the total number of frames acquired / sent since the start of the stream.
 
long long buffer_mid_idx
 

Detailed Description

Specific helper for the input buffer.

Definition at line 78 of file lasp_uldaq_bufhandler.h.

Constructor & Destructor Documentation

◆ InBufHandler()

InBufHandler::InBufHandler ( DT9837A daq,
InDaqCallback  cb 
)

◆ ~InBufHandler()

InBufHandler::~InBufHandler ( )

Member Function Documentation

◆ operator()()

bool InBufHandler::operator() ( )

InBufHandler::operator()()

Returns
true on success

◆ start()

void InBufHandler::start ( )

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