dodal.devices.zebra.LogicGateConfiguration#

class dodal.devices.zebra.LogicGateConfiguration[source]#
Parameters:
  • input_source (int)

  • invert (bool, default: False)

Methods

add_input(input_source[, invert])

Add an input to the gate.

Attributes

NUMBER_OF_INPUTS

add_input(input_source: int, invert: bool = False) LogicGateConfiguration[source]#

Add an input to the gate. This will throw an assertion error if more than 4 inputs are added to the Zebra.

Parameters:
  • input_source (int) – The source for the input (must be between 0 and 63).

  • invert (bool, optional) – Whether the input should be inverted. Default False.

Returns:

A description of the gate configuration.

Return type:

LogicGateConfiguration