2026-07-10 10:38:57 +02:00

42 lines
954 B
Python

from enum import Enum
class MCUClockCycleAction(Enum):
"""
Enum for the operation type executed by the MCU in a specific clock cycle
"""
NO_MEMORY_ACCESS = 'NO_MEMORY_ACCESS'
VOLATILE_MEMORY_ACCESS = 'VOLATILE_MEMORY_ACCESS'
NON_VOLATILE_MEMORY_ACCESS = 'NON_VOLATILE_MEMORY_ACCESS'
SPI_ACCESS = 'SPI_ACCESS'
I2C_ACCESS = 'I2C_ACCESS'
LPM_NOP = 'LPM_NOP'
LPM_ENTER = 'LPM_ENTER'
LPM_EXIT = 'LPM_EXIT'
NOP_OFF_RECHARGE = 'NOP_OFF_RECHARGE'
PHYSICAL_MEMORY_ACCESS = 'PHYSICAL_MEMORY_ACCESS'
def __str__(self):
return self.value
class MCUPowerState(Enum):
"""
Enum indicating the MCU state
"""
ON = 'ON'
LPM_WAKEUP = 'LPM_WAKEUP'
LPM = 'LPM'
OFF = 'OFF'
def __str__(self):
return self.value
class ADCPowerState(Enum):
"""
Enum indicating the ADC state
"""
ON = 'ON'
OFF = 'OFF'
def __str__(self):
return self.value