Electronics and Software
Engineering Innovation
BMeasure-lib 1.3.0
BMeasureApi::BMeasureUnit1 Class Reference

#include <BMeasureUnits.h>

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

Public Member Functions

 BMeasureUnit1 (BMeasureUnits &measureUnits, BString device, Bool threaded=0, BUInt reqSize=2048)
 
BString serialNumber ()
 
void setSerialNumber (BString serialNumber)
 
void disconnected ()
 
void sendStatusServe (const NodeStatus &nodeStatus)
 
void sendMessageServe (const BUInt32 &source, const BString &message)
 
void sendDataFloatServe (const DataBlockFloat &dataBlockFloat)
 
void sendDataProcServe (const DataBlockProc &dataBlockProc)
 
- Public Member Functions inherited from BMeasureApi::BMeasureUnit
 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 sendDataServe (const DataBlock &dataBlock)
 
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)
 

Public Attributes

BMeasureUnitsomeasureUnits
 
Bool oenabled
 
Bool oconnected
 
BUInt oorder
 
BUInt osource
 
BString oserialNumber
 

Additional Inherited Members

- Static Public Member Functions inherited from BMeasureApi::BMeasureUnit
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 inherited from BMeasureApi::BMeasureUnit
static int blockNumChannels = 16
 
static int blockNumSamples = 13
 
- Static Protected Member Functions inherited from BTask
static void * taskFunc (void *)
 
- Protected Attributes inherited from BMeasureApi::BMeasureUnit
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
 

Constructor & Destructor Documentation

◆ BMeasureUnit1()

BMeasureApi::BMeasureUnit1::BMeasureUnit1 ( BMeasureUnits & measureUnits,
BString device,
Bool threaded = 0,
BUInt reqSize = 2048 )

Member Function Documentation

◆ disconnected()

void BMeasureApi::BMeasureUnit1::disconnected ( )
virtual

Reimplemented from BMeasureApi::BMeasureUnit.

◆ sendDataFloatServe()

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

Reimplemented from BMeasureApi::BMeasureUnit.

◆ sendDataProcServe()

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

Reimplemented from BMeasureApi::BMeasureUnit.

◆ sendMessageServe()

void BMeasureApi::BMeasureUnit1::sendMessageServe ( const BUInt32 & source,
const BString & message )

◆ sendStatusServe()

void BMeasureApi::BMeasureUnit1::sendStatusServe ( const NodeStatus & nodeStatus)

◆ serialNumber()

BString BMeasureApi::BMeasureUnit1::serialNumber ( )

◆ setSerialNumber()

void BMeasureApi::BMeasureUnit1::setSerialNumber ( BString serialNumber)

Member Data Documentation

◆ oconnected

Bool BMeasureApi::BMeasureUnit1::oconnected

◆ oenabled

Bool BMeasureApi::BMeasureUnit1::oenabled

◆ omeasureUnits

BMeasureUnits& BMeasureApi::BMeasureUnit1::omeasureUnits

◆ oorder

BUInt BMeasureApi::BMeasureUnit1::oorder

◆ oserialNumber

BString BMeasureApi::BMeasureUnit1::oserialNumber

◆ osource

BUInt BMeasureApi::BMeasureUnit1::osource

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