etherlab/EthercatCFileGenerator.py
changeset 2405 af050469fc5c
parent 2397 25f16349644b
child 2407 5f2b1bb464a0
equal deleted inserted replaced
2404:87eb184414bd 2405:af050469fc5c
     7 #                          RTES Lab : CRKim, JBLee, youcu
     7 #                          RTES Lab : CRKim, JBLee, youcu
     8 #                          Higen Motor : Donggu Kang
     8 #                          Higen Motor : Donggu Kang
     9 #
     9 #
    10 # See COPYING file for copyrights details.
    10 # See COPYING file for copyrights details.
    11 
    11 
       
    12 from __future__ import absolute_import
    12 import os
    13 import os
    13 
    14 
    14 from EthercatSlave import ExtractHexDecValue, DATATYPECONVERSION, ExtractName
    15 from etherlab.EthercatSlave import ExtractHexDecValue, DATATYPECONVERSION, ExtractName
    15 
    16 
    16 SLAVE_PDOS_CONFIGURATION_DECLARATION = """
    17 SLAVE_PDOS_CONFIGURATION_DECLARATION = """
    17 /* Slave %(slave)d, "%(device_type)s"
    18 /* Slave %(slave)d, "%(device_type)s"
    18  * Vendor ID:       0x%(vendor).8x
    19  * Vendor ID:       0x%(vendor).8x
    19  * Product code:    0x%(product_code).8x
    20  * Product code:    0x%(product_code).8x