SncDeviceDriverBase.Initialize (METH)ΒΆ

METHOD Initialize : ERROR

Method to initialize the corresponding device driver to a given F-SPS and to register it to the global service provicder.

If not done yet the global service provider is initialized, too. By initializing the service provider its linked SNC service handler is registered to the RTS service handler.

Error return values:
  • ERROR.ERR_OK -> success

  • ERROR.ERR_NO_SERVICE_PROVIDER -> the given service provider is invalid (null pointer)

  • ERROR.ERR_START_SERVICE_PROVIDER -> the given service provider could not be started because the registering of the SNC service handler to the RTS service handler failed

  • ERROR.ERR_DRIVER_INVALID -> this driver is invalid for registering

  • ERROR.DRIVER_IS_ALREADY_REGISTERED -> this driver is already registered to the given service provider

InOut:

Scope

Name

Type

Comment

Input

dwVendorID

DWORD

vendor ID from the device description

dwFSpsAddress

DWORD

address from the device description

wMasterIdx

WORD

index of first master

Return

Initialize

ERROR