Electronics and Software
Engineering Innovation
BMeasure-lib  0.8.4

#include <BMeasureUnits.h>

Inheritance diagram for BMeasureApi::BMeasureUnits:
BTask

Public Member Functions

 BMeasureUnits (Bool threaded=0)
 
virtual ~BMeasureUnits ()
 
void clear ()
 
BError unitsFind ()
 
BError unitAdd (BString serialNumber, BString device)
 
BError unitDelete (BString device)
 
BUInt32 unitsNum ()
 
BUInt32 unitsConnectedNum ()
 
BMeasureUnit1unit (BUInt u)
 
BMeasureUnit1unitMaster ()
 
BError unitsConnect ()
 
Bool unitsConnected ()
 
BError unitsDisconnect ()
 
virtual void disconnected ()
 
BError unitSetOrder (BUInt u, BUInt order, Bool move)
 
BError unitSetEnabled (BUInt u, Bool enable)
 
BError dataSetNumStreams (BUInt num)
 Set the number of data output channels. More...
 
void dataProcessEnable (Bool on)
 Enable the processing of data. More...
 
void dataClear ()
 
BUInt dataAvailable (BUInt stream)
 
BError dataWait (BUInt stream, BTimeout timeoutUs=BTimeoutForever)
 
virtual void dataEvent (BUInt stream)
 
DataBlockdataRead (BUInt stream)
 
void dataDone (BUInt stream)
 
void run ()
 Threaded run mode. More...
 
void sendDataQueue (const DataBlock &dataBlock)
 
void sendDataProcess ()
 
void sendDataProcessTrigger ()
 
void outputBlock (BMeasureUnitsDataBlock *block)
 
virtual BUInt numChannels ()
 The number of channels of data. More...
 
virtual BError setMode (const Mode &mode)
 Set the current operational mode. More...
 
virtual BError getStatus (NodeStatus &nodeStatus)
 
virtual void sendTime (const BTimeUs &time)
 Sends the current time. More...
 
virtual BError getInformation (Information &info)
 
virtual BError getInfoBlock (InfoBlock &infoBlock)
 
virtual BError getChannelConfig (const BUInt8 &channelNumber, ChannelConfig &channelConfig)
 
virtual BError setChannelConfig (const BUInt8 &channelNumber, const ChannelConfig &channelConfig)
 
virtual BError getConfig (Configuration &config)
 Should we have this, not generic for different instruments ? More...
 
virtual BError setConfig (const Configuration &config)
 Should we have this, not generic for different instruments ? More...
 
virtual BError getMeasurementConfig (MeasurementConfig &measurement)
 Get measurement config. More...
 
virtual BError setMeasurementConfig (const MeasurementConfig &measurement)
 Set measurement config. More...
 
virtual BError getMeasurement (MeasurementConfig &measurement)
 Get measurement settings. More...
 
virtual BError setMeasurement (const MeasurementConfig &measurement)
 Set measurement settings. More...
 
virtual BError sendDataEnable (const DataSend &dataSend)
 Enables the sending of data. More...
 
virtual BError getAwgConfig (AwgConfig &awgConfig)
 Get AWG Configuration. More...
 
virtual BError setAwgConfig (const AwgConfig &awgConfig)
 Configure AWG. More...
 
virtual void sendDataServe1 (const DataBlock &dataBlock)
 
virtual void sendMessage (BUInt32 &source, BString &message)
 
virtual void sendMessageServe (const BUInt32 &source, const BString &message)
 
void debugPrint ()
 
- Public Member Functions inherited from BTask
 BTask (const char *name="", BUInt stackSize=0, BUInt priority=1)
 
 ~BTask ()
 
void init (const char *name, BUInt stackSize=0, BUInt priority=1)
 
BError start ()
 
void stop ()
 
void waitForCompletion ()
 
int setPriority (BUInt priority)
 

Private Member Functions

BMeasureUnitsDataBlockgetFreeBlock (BUInt numSamples)
 

Private Attributes

BSemaphoreBool oprocEnable
 Enable processing. More...
 
BSemaphoreBool oprocRunning
 Processing is running. More...
 
BMutex olockUnits
 
BList< BMeasureUnit1 * > ounits
 
BInt ounitMaster
 
BUInt onumConnected
 
BUInt onumChannels
 
BUInt odataStreamNum
 
BUInt32 ofill
 
BUInt onumBlocks
 
BMutex olockInput
 
BList< BMeasureUnitsDataBlock * > odataBlocksFree
 
BList< BMeasureUnitsDataBlock * > odataBlocksIn
 
BList< BMeasureUnitsDataBlock * > odataBlocksProcess
 
BCondInt odataBlocksProcessNum
 
BMutex olockOutput
 
BList< BMeasureUnitsDataBlock * > odataBlocksOut [2]
 
BCondInt odataBlocksOutCount [2]
 
MeasurementConfig olocalTrigger
 
Bool otriggered
 
BUInt ostartSample
 

Additional Inherited Members

- Static Protected Member Functions inherited from BTask
static void * taskFunc (void *)
 
- Protected Attributes inherited from BTask
const char * oname
 
BUInt ostackSize
 
BUInt opolicy
 
BUInt opriority
 
pthread_t othread
 
Bool orunning
 

Constructor & Destructor Documentation

◆ BMeasureUnits()

BMeasureApi::BMeasureUnits::BMeasureUnits ( Bool  threaded = 0)

◆ ~BMeasureUnits()

BMeasureApi::BMeasureUnits::~BMeasureUnits ( )
virtual

Member Function Documentation

◆ clear()

void BMeasureApi::BMeasureUnits::clear ( )

◆ dataAvailable()

BUInt BMeasureApi::BMeasureUnits::dataAvailable ( BUInt  stream)

◆ dataClear()

void BMeasureApi::BMeasureUnits::dataClear ( )

◆ dataDone()

void BMeasureApi::BMeasureUnits::dataDone ( BUInt  stream)

◆ dataEvent()

void BMeasureApi::BMeasureUnits::dataEvent ( BUInt  stream)
virtual

◆ dataProcessEnable()

void BMeasureApi::BMeasureUnits::dataProcessEnable ( Bool  on)

Enable the processing of data.

◆ dataRead()

DataBlock * BMeasureApi::BMeasureUnits::dataRead ( BUInt  stream)

◆ dataSetNumStreams()

BError BMeasureApi::BMeasureUnits::dataSetNumStreams ( BUInt  num)

Set the number of data output channels.

◆ dataWait()

BError BMeasureApi::BMeasureUnits::dataWait ( BUInt  stream,
BTimeout  timeoutUs = BTimeoutForever 
)

◆ debugPrint()

void BMeasureApi::BMeasureUnits::debugPrint ( )

◆ disconnected()

void BMeasureApi::BMeasureUnits::disconnected ( )
virtual

◆ getAwgConfig()

BError BMeasureApi::BMeasureUnits::getAwgConfig ( AwgConfig awgConfig)
virtual

Get AWG Configuration.

◆ getChannelConfig()

BError BMeasureApi::BMeasureUnits::getChannelConfig ( const BUInt8 channelNumber,
ChannelConfig channelConfig 
)
virtual

◆ getConfig()

BError BMeasureApi::BMeasureUnits::getConfig ( Configuration config)
virtual

Should we have this, not generic for different instruments ?

◆ getFreeBlock()

BMeasureUnitsDataBlock * BMeasureApi::BMeasureUnits::getFreeBlock ( BUInt  numSamples)
private

◆ getInfoBlock()

BError BMeasureApi::BMeasureUnits::getInfoBlock ( InfoBlock infoBlock)
virtual

◆ getInformation()

BError BMeasureApi::BMeasureUnits::getInformation ( Information info)
virtual

◆ getMeasurement()

BError BMeasureApi::BMeasureUnits::getMeasurement ( MeasurementConfig measurement)
virtual

Get measurement settings.

◆ getMeasurementConfig()

BError BMeasureApi::BMeasureUnits::getMeasurementConfig ( MeasurementConfig measurement)
virtual

Get measurement config.

◆ getStatus()

BError BMeasureApi::BMeasureUnits::getStatus ( NodeStatus nodeStatus)
virtual

◆ numChannels()

BUInt BMeasureApi::BMeasureUnits::numChannels ( )
virtual

The number of channels of data.

◆ outputBlock()

void BMeasureApi::BMeasureUnits::outputBlock ( BMeasureUnitsDataBlock block)

◆ run()

void BMeasureApi::BMeasureUnits::run ( )
virtual

Threaded run mode.

Reimplemented from BTask.

◆ sendDataEnable()

BError BMeasureApi::BMeasureUnits::sendDataEnable ( const DataSend dataSend)
virtual

Enables the sending of data.

◆ sendDataProcess()

void BMeasureApi::BMeasureUnits::sendDataProcess ( )

◆ sendDataProcessTrigger()

void BMeasureApi::BMeasureUnits::sendDataProcessTrigger ( )

◆ sendDataQueue()

void BMeasureApi::BMeasureUnits::sendDataQueue ( const DataBlock dataBlock)

◆ sendDataServe1()

void BMeasureApi::BMeasureUnits::sendDataServe1 ( const DataBlock dataBlock)
virtual

◆ sendMessage()

void BMeasureApi::BMeasureUnits::sendMessage ( BUInt32 source,
BString message 
)
virtual

◆ sendMessageServe()

void BMeasureApi::BMeasureUnits::sendMessageServe ( const BUInt32 source,
const BString message 
)
virtual

◆ sendTime()

void BMeasureApi::BMeasureUnits::sendTime ( const BTimeUs time)
virtual

Sends the current time.

◆ setAwgConfig()

BError BMeasureApi::BMeasureUnits::setAwgConfig ( const AwgConfig awgConfig)
virtual

Configure AWG.

◆ setChannelConfig()

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

◆ setConfig()

BError BMeasureApi::BMeasureUnits::setConfig ( const Configuration config)
virtual

Should we have this, not generic for different instruments ?

◆ setMeasurement()

BError BMeasureApi::BMeasureUnits::setMeasurement ( const MeasurementConfig measurement)
virtual

Set measurement settings.

◆ setMeasurementConfig()

BError BMeasureApi::BMeasureUnits::setMeasurementConfig ( const MeasurementConfig measurement)
virtual

Set measurement config.

◆ setMode()

BError BMeasureApi::BMeasureUnits::setMode ( const Mode mode)
virtual

Set the current operational mode.

◆ unit()

BMeasureUnit1 & BMeasureApi::BMeasureUnits::unit ( BUInt  u)

◆ unitAdd()

BError BMeasureApi::BMeasureUnits::unitAdd ( BString  serialNumber,
BString  device 
)

◆ unitDelete()

BError BMeasureApi::BMeasureUnits::unitDelete ( BString  device)

◆ unitMaster()

BMeasureUnit1 & BMeasureApi::BMeasureUnits::unitMaster ( )

◆ unitsConnect()

BError BMeasureApi::BMeasureUnits::unitsConnect ( )

◆ unitsConnected()

Bool BMeasureApi::BMeasureUnits::unitsConnected ( )

◆ unitsConnectedNum()

BUInt BMeasureApi::BMeasureUnits::unitsConnectedNum ( )

◆ unitsDisconnect()

BError BMeasureApi::BMeasureUnits::unitsDisconnect ( )

◆ unitSetEnabled()

BError BMeasureApi::BMeasureUnits::unitSetEnabled ( BUInt  u,
Bool  enable 
)

◆ unitSetOrder()

BError BMeasureApi::BMeasureUnits::unitSetOrder ( BUInt  u,
BUInt  order,
Bool  move 
)

◆ unitsFind()

BError BMeasureApi::BMeasureUnits::unitsFind ( )

◆ unitsNum()

BUInt BMeasureApi::BMeasureUnits::unitsNum ( )

Member Data Documentation

◆ odataBlocksFree

BList<BMeasureUnitsDataBlock*> BMeasureApi::BMeasureUnits::odataBlocksFree
private

◆ odataBlocksIn

BList<BMeasureUnitsDataBlock*> BMeasureApi::BMeasureUnits::odataBlocksIn
private

◆ odataBlocksOut

BList<BMeasureUnitsDataBlock*> BMeasureApi::BMeasureUnits::odataBlocksOut[2]
private

◆ odataBlocksOutCount

BCondInt BMeasureApi::BMeasureUnits::odataBlocksOutCount[2]
private

◆ odataBlocksProcess

BList<BMeasureUnitsDataBlock*> BMeasureApi::BMeasureUnits::odataBlocksProcess
private

◆ odataBlocksProcessNum

BCondInt BMeasureApi::BMeasureUnits::odataBlocksProcessNum
private

◆ odataStreamNum

BUInt BMeasureApi::BMeasureUnits::odataStreamNum
private

◆ ofill

BUInt32 BMeasureApi::BMeasureUnits::ofill
private

◆ olocalTrigger

MeasurementConfig BMeasureApi::BMeasureUnits::olocalTrigger
private

◆ olockInput

BMutex BMeasureApi::BMeasureUnits::olockInput
private

◆ olockOutput

BMutex BMeasureApi::BMeasureUnits::olockOutput
private

◆ olockUnits

BMutex BMeasureApi::BMeasureUnits::olockUnits
private

◆ onumBlocks

BUInt BMeasureApi::BMeasureUnits::onumBlocks
private

◆ onumChannels

BUInt BMeasureApi::BMeasureUnits::onumChannels
private

◆ onumConnected

BUInt BMeasureApi::BMeasureUnits::onumConnected
private

◆ oprocEnable

BSemaphoreBool BMeasureApi::BMeasureUnits::oprocEnable
private

Enable processing.

◆ oprocRunning

BSemaphoreBool BMeasureApi::BMeasureUnits::oprocRunning
private

Processing is running.

◆ ostartSample

BUInt BMeasureApi::BMeasureUnits::ostartSample
private

◆ otriggered

Bool BMeasureApi::BMeasureUnits::otriggered
private

◆ ounitMaster

BInt BMeasureApi::BMeasureUnits::ounitMaster
private

◆ ounits

BList<BMeasureUnit1*> BMeasureApi::BMeasureUnits::ounits
private

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