Пример #1
0
    def __init__(self, connection, module_id=1):
        """
        Constructor for the MAX22216 evalboard instance.

        Parameters:
        connection: TMCL connection interface instance.
        module_id: Module ID to identify the evalboard module. This is used to differentiate
        between different modules on shared busses. Default is set to 1, different
        values have to be configured with the module first.
        """
        TMCLEval.__init__(self, connection, module_id)
        self.motors = [self._MotorTypeA(self, 0)]
        self.ics = [MAX22216(self)]
Пример #2
0
 def __init__(self, connection, module_id=1):
     """
     Parameters:
         connection:
             Type: class
             A class that provides the necessary functions for communicating
             with a TMC2300. The required functions are
                 connection.writeDRV(registerAddress, value, moduleID)
                 connection.readDRV(registerAddress, moduleID, signed)
             for writing/reading to register of the TMC2300.
         module_id:
             Type: int, optional, default value: 1
             The TMCL module ID of the TMC2300. This ID is used as a
             parameter for the writeDRV and readDRV functions.
     """
     TMCLEval.__init__(self, connection, module_id)
     self.motors = [self._MotorTypeA(self, 0)]
     self.ics = [TMC2300()]
Пример #3
0
 def __init__(self, connection, channel=0, module_id=1):
     """
     Parameters:
         connection:
             Type: class
             A class that provides the necessary functions for communicating
             with a TMC5160. The required functions are
                 connection.writeRegister(registerAddress, command, channel, value, moduleID)
                 connection.readRegister(registerAddress, command, channel, moduleID, signed)
             for writing/reading to register of the TMC5160.
         channel:
             Type: int
             IC index for the given module. It is used to distinguish between
             multiple ICs of the same type on a single module.
         module_id:
             Type: int, optional, default value: 1
             The TMCL module ID of the TMC5160. This ID is used as a
             parameter for the writeRegister and readRegister functions.
     """
     TMCLEval.__init__(self, connection, module_id)
     self.__channel = channel
     self.motors = [self._MotorTypeA(self, 0)]
     self.ics = [TMC5160()]
Пример #4
0
 def __init__(self, connection, module_id=1):
     TMCLEval.__init__(self, connection, module_id)
     self.motors = [self._MotorTypeA(self, 0)]
     self.ics = [TMC4361()]
Пример #5
0
 def __init__(self, connection, module_id=1):
     TMCLEval.__init__(self, connection, module_id)
     self.ics = [TMC6100()]