from enum import Enum, IntEnum class ShifterCANID(): def __init__(self): self.normalid = 0 self.phy_txId = 0 self.phy_rxId = 0 self.fun_rxId = 0 class ShifterPosition(IntEnum): ShiftPosZero = 0 ShiftPosX2 = 2 ShiftPosX1 = 3 ShiftPosY1 = 4 ShiftPosY2 = 5 ShiftPosNotInit = 8 ShiftPosM_Minus = 0xc ShiftPosM_Plus = 0xd ShiftPosM = 0xe ShiftNotAvailable = 0xF