Interface IS7Unit
- All Superinterfaces:
IBinaryUnit,ICodeObjectUnit,IEventSource,IS7BlocksManager,IUnit,IUnitCreator,IUserDataSupport
S7 container unit. Provide mapping support for blocks and MC7 execution environment artifacts
into a VM managed by the native code analysis pipeline.
-
Method Summary
Modifier and TypeMethodDescriptionlonggetAddressOfCode(S7.BlockType type, int number) longlonggetAddressOfData(S7.BlockType type, int number) longlonglonglongRetrieve the mapping address of the raw (uninterpreted) bytes of a block.longgetBlockAt(long address) Retrieve the block whose data (if the block is a data block) or code (if the block is a logic block) is mapped at the provided address.getBlockContaining(long address) Retrieve the block whose data (if the block is a data block) or code (if the block is a logic block) whose mapping contains the provided address.Methods inherited from interface com.pnfsoftware.jeb.core.units.IBinaryUnit
getInput, getMimeTypeMethods inherited from interface com.pnfsoftware.jeb.core.units.codeobject.ICodeObjectUnit
convertFileOffsetToRelativeAddress, convertRelativeAddressToFileOffset, getExportedSymbols, getImportedSymbols, getLoaderInformation, getRawMemoryMappedImage, getSection, getSectionCount, getSections, getSections, getSegment, getSegmentCount, getSegments, getSegments, getSymbols, getSymbols, getValidSections, getValidSegments, mapMethods inherited from interface com.pnfsoftware.jeb.util.events.IEventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, removeListener, setParentSourceMethods inherited from interface com.pnfsoftware.jeb.core.units.code.simatic.IS7BlocksManager
findBlock, getBlockEntryName, getBlocksMethods inherited from interface com.pnfsoftware.jeb.core.units.IUnit
addChild, addChild, canBePersisted, dispose, execprvfunc, generateQuickState, getChildren, getContributions, getCreationTimestamp, getDescription, getExtraInputs, getFormatter, getFormatType, getIconData, getInterpreters, getLock, getName, getNotes, getNotificationManager, getParent, getParentArtifact, getParentProject, getPropertyDefinitionManager, getPropertyManager, getRealName, getStatus, getUid, getUnitProcessor, initializePropertyObjects, isDisposed, isProcessed, isStale, isTransientChild, notifyGenericChange, postDeserialization, process, removeChild, setName, setNotes, setParent, setRealName, setUnitProcessorMethods inherited from interface com.pnfsoftware.jeb.core.IUserDataSupport
clearAllData, getAllData, getData, setData
-
Method Details
-
getBlockAt
Retrieve the block whose data (if the block is a data block) or code (if the block is a logic block) is mapped at the provided address.- Parameters:
address- start address- Returns:
- null on error
-
getBlockContaining
Retrieve the block whose data (if the block is a data block) or code (if the block is a logic block) whose mapping contains the provided address.- Parameters:
address- an address (not necessarily the start address)- Returns:
- null on error
-
getAddressOfRawBytes
Retrieve the mapping address of the raw (uninterpreted) bytes of a block.- Parameters:
blk-- Returns:
- a VM address, -1 on error
-
getAddressOfCode
- Parameters:
type- one of OB, FB, FC, SFB, SFNnumber- block number- Returns:
- a VM address, -1 on error
-
getAddressOfData
- Parameters:
type- one of DB, SDBnumber- block number- Returns:
- a VM address, -1 on error
-
getAddressOfGlobals
long getAddressOfGlobals()- Returns:
- a VM address, -1 on error
-
getAddressOfDigitalInputs
long getAddressOfDigitalInputs()- Returns:
- a VM address, -1 on error
-
getAddressOfDigitalOutputs
long getAddressOfDigitalOutputs()- Returns:
- a VM address, -1 on error
-
getAddressOfCounters
long getAddressOfCounters()- Returns:
- a VM address, -1 on error
-
getAddressOfTimers
long getAddressOfTimers()
-