C++ API
Loading...
Searching...
No Matches
Plux::Source Struct Reference

Acquisition source class. More...

#include <plux.h>

Inheritance diagram for Plux::Source:
Plux::SessionSource

Public Member Functions

 Source (int _port=0, int _freqDivisor=1, int _nBits=16, int _chMask=0x01)
 Initializes all structure fields.
 

Public Attributes

int port
 Source port (1...8 for analog ports). Default value is zero.
 
int freqDivisor
 Source frequency divisor from acquisition base frequency (>= 1). Default value is 1.
 
int nBits
 Source sampling resolution in bits (8, 16 or 24). The value 24 is accepted for SpO2 / fNIRS sensors only. Default value is 16.

 
int chMask
 Bitmask of source channels to sample (bit 0 is channel 0, etc). Default value is 1 (channel 0 only).
 

Detailed Description

Acquisition source class.

An acquisition source is an external sensor connected to a device port or a device internal sensor. Sampling frequency divisor and sampling resolution can be set for each source. Each source can have up to 8 channels. All source channels share the same frequency divisor and sampling resolution settings defined for the source.

See also
SignalsDev::start(float baseFreq, const Sources &sources), Schedule::sources

Constructor & Destructor Documentation

◆ Source()

Plux::Source::Source ( int  _port = 0,
int  _freqDivisor = 1,
int  _nBits = 16,
int  _chMask = 0x01 
)
inline

Initializes all structure fields.

All arguments are optional. A structure field is initialized with the corresponding argument value, if provided. Otherwise, the field is initialized with its default value.


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