Merge pull request 'introduced some enums to classes' (#135) from kranz_enums into main

Reviewed-on: #135
Reviewed-by: Robin Müller <muellerr@irs.uni-stuttgart.de>
This commit is contained in:
Robin Müller 2023-02-19 12:33:55 +01:00
commit 4cf131e9c1
6 changed files with 10 additions and 6 deletions

View File

@ -4,6 +4,7 @@
@author J. Meier @author J. Meier
@date 20.06.2021 @date 20.06.2021
""" """
import enum
import struct import struct
from typing import List from typing import List
@ -64,7 +65,7 @@ class InfoAss:
ALL_SPEED_OFF = "Speed down to 0" ALL_SPEED_OFF = "Speed down to 0"
class RwSetId: class RwSetId(enum.IntEnum):
STATUS_SET_ID = 4 STATUS_SET_ID = 4
TEMPERATURE_SET_ID = 8 TEMPERATURE_SET_ID = 8
LAST_RESET = 2 LAST_RESET = 2

View File

@ -1,3 +1,4 @@
import enum
import struct import struct
from eive_tmtc.pus_tm.defs import PrintWrapper from eive_tmtc.pus_tm.defs import PrintWrapper
@ -5,7 +6,7 @@ from tmtccmd.util import ObjectIdU32
from tmtccmd.util.tmtc_printer import FsfwTmTcPrinter from tmtccmd.util.tmtc_printer import FsfwTmTcPrinter
class SetId: class SetId(enum.IntEnum):
HK = 3 HK = 3

View File

@ -34,7 +34,7 @@ from tmtccmd.util import ObjectIdU32
from tmtccmd.util.tmtc_printer import FsfwTmTcPrinter from tmtccmd.util.tmtc_printer import FsfwTmTcPrinter
class SetId: class SetId(enum.IntEnum):
RX_REGISTERS_DATASET = 1 RX_REGISTERS_DATASET = 1
TX_REGISTERS_DATASET = 2 TX_REGISTERS_DATASET = 2
TEMPERATURE_SET_ID = 3 TEMPERATURE_SET_ID = 3

View File

@ -130,7 +130,7 @@ class SupvActionId:
MEM_CHECK = 61 MEM_CHECK = 61
class SetIds: class SetIds(enum.IntEnum):
HK_REPORT = 102 HK_REPORT = 102
BOOT_STATUS_REPORT = 103 BOOT_STATUS_REPORT = 103

View File

@ -1,3 +1,4 @@
import enum
import struct import struct
from eive_tmtc.pus_tm.defs import PrintWrapper from eive_tmtc.pus_tm.defs import PrintWrapper
@ -19,7 +20,7 @@ from tmtccmd.tc.pus_200_fsfw_mode import Subservice as ModeSubservices
from tmtccmd.util.tmtc_printer import FsfwTmTcPrinter from tmtccmd.util.tmtc_printer import FsfwTmTcPrinter
class BpxSetId: class BpxSetId(enum.IntEnum):
GET_HK_SET = 0 GET_HK_SET = 0
GET_CFG_SET = 5 GET_CFG_SET = 5

View File

@ -1,3 +1,4 @@
import enum
import struct import struct
from typing import List from typing import List
@ -116,7 +117,7 @@ class PowerOpCodes:
PRINT_LATCHUPS = ["print_latchups"] PRINT_LATCHUPS = ["print_latchups"]
class SetId: class SetId(enum.IntEnum):
CORE = 1 CORE = 1
AUX = 2 AUX = 2
CONFIG = 3 CONFIG = 3