Electronics and Software
Engineering Innovation
BMeasure-lib  1.0.0

#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 dataStreamEnable (Bool on)
 Enable the streaming 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)
 
virtual void dataProcEvent (BUInt stream)
 
DataBlockProcdataProcRead (BUInt stream)
 
void dataProcDone (BUInt stream)
 
void run ()
 Threaded run mode. More...
 
void sendDataQueue (const DataBlock &dataBlock)
 
void sendDataProcQueue (const DataBlock &dataBlock)
 
void sendDataProcess ()
 
void sendDataProcessTrigger ()
 
void outputBlock (BMeasureUnitsDataBlock *block)
 
virtual BError getNodeInfo (NodeInfo &nodeInfo)
 
virtual BError login (const BString &userid, const BString &password)
 
virtual BError logout ()
 
virtual BError changePassword (const BString &userid, const BString &oldPassword, const BString &newPassword)
 
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 (const Bool &saved, MeasurementConfig &measurement)
 Get measurement config. More...
 
virtual BError setMeasurementConfig (const Bool &save, const MeasurementConfig &measurement)
 Set measurement config. More...
 
virtual BError sendDataEnable (const DataSend &dataSend)
 Enables the sending of data. More...
 
virtual BError getAwgConfig (const Bool &saved, AwgConfig &awgConfig)
 Get AWG Configuration. More...
 
virtual BError setAwgConfig (const Bool &save, const AwgConfig &awgConfig)
 Configure AWG. More...
 
virtual BError alarmsClear (const BUInt32 &bits)
 Clear all alarms. 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]
 
BMutex olockProcInput
 
BList< DataBlockodataProcBlocks
 
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

◆ alarmsClear()

BError BMeasureApi::BMeasureUnits::alarmsClear ( const BUInt32 bits)
virtual

Clear all alarms.

◆ changePassword()

BError BMeasureApi::BMeasureUnits::changePassword ( const BString userid,
const BString oldPassword,
const BString newPassword 
)
virtual

◆ 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

◆ dataProcDone()

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

◆ dataProcEvent()

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

◆ dataProcRead()

DataBlockProc * BMeasureApi::BMeasureUnits::dataProcRead ( BUInt  stream)

◆ dataRead()

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

◆ dataSetNumStreams()

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

Set the number of data output channels.

◆ dataStreamEnable()

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

Enable the streaming of data.

◆ 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 ( const Bool saved,
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

◆ getMeasurementConfig()

BError BMeasureApi::BMeasureUnits::getMeasurementConfig ( const Bool saved,
MeasurementConfig measurement 
)
virtual

Get measurement config.

◆ getNodeInfo()

BError BMeasureApi::BMeasureUnits::getNodeInfo ( NodeInfo nodeInfo)
virtual

◆ getStatus()

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

◆ login()

BError BMeasureApi::BMeasureUnits::login ( const BString userid,
const BString password 
)
virtual

◆ logout()

BError BMeasureApi::BMeasureUnits::logout ( )
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 ( )

◆ sendDataProcQueue()

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

◆ 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 Bool save,
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 ?

◆ setMeasurementConfig()

BError BMeasureApi::BMeasureUnits::setMeasurementConfig ( const Bool save,
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

◆ odataProcBlocks

BList<DataBlock> BMeasureApi::BMeasureUnits::odataProcBlocks
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

◆ olockProcInput

BMutex BMeasureApi::BMeasureUnits::olockProcInput
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: