LLSymbols
Macros | Typedefs | Enumerations
LLSymbolsDefs.h File Reference

Go to the source code of this file.

Macros

#define LLSYMBOLS_VERSION_MAJOR   3
 
#define LLSYMBOLS_VERSION_MINOR   4
 
#define LLSYMBOLS_VERSION_REVISION   0
 
#define LLSYMBOLS_VERSION_BUILD   12
 
#define LLSYMTAB_MAX_SUPPORTED_VERSION_MAJOR   1
 
#define LLSYM_MAX_STRING   (260)
 

Typedefs

typedef enum _LLSymResult LLSymResult
 
typedef enum _LLSymTypeProperty LLSymTypeProperty
 
typedef uint32_t addr32_t
 
typedef uint64_t addr64_t
 
typedef addr32_t llsym_addr_t
 
typedef enum _LLSymTyVar LLSymTyVar
 

Enumerations

enum  _LLSymResult {
  symResOk = 0, symResNotInited = 1, symResSocketInitError = 2, symResSymbolTableLoadError = 3,
  symResInvalidHandle = 4, symResInvalidParameter = 5, symResSymbolNotFound = 6, symResAttributeNotFound = 7,
  symResInvalidAddress = 8, symResMemReadError = 9, symResInvalidBuffer = 10, symResUnknownTagSize = 11,
  symResMemWriteError = 12, symResTimeoutError = 13, symResInvalidVARIANT = 14, symResInvalidArrayIndex = 15,
  symResReadOnlyTag = 16, symResConnectionLost = 17, symResNotOk = 18, symResInvalidAttributeValue = 19,
  symResBitCommandRequired = 20, symResInvalidTagSize = 21, symResNotImplemented = 22, symResVersionNotSupported = 23,
  symResCommandNotSupported = 24, symResAddressMismatch32vs64 = 25, symResMemoryAllocError = 26, symResInvalidArea = 27,
  symResWorkspaceInvalidated = 28, symResMaxReached = 29, symResBufferOverflow = 30, symResUnkownCommand = 31,
  symResShutdownInProgress = 32, symResInvalidComm = 33, symResServerNotCompatible = 34, symResOkServerNotFullSupport = 35,
  symResFileAlreadyExists = 36, symResCannotWriteFile = 37, symResCannotOpenFile = 38, symResCannotReadFile = 39,
  symResSegmentationError = 40, symResHandleAlreadyExists = 41, symResInvalidGroupSize = 42, symResGroupMustBeRead = 43,
  symResGroupConfigError = 44, symResInvalidGroupTag = 45, symResGroupIsEmpty = 46, symResInvalidTagType = 47,
  symResSocketError = 48, symResProtocolError = 49, symResSymbolTableUploadError = 50, symResSymbolTableUploadNotAvailable = 51,
  symResSymbolTableUploadModeNotSupported = 52, symResSymbolTableUploadUnzipNotFound = 53, symResSymbolTableUploadUnzipError = 54, symResRemoteCommandNotSupported = 55,
  symResRemoteCommandError = 56, symResInvalidCommString = 57, symResUnsupported64bitTarget = 58
}
 
enum  _LLSymTypeProperty {
  LLSymTypeIsBasic = 0x00000001, LLSymTypeIsComplex = 0x00000002, LLSymTypeIsString = 0x00000004, LLSymTypeIsArray = 0x00000008,
  LLSymTypeIsStruct = 0x00000010, LLSymTypeIsFunctionBlock = 0x00000020, LLSymTypeIsNumeric = 0x00000040, LLSymTypeIsSigned = 0x00000080,
  LLSymTypeIsInteger = 0x00000100
}
 
enum  _LLSymTyVar {
  LLSymTyVarNull = 0, LLSymTyVarBool = 1, LLSymTyVarSInt = 2, LLSymTyVarUSInt = 3,
  LLSymTyVarByte = 4, LLSymTyVarInt = 5, LLSymTyVarUInt = 6, LLSymTyVarWord = 7,
  LLSymTyVarDInt = 9, LLSymTyVarUDInt = 10, LLSymTyVarDWord = 11, LLSymTyVarLInt = 12,
  LLSymTyVarULInt = 13, LLSymTyVarLWord = 14, LLSymTyVarReal = 15, LLSymTyVarLReal = 16,
  LLSymTyVarString = 17, LLSymTyVarUserDef = 18, LLSymTyVarPointer = 20
}
 

Macro Definition Documentation

◆ LLSYM_MAX_STRING

#define LLSYM_MAX_STRING   (260)

◆ LLSYMBOLS_VERSION_BUILD

#define LLSYMBOLS_VERSION_BUILD   12

◆ LLSYMBOLS_VERSION_MAJOR

#define LLSYMBOLS_VERSION_MAJOR   3

◆ LLSYMBOLS_VERSION_MINOR

#define LLSYMBOLS_VERSION_MINOR   4

◆ LLSYMBOLS_VERSION_REVISION

#define LLSYMBOLS_VERSION_REVISION   0

◆ LLSYMTAB_MAX_SUPPORTED_VERSION_MAJOR

#define LLSYMTAB_MAX_SUPPORTED_VERSION_MAJOR   1

Maximum supported symbol table version

Typedef Documentation

◆ addr32_t

typedef uint32_t addr32_t

◆ addr64_t

typedef uint64_t addr64_t

◆ llsym_addr_t

◆ LLSymResult

typedef enum _LLSymResult LLSymResult

◆ LLSymTypeProperty

Result type for LLSym_TypeGetProperties

◆ LLSymTyVar

typedef enum _LLSymTyVar LLSymTyVar

Result type for LLSym_GetTagDataTypeVar

Enumeration Type Documentation

◆ _LLSymResult

Enumerator
symResOk 

Operation succeded

symResNotInited 

Not initialized: LLSym_Init must be called

symResSocketInitError 

Can not initialize sockets

symResSymbolTableLoadError 

Can not load symbol table file from disk

symResInvalidHandle 

An invalid handle has been passed

symResInvalidParameter 

An invalid parameter has been passed

symResSymbolNotFound 

The specified symbol name has not been found

symResAttributeNotFound 

The specified attribute name has not been found

symResInvalidAddress 

Invalid communication of physical address

symResMemReadError 

Error reading target memory

symResInvalidBuffer 

An invalid buffer has been specified

symResUnknownTagSize 

Can not determine tag size

symResMemWriteError 

Error writing target memory

symResTimeoutError 

Timeout error in communication

symResInvalidVARIANT 

Invalid VARIANT specified

symResInvalidArrayIndex 

Invalid array index specified

symResReadOnlyTag 

Can not write a read-only tag

symResConnectionLost 

Connection to server lost

symResNotOk 

Operation failed

symResInvalidAttributeValue 

Invalid attribute value

symResBitCommandRequired 

Bit command required

symResInvalidTagSize 

Invalid tag size

symResNotImplemented 

Function not currently implemented

symResVersionNotSupported 

Symbol table version not supported

symResCommandNotSupported 

Command not supported by server

symResAddressMismatch32vs64 

Address type mismatch (32bit vs 64bit)

symResMemoryAllocError 

Can not allocate memory

symResInvalidArea 

Invalid PLC area specified

symResWorkspaceInvalidated 

Specified workspace invalidated

symResMaxReached 

Too workspaces allocated

symResBufferOverflow 

Buffer too small

symResUnkownCommand 

Unknown command sent to server

symResShutdownInProgress 

Shutting down, command refused

symResInvalidComm 

Invalid communication protocol

symResServerNotCompatible 

Server version is not compatible with client

symResOkServerNotFullSupport 

Server version is compatible but some commands maybe not supported

symResFileAlreadyExists 

File already exists

symResCannotWriteFile 

Cannot write file

symResCannotOpenFile 

Cannot open file

symResCannotReadFile 

Cannot read file

symResSegmentationError 

Error in segmentation of command or response

symResHandleAlreadyExists 

Duplicated handle (tag already in the group)

symResInvalidGroupSize 

Invalid group size

symResGroupMustBeRead 

Group must be read at least once before to get tag value

symResGroupConfigError 

Group config error

symResInvalidGroupTag 

Group tag is no more valid

symResGroupIsEmpty 

Group has no tags

symResInvalidTagType 

Invalid tag type

symResSocketError 

Transmission on socket failed

symResProtocolError 

Protocol error

symResSymbolTableUploadError 

Can not load symbol table file from remote target

symResSymbolTableUploadNotAvailable 

Symbol table not available on the target

symResSymbolTableUploadModeNotSupported 

Symbol table upload mode not supported

symResSymbolTableUploadUnzipNotFound 

Symbol table upload unzip.exe missing

symResSymbolTableUploadUnzipError 

Cannot unzip simbol table

symResRemoteCommandNotSupported 

Command not supported by remote target

symResRemoteCommandError 

Command error by remote target

symResInvalidCommString 

Invalid communication string

symResUnsupported64bitTarget 

Unsupported 64bit target

◆ _LLSymTypeProperty

Result type for LLSym_TypeGetProperties

Enumerator
LLSymTypeIsBasic 

Type is basic (simple scalar IEC type)

LLSymTypeIsComplex 

Type is complex (array, struct, function block)

LLSymTypeIsString 

Type is string

LLSymTypeIsArray 

Type is array

LLSymTypeIsStruct 

Type is struct

LLSymTypeIsFunctionBlock 

Type is function block

LLSymTypeIsNumeric 

Type is numeric (integer or float)

LLSymTypeIsSigned 

Type is signed

LLSymTypeIsInteger 

Type is integer

◆ _LLSymTyVar

Result type for LLSym_GetTagDataTypeVar

Enumerator
LLSymTyVarNull 

Type not defined or no valid type

LLSymTyVarBool 

BOOL IEC Type

LLSymTyVarSInt 

SINT IEC Type

LLSymTyVarUSInt 

USINT IEC Type

LLSymTyVarByte 

BYTE IEC Type

LLSymTyVarInt 

INT IEC Type

LLSymTyVarUInt 

UINT IEC Type

LLSymTyVarWord 

WORD IEC Type

LLSymTyVarDInt 

DINT IEC Type

LLSymTyVarUDInt 

UDINT IEC Type

LLSymTyVarDWord 

DWORD IEC Type

LLSymTyVarLInt 

LINT IEC Type

LLSymTyVarULInt 

ULINT IEC Type

LLSymTyVarLWord 

LWORD IEC Type

LLSymTyVarReal 

REAL IEC Type

LLSymTyVarLReal 

LREAL IEC Type

LLSymTyVarString 

STRING IEC Type

LLSymTyVarUserDef 

User defined IEC Type

LLSymTyVarPointer 

Any pointer IEC Type