thorlabs_apt_device.enums module

Enumerated values for the ThorLabs APT protocol.

class thorlabs_apt_device.enums.EndPoint(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Numerical codes representing sources and destinations of messages.

BAY0 = 33
BAY1 = 34
BAY2 = 35
BAY3 = 36
BAY4 = 37
BAY5 = 38
BAY6 = 39
BAY7 = 40
BAY8 = 41
BAY9 = 42
HOST = 1
RACK = 17
USB = 80
property description

Return a string describing the representation of the endpoint value.

class thorlabs_apt_device.enums.LEDMode(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Numerical values corresponding to bit fields for device LED behaviour modes.

These values represent bits in the bit field and can be combined with bitwise logic. For example, LEDMode.IDENT | LEDMode.MOVING would set the LED to flash when the identify message is sent, and also when the motor is moving.

IDENT = 1
LIMITSWITCH = 2
MOVING = 8
property description

Return a string describing the representation of the endpoint value.