etherlab/extension.py
author Edouard Tisserant
Wed, 02 Apr 2014 15:03:32 +0200
changeset 2152 e6946c298a42
parent 2111 f2cffda17d00
permissions -rw-r--r--
Cherry-pick and re-commit to legitimate ancestor of commit 'Ethercat Management Function Refactoring Source by RTES Lab.' from youcu <youcu1022@gmail.com>
2048
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
     1
import features
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
     2
2086
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     3
def GetEtherLabLibClass():
2111
f2cffda17d00 Split etherlab.py into multiple files
Laurent Bessard
parents: 2086
diff changeset
     4
    from EthercatMaster import EtherlabLibrary
2086
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     5
    return EtherlabLibrary
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     6
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     7
features.libraries.append(
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     8
    ('Etherlab', GetEtherLabLibClass))
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     9
2048
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    10
def GetEtherLabClass():
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    11
    from etherlab import RootClass
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    12
    return RootClass
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    13
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    14
features.catalog.append(
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    15
    ('etherlab', _('EtherCat Master'), _('Map located variables over EtherCat'), GetEtherLabClass))
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    16