ByteEnum¶
- class bpod_core.misc.ByteEnum ¶
Bases:
IntEnumAn
IntEnumrestricted to single-byte values (0–255).Subclass this to define enums whose integer values fit in one unsigned byte. Each member additionally exposes its value as a
bytesobject viabyte_valuefor zero-allocation wire encoding.- Raises:
OverflowError – If a member’s value is outside the range of a single, unsigned byte.