Electronics and Software
Engineering Innovation
BMeasure-lib 1.3.0

#include <BMeasureUnit.h>

Inheritance diagram for BMeasureApi::BMeasureUnit:
BTask BMeasureApi::BMeasureUnit1

Public Member Functions

 BMeasureUnit (Bool threaded=0, BUInt reqSize=2048)
 
virtual ~BMeasureUnit ()
 
BError connect (BString device)
 Connect to a device.
 
void disconnect ()
 
BString device ()
 
BString serialNumber ()
 
BString info ()
 
BUInt numChannels ()
 The number of channels of data.
 
void run ()
 Threaded run mode.
 
virtual void disconnected ()
 
virtual void sendDataServe (const DataBlock &dataBlock)
 
virtual void sendDataFloatServe (const DataBlockFloat &dataBlockFloat)
 
virtual void sendDataProcServe (const DataBlockProc &dataBlockProc)
 
virtual void sendStreamDataServe (const StreamData &streamData)
 
virtual BError setMeasurementConfig (const Bool &save, const MeasurementConfig &configMeasurement)
 
virtual BError setChannelConfig (const BUInt8 &channelNumber, const ChannelConfig &channelConfig)
 
BError getNodeInfo (NodeInfo &nodeInfo)
 Override getNodeInfo.
 
- Public Member Functions inherited from BTask
 BTask (const char *name="", BUInt stackSize=0, BUInt priority=1)
 
virtual ~BTask ()
 
void init (const char *name, BUInt stackSize=0, BUInt priority=1)
 
BError start ()
 
void stop ()
 
void waitForCompletion ()
 
int setPriority (BUInt priority)
 

Static Public Member Functions

static BError findDevices (BList< BMeasureUnitDevice > &devices)
 Find available devices.
 
static BError findDevicesUsb (BList< BMeasureUnitDevice > &devices)
 Find available devices on USB bus.
 
static BError findDevicesNetwork (BList< BMeasureUnitDevice > &devices)
 Find available devices on Network.
 
static void processdataBlock (const DataBlock &dataBlock, DataBlockFloat *dataBlockOut)
 

Static Public Attributes

static int blockNumChannels = 16
 
static int blockNumSamples = 13
 

Protected Attributes

BString odevice
 
NodeInfo onodeInfo
 
Information oinfo
 Instrument info.
 
MeasurementConfig oconfigMeasurement
 
BArray< ChannelConfig > ochannels
 
DataBlockFloat * odataBlockFloat
 
BUInt32 osequenceNext
 
BUInt32 osampleCount
 
BUInt32 oblockCount
 
Bool odisconnecting
 
BSemaphoreBool oprocEnable
 Enable processing.
 
BSemaphoreBool oprocRunning
 Processing is running.
 
- Protected Attributes inherited from BTask
const char * oname
 
BUInt ostackSize
 
BUInt opolicy
 
BUInt opriority
 
pthread_t othread
 
Bool orunning
 

Additional Inherited Members

- Static Protected Member Functions inherited from BTask
static void * taskFunc (void *)
 

Constructor & Destructor Documentation

◆ BMeasureUnit()

BMeasureApi::BMeasureUnit::BMeasureUnit ( Bool threaded = 0,
BUInt reqSize = 2048 )

◆ ~BMeasureUnit()

BMeasureApi::BMeasureUnit::~BMeasureUnit ( )
virtual

Member Function Documentation

◆ connect()

BError BMeasureApi::BMeasureUnit::connect ( BString device)

Connect to a device.

◆ device()

BString BMeasureApi::BMeasureUnit::device ( )

◆ disconnect()

void BMeasureApi::BMeasureUnit::disconnect ( )

◆ disconnected()

void BMeasureApi::BMeasureUnit::disconnected ( )
virtual

Reimplemented in BMeasureApi::BMeasureUnit1.

◆ findDevices()

BError BMeasureApi::BMeasureUnit::findDevices ( BList< BMeasureUnitDevice > & devices)
static

Find available devices.

◆ findDevicesNetwork()

BError BMeasureApi::BMeasureUnit::findDevicesNetwork ( BList< BMeasureUnitDevice > & devices)
static

Find available devices on Network.

◆ findDevicesUsb()

BError BMeasureApi::BMeasureUnit::findDevicesUsb ( BList< BMeasureUnitDevice > & devices)
static

Find available devices on USB bus.

◆ getNodeInfo()

BError BMeasureApi::BMeasureUnit::getNodeInfo ( NodeInfo & nodeInfo)

Override getNodeInfo.

◆ info()

BString BMeasureApi::BMeasureUnit::info ( )

◆ numChannels()

BUInt BMeasureApi::BMeasureUnit::numChannels ( )

The number of channels of data.

◆ processdataBlock()

void BMeasureApi::BMeasureUnit::processdataBlock ( const DataBlock & dataBlock,
DataBlockFloat * dataBlockOut )
static

◆ run()

void BMeasureApi::BMeasureUnit::run ( )
virtual

Threaded run mode.

Reimplemented from BTask.

◆ sendDataFloatServe()

void BMeasureApi::BMeasureUnit::sendDataFloatServe ( const DataBlockFloat & dataBlockFloat)
virtual

Reimplemented in BMeasureApi::BMeasureUnit1.

◆ sendDataProcServe()

void BMeasureApi::BMeasureUnit::sendDataProcServe ( const DataBlockProc & dataBlockProc)
virtual

Reimplemented in BMeasureApi::BMeasureUnit1.

◆ sendDataServe()

void BMeasureApi::BMeasureUnit::sendDataServe ( const DataBlock & dataBlock)
virtual

◆ sendStreamDataServe()

void BMeasureApi::BMeasureUnit::sendStreamDataServe ( const StreamData & streamData)
virtual

◆ serialNumber()

BString BMeasureApi::BMeasureUnit::serialNumber ( )

◆ setChannelConfig()

BError BMeasureApi::BMeasureUnit::setChannelConfig ( const BUInt8 & channelNumber,
const ChannelConfig & channelConfig )
virtual

◆ setMeasurementConfig()

BError BMeasureApi::BMeasureUnit::setMeasurementConfig ( const Bool & save,
const MeasurementConfig & configMeasurement )
virtual

Member Data Documentation

◆ blockNumChannels

int BMeasureApi::BMeasureUnit::blockNumChannels = 16
static

◆ blockNumSamples

int BMeasureApi::BMeasureUnit::blockNumSamples = 13
static

◆ oblockCount

BUInt32 BMeasureApi::BMeasureUnit::oblockCount
protected

◆ ochannels

BArray<ChannelConfig> BMeasureApi::BMeasureUnit::ochannels
protected

◆ oconfigMeasurement

MeasurementConfig BMeasureApi::BMeasureUnit::oconfigMeasurement
protected

◆ odataBlockFloat

DataBlockFloat* BMeasureApi::BMeasureUnit::odataBlockFloat
protected

◆ odevice

BString BMeasureApi::BMeasureUnit::odevice
protected

◆ odisconnecting

Bool BMeasureApi::BMeasureUnit::odisconnecting
protected

◆ oinfo

Information BMeasureApi::BMeasureUnit::oinfo
protected

Instrument info.

◆ onodeInfo

NodeInfo BMeasureApi::BMeasureUnit::onodeInfo
protected

◆ oprocEnable

BSemaphoreBool BMeasureApi::BMeasureUnit::oprocEnable
protected

Enable processing.

◆ oprocRunning

BSemaphoreBool BMeasureApi::BMeasureUnit::oprocRunning
protected

Processing is running.

◆ osampleCount

BUInt32 BMeasureApi::BMeasureUnit::osampleCount
protected

◆ osequenceNext

BUInt32 BMeasureApi::BMeasureUnit::osequenceNext
protected

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