etherlab/etherlab.py
changeset 2376 47775c9367bd
parent 2370 e40f3914e55f
child 2377 88a9d64560d3
equal deleted inserted replaced
2375:cfa68a06a24d 2376:47775c9367bd
    30 # --------------------------------------------------
    30 # --------------------------------------------------
    31 #                 Ethercat ConfNode
    31 #                 Ethercat ConfNode
    32 # --------------------------------------------------
    32 # --------------------------------------------------
    33 
    33 
    34 EtherCATInfoParser = GenerateParserFromXSD(os.path.join(os.path.dirname(__file__), "EtherCATInfo.xsd"))
    34 EtherCATInfoParser = GenerateParserFromXSD(os.path.join(os.path.dirname(__file__), "EtherCATInfo.xsd"))
    35 EtherCATInfo_XPath = lambda xpath: etree.XPath(xpath)
    35 
       
    36 
       
    37 def EtherCATInfo_XPath(xpath):
       
    38     return etree.XPath(xpath)
    36 
    39 
    37 
    40 
    38 def HexDecValue(context, *args):
    41 def HexDecValue(context, *args):
    39     return str(ExtractHexDecValue(args[0][0]))
    42     return str(ExtractHexDecValue(args[0][0]))
    40 
    43