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

#include <lasp_uldaq_bufhandler.h>

Inheritance diagram for BufHandler:
Collaboration diagram for BufHandler:

Public Member Functions

 BufHandler (DT9837A &daq, const us nchannels)
 Initialize bufhandler.
 

Protected Attributes

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

Definition at line 18 of file lasp_uldaq_bufhandler.h.

Constructor & Destructor Documentation

◆ BufHandler()

BufHandler::BufHandler ( DT9837A daq,
const us  nchannels 
)
inline

Initialize bufhandler.

Parameters
daq
nchannels

Definition at line 64 of file lasp_uldaq_bufhandler.h.

Member Data Documentation

◆ botenqueued

bool BufHandler::botenqueued = false
protected

Whether the bottom part of the buffer is enqueued enqueued.

Definition at line 48 of file lasp_uldaq_bufhandler.h.

◆ buf

std::vector<double> BufHandler::buf
protected

Storage capacity for the DAQ I/O.

Definition at line 39 of file lasp_uldaq_bufhandler.h.

◆ buffer_mid_idx

long long BufHandler::buffer_mid_idx
protected

Definition at line 55 of file lasp_uldaq_bufhandler.h.

◆ daq

DT9837A& BufHandler::daq
protected

Reference to underlying Daq.

Definition at line 23 of file lasp_uldaq_bufhandler.h.

◆ dtype_descr

const DataTypeDescriptor BufHandler::dtype_descr = dtype_desc_fl64
protected

The type of data, in this case always double precision floats.

Definition at line 27 of file lasp_uldaq_bufhandler.h.

◆ nchannels

us BufHandler::nchannels
protected

The number of channels, number of frames per callback (block).

Definition at line 31 of file lasp_uldaq_bufhandler.h.

◆ nFramesPerBlock

us BufHandler::nFramesPerBlock
protected

Definition at line 31 of file lasp_uldaq_bufhandler.h.

◆ samplerate

double BufHandler::samplerate
protected

Sampling frequency in Hz.

Definition at line 35 of file lasp_uldaq_bufhandler.h.

◆ topenqueued

bool BufHandler::topenqueued = false
protected

Whether the top part of the buffer is enqueued.

Definition at line 43 of file lasp_uldaq_bufhandler.h.

◆ totalFramesCount

us BufHandler::totalFramesCount = 0
protected

Counter for the total number of frames acquired / sent since the start of the stream.

Definition at line 54 of file lasp_uldaq_bufhandler.h.


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