bpod_core.bpod.constants#

Constants used by the bpod module.

Classes#

class bpod_core.bpod.constants.FlexIOChannelType #

Bases: IntEnum

Represents a FlexIO channel's type.

ANALOG_INPUT = 2#

Analog input channel.

ANALOG_OUTPUT = 3#

Analog output channel.

DIGITAL_INPUT = 0#

Digital input channel.

DIGITAL_OUTPUT = 1#

Digital output channel.

DISABLED = 4#

Channel disabled / high impedance.

class bpod_core.bpod.constants.FlexIOThresholdMode #

Bases: IntEnum

Represents a FlexIO channel's threshold mode.

LINKED = 1#

Crossing one threshold resets the other.

MANUAL = 0#

Thresholds have to be re-enabled manually.

class bpod_core.bpod.constants.FlexIOThresholdPolarity #

Bases: IntEnum

Represents a FlexIO channel's threshold polarity.

FALLING = 1#

Event is triggered when the signal crosses below the threshold.

RISING = 0#

Event is triggered when the signal crosses above the threshold.

Attributes#

bpod_core.bpod.constants.BPOD_UUID_NAMESPACE = UUID('9dbb7a76-cb73-4b16-aaf7-f574f4d218f6')#

UUID namespace for Bpod devices

bpod_core.bpod.constants.VIDS_BPOD = [5824]#

Vendor IDs of supported Bpod devices

bpod_core.bpod.constants.PIDS_BPOD = [TeensyPID.SERIAL, TeensyPID.DUAL_SERIAL, TeensyPID.TRIPLE_SERIAL]#

List of Product IDs of supported Bpod devices

bpod_core.bpod.constants.MIN_BPOD_FW_VERSION = (23, 0)#

minimum supported firmware version (major, minor)

bpod_core.bpod.constants.MIN_BPOD_HW_VERSION = 3#

minimum supported hardware version

bpod_core.bpod.constants.MAX_BPOD_HW_VERSION = 4#

maximum supported hardware version

bpod_core.bpod.constants.FlexIOThresholdVoltage#

Threshold voltage of an analog FlexIO input channel, in millivolts.

alias of Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=5000)])]

bpod_core.bpod.constants.FlexIOAnalogSamplingRate#

Sampling rate for FlexIO channels configured as analog input, in Hz.

alias of Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=1), Le(le=1000)])]

bpod_core.bpod.constants.FlexIONReadsPerSample#

Number of ADC reads averaged per FlexIO analog sample.

alias of Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=1), Le(le=4)])]