equal
deleted
inserted
replaced
23 EtherCATInfo_XPath = lambda xpath: etree.XPath(xpath) |
23 EtherCATInfo_XPath = lambda xpath: etree.XPath(xpath) |
24 |
24 |
25 def extract_param(el): |
25 def extract_param(el): |
26 if el.tag == "Index": |
26 if el.tag == "Index": |
27 return "#x%4.4X" % int(el.text) |
27 return "#x%4.4X" % int(el.text) |
28 if el.tag == "PDOMapping": |
28 elif el.tag == "BitSize": |
|
29 if el.text is None: |
|
30 return 0 |
|
31 return int(el.text) |
|
32 elif el.tag == "PDOMapping": |
29 if el.text is None: |
33 if el.text is None: |
30 return "" |
34 return "" |
31 return el.text.upper() |
35 return el.text.upper() |
32 if el.text is None: |
36 if el.text is None: |
33 return "" |
37 return "" |