bpod_core.bpod.constants#
Constants used by the bpod module.
Classes#
- class bpod_core.bpod.constants.FlexIOChannelType #
Bases:
IntEnumRepresents 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.
Attributes#
- bpod_core.bpod.constants.BPOD_UUID_NAMESPACE = UUID('9dbb7a76-cb73-4b16-aaf7-f574f4d218f6')#
UUID namespace for Bpod devices
- bpod_core.bpod.constants.USB_IDS_BPOD = frozenset({(5824, TeensyPID.SERIAL), (5824, TeensyPID.DUAL_SERIAL), (5824, TeensyPID.TRIPLE_SERIAL), (9025, 62)})#
The (vendor ID, product ID) of the USB serial ports of supported Bpod devices.
- bpod_core.bpod.constants.NON_BPOD_TEENSY_MODELS = frozenset({TeensyModel.TEENSY_LC, TeensyModel.TEENSY_3_0, TeensyModel.TEENSY_3_2, TeensyModel.TEENSY_3_5, TeensyModel.TEENSY_4_0, TeensyModel.TEENSY_MICROMOD})#
Teensy models that no Bpod is built on, whose ports discovery doesn't probe.
- bpod_core.bpod.constants.MIN_BPOD_FW_VERSION = (23, 0)#
minimum supported firmware version (major, minor)
- bpod_core.bpod.constants.MIN_BPOD_HW_VERSION = 2#
minimum supported hardware version; 2 (Bpod 0.7-1.0) is experimental
- bpod_core.bpod.constants.MAX_BPOD_HW_VERSION = 4#
maximum supported hardware version
- bpod_core.bpod.constants.MACHINE_TYPES = {2: '0.7-1.0', 3: 'r2.0-2.5', 4: '2+'}#
Names of the machine types, unless the Teensy model and PCB revision tell more.
- bpod_core.bpod.constants.DISCOVERY_BYTE = b'\xde'#
The byte a Bpod sends on its serial port while it isn't connected to a host.
- 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)])]