Public Member Functions | Protected Types | Static Protected Attributes | Private Member Functions | Private Attributes
devices::LdmrsSopasLayer Class Reference

#include <LdmrsSopasLayer.hpp>

Inheritance diagram for devices::LdmrsSopasLayer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool action_flashFieldParameters ()
bool action_flashMrsParameters ()
bool action_login ()
bool action_logout ()
bool action_readEvalCases ()
bool action_readFields ()
bool action_readScanConfig ()
bool action_readSerialNumber ()
bool action_startMeasure ()
bool action_stopMeasure ()
bool action_subscribeEvalCaseResults ()
bool action_subscribeScanData ()
bool action_unSubscribeEvalCaseResults ()
bool action_unSubscribeScanData ()
bool action_writeEvalCases (const EvalCases &evalCases)
bool action_writeField (UINT16 fieldNum, const FieldParameter &para)
bool init (Tcp::DisconnectFunction function, void *obj)
bool isFieldDataSubscribed () const
 LdmrsSopasLayer (Manager *manager, const UINT8 deviceID, std::string ipAddress, UINT16 portNumber, bool weWantFieldData, bool weWantScanData, bool readOnlyMode)
bool run ()
virtual ~LdmrsSopasLayer ()

Protected Types

enum  ScanFreqEnum { ScanFreq1250 = 0, ScanFreq2500 = 1, ScanFreq5000 = 2 }
enum  SopasEventByIndex_LDMRS { index_event_Scanning = 0x0000, index_event_ScanDataMonitor = 0x0011, index_event_aEvalCaseResult = 0x0029 }
enum  SopasMethodByIndex_LDMRS {
  index_meth_SetAccessMode = 0x0000, index_meth_GetAccessMode = 0x0001, index_meth_Run = 0x0002, index_meth_FlashFieldParameters = 0x0003,
  index_meth_GetDescription = 0x0004, index_meth_CheckPassword = 0x0005, index_meth_MthdFlashLUXParameters = 0x0006, index_meth_mStartMeasure = 0x000b,
  index_meth_mStopMeasure = 0x000c
}
enum  SopasVariableByIndex_LDMRS {
  index_var_DeviceIdent = 0x00, index_var_SOPASVersion = 0x01, index_var_LocationName = 0x02, index_var_SerialNumber = 0x03,
  index_var_FirmwareVersion = 0x04, index_var_Scanning = 0x05, index_var_SopasInfo = 0x06, index_var_InternalFeedback = 0x07,
  index_var_TestScanFrequency = 0x08, index_var_CIDChecksum = 0x09, index_var_TestScanActive = 0x0a, index_var_ScanDataConfig = 0x0b,
  index_var_AngleDataConfig = 0x0c, index_var_LayerEchoConfig = 0x0d, index_var_ScanConfig = 0x0e, index_var_MeasMode = 0x0f,
  index_var_ApplRange = 0x10, index_var_DataOutputRange = 0x11, index_var_AutoStartMeasure = 0x12, index_var_field000 = 0x003d,
  index_var_field001 = 0x003e, index_var_field002 = 0x003f, index_var_field003 = 0x0040, index_var_field004 = 0x0041,
  index_var_field005 = 0x0042, index_var_field006 = 0x0043, index_var_field007 = 0x0044, index_var_field008 = 0x0045,
  index_var_field009 = 0x0046, index_var_field010 = 0x0047, index_var_field011 = 0x0048, index_var_field012 = 0x0049,
  index_var_field013 = 0x004a, index_var_field014 = 0x004b, index_var_field015 = 0x004c, index_var_numOfParamFields = 0x004d,
  index_var_evalCaseParam = 0x004e
}

Static Protected Attributes

static const UINT16 MAX_NUM_OF_FIELDS = 16

Private Member Functions

double angleToRad (INT32 angle)
 computes an angle in [rad] from INT32 as 1/10000 deg in scanner coordinate system
EvalCases colaB_evalCaseDecoder (SopasAnswer *answer)
UINT32 colaB_evalCaseEncoder (BYTE *buffer, const EvalCases &evalCases)
FieldParametercolaB_fieldDecoder (SopasAnswer *answer)
UINT32 colaB_fieldEncoder (BYTE *buffer, const FieldParameter &fieldPara)
void evalCaseResultDecoder (SopasEventMessage &frame)
SensorStateInfo getSensorStateInfo ()
void scanDataDecoder (SopasEventMessage &frame)

Private Attributes

double m_angleResolution
bool m_beVerbose
UINT32 m_deviceId
EvalCases m_evalCases
Fields m_fields
std::string m_ipAddress
EvalCaseResults m_lastEvalCaseResults
Managerm_manager
UINT16 m_portNumber
bool m_readOnlyMode
double m_scanEndAngle
double m_scanFreq
double m_scanStartAngle

Detailed Description

Definition at line 27 of file LdmrsSopasLayer.hpp.


Member Enumeration Documentation

Enumerator:
ScanFreq1250 
ScanFreq2500 
ScanFreq5000 

Definition at line 69 of file LdmrsSopasLayer.hpp.

Enumerator:
index_event_Scanning 
index_event_ScanDataMonitor 
index_event_aEvalCaseResult 

Definition at line 134 of file LdmrsSopasLayer.hpp.

Enumerator:
index_meth_SetAccessMode 
index_meth_GetAccessMode 
index_meth_Run 
index_meth_FlashFieldParameters 
index_meth_GetDescription 
index_meth_CheckPassword 
index_meth_MthdFlashLUXParameters 
index_meth_mStartMeasure 
index_meth_mStopMeasure 

Definition at line 121 of file LdmrsSopasLayer.hpp.

Enumerator:
index_var_DeviceIdent 
index_var_SOPASVersion 
index_var_LocationName 
index_var_SerialNumber 
index_var_FirmwareVersion 
index_var_Scanning 
index_var_SopasInfo 
index_var_InternalFeedback 
index_var_TestScanFrequency 
index_var_CIDChecksum 
index_var_TestScanActive 
index_var_ScanDataConfig 
index_var_AngleDataConfig 
index_var_LayerEchoConfig 
index_var_ScanConfig 
index_var_MeasMode 
index_var_ApplRange 
index_var_DataOutputRange 
index_var_AutoStartMeasure 
index_var_field000 
index_var_field001 
index_var_field002 
index_var_field003 
index_var_field004 
index_var_field005 
index_var_field006 
index_var_field007 
index_var_field008 
index_var_field009 
index_var_field010 
index_var_field011 
index_var_field012 
index_var_field013 
index_var_field014 
index_var_field015 
index_var_numOfParamFields 
index_var_evalCaseParam 

Definition at line 77 of file LdmrsSopasLayer.hpp.


Constructor & Destructor Documentation

devices::LdmrsSopasLayer::LdmrsSopasLayer ( Manager manager,
const UINT8  deviceID,
std::string  ipAddress,
UINT16  portNumber,
bool  weWantFieldData,
bool  weWantScanData,
bool  readOnlyMode 
)

Definition at line 20 of file LdmrsSopasLayer.cpp.

Definition at line 41 of file LdmrsSopasLayer.cpp.


Member Function Documentation

Definition at line 186 of file LdmrsSopasLayer.cpp.

Definition at line 242 of file LdmrsSopasLayer.cpp.

Definition at line 300 of file LdmrsSopasLayer.cpp.

Definition at line 363 of file LdmrsSopasLayer.cpp.

Definition at line 579 of file LdmrsSopasLayer.cpp.

Definition at line 879 of file LdmrsSopasLayer.cpp.

Definition at line 532 of file LdmrsSopasLayer.cpp.

Definition at line 427 of file LdmrsSopasLayer.cpp.

Definition at line 478 of file LdmrsSopasLayer.cpp.

Definition at line 455 of file LdmrsSopasLayer.cpp.

Definition at line 512 of file LdmrsSopasLayer.cpp.

Definition at line 839 of file LdmrsSopasLayer.cpp.

bool devices::LdmrsSopasLayer::action_writeField ( UINT16  fieldNum,
const FieldParameter para 
)

Definition at line 798 of file LdmrsSopasLayer.cpp.

double devices::LdmrsSopasLayer::angleToRad ( INT32  angle) [private]

computes an angle in [rad] from INT32 as 1/10000 deg in scanner coordinate system

Definition at line 938 of file LdmrsSopasLayer.cpp.

Definition at line 600 of file LdmrsSopasLayer.cpp.

UINT32 devices::LdmrsSopasLayer::colaB_evalCaseEncoder ( BYTE buffer,
const EvalCases evalCases 
) [private]

Definition at line 670 of file LdmrsSopasLayer.cpp.

Definition at line 949 of file LdmrsSopasLayer.cpp.

UINT32 devices::LdmrsSopasLayer::colaB_fieldEncoder ( BYTE buffer,
const FieldParameter fieldPara 
) [private]

Definition at line 1617 of file LdmrsSopasLayer.cpp.

Implements devices::SopasBase.

Definition at line 1376 of file LdmrsSopasLayer.cpp.

Definition at line 1537 of file LdmrsSopasLayer.cpp.

bool devices::LdmrsSopasLayer::init ( Tcp::DisconnectFunction  function,
void *  obj 
)

Definition at line 47 of file LdmrsSopasLayer.cpp.

Definition at line 60 of file LdmrsSopasLayer.hpp.

Definition at line 139 of file LdmrsSopasLayer.cpp.

void devices::LdmrsSopasLayer::scanDataDecoder ( SopasEventMessage frame) [private, virtual]

Implements devices::SopasBase.

Definition at line 1111 of file LdmrsSopasLayer.cpp.


Member Data Documentation

Definition at line 160 of file LdmrsSopasLayer.hpp.

Reimplemented from devices::SopasBase.

Definition at line 154 of file LdmrsSopasLayer.hpp.

Definition at line 153 of file LdmrsSopasLayer.hpp.

Definition at line 157 of file LdmrsSopasLayer.hpp.

Definition at line 158 of file LdmrsSopasLayer.hpp.

Reimplemented from devices::SopasBase.

Definition at line 166 of file LdmrsSopasLayer.hpp.

Definition at line 156 of file LdmrsSopasLayer.hpp.

Definition at line 152 of file LdmrsSopasLayer.hpp.

Reimplemented from devices::SopasBase.

Definition at line 167 of file LdmrsSopasLayer.hpp.

Reimplemented from devices::SopasBase.

Definition at line 168 of file LdmrsSopasLayer.hpp.

Definition at line 162 of file LdmrsSopasLayer.hpp.

Definition at line 163 of file LdmrsSopasLayer.hpp.

Definition at line 161 of file LdmrsSopasLayer.hpp.

const UINT16 devices::LdmrsSopasLayer::MAX_NUM_OF_FIELDS = 16 [static, protected]

Definition at line 118 of file LdmrsSopasLayer.hpp.


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


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Thu Jun 6 2019 21:02:36