Interface IS7Unit

All Superinterfaces:
IBinaryUnit, ICodeObjectUnit, IEventSource, IS7BlocksManager, IUnit, IUnitCreator, IUserDataSupport

public interface IS7Unit extends ICodeObjectUnit, IS7BlocksManager
S7 container unit. Provide mapping support for blocks and MC7 execution environment artifacts into a VM managed by the native code analysis pipeline.
  • Method Details

    • getBlockAt

      IS7Block getBlockAt(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.
      Parameters:
      address - start address
      Returns:
      null on error
    • getBlockContaining

      IS7Block 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.
      Parameters:
      address - an address (not necessarily the start address)
      Returns:
      null on error
    • getAddressOfRawBytes

      long getAddressOfRawBytes(IS7Block blk)
      Retrieve the mapping address of the raw (uninterpreted) bytes of a block.
      Parameters:
      blk -
      Returns:
      a VM address, -1 on error
    • getAddressOfCode

      long getAddressOfCode(S7.BlockType type, int number)
      Parameters:
      type - one of OB, FB, FC, SFB, SFN
      number - block number
      Returns:
      a VM address, -1 on error
    • getAddressOfData

      long getAddressOfData(S7.BlockType type, int number)
      Parameters:
      type - one of DB, SDB
      number - 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()