from enum import IntFlag

class LedOptions(IntFlag):
    Off=0x0,
    PlayerLedBrightness=0x1,
    UninterrumpableLed=0x2,
    Both=0x01 | 0x02

class PulseOptions(IntFlag):
    Off=0x0,
    FadeBlue=0x1,
    FadeOut=0x2

class Brightness(IntFlag):
    high = 0x0,
    medium = 0x1,
    low = 0x2

class PlayerID(IntFlag):
    player1 = 4,
    player2 = 10,
    player3 = 21,
    player4 = 27,
    all = 31


class TriggerModes(IntFlag):
    Off = 0x0, # no resistance
    Rigid = 0x1, # continous resistance
    Pulse = 0x2, # section resistance
    Rigid_A = 0x1 | 0x20,
    Rigid_B = 0x1 | 0x04,
    Rigid_AB = 0x1 | 0x20 | 0x04,
    Pulse_A = 0x2 | 0x20,
    Pulse_B = 0x2 | 0x04,
    Pulse_AB = 0x2 | 0x20 | 0x04,
    Calibration= 0xFC

