28 lines
554 B
Python
28 lines
554 B
Python
from enum import Enum
|
|
|
|
class ExternalNVMState(Enum):
|
|
"""
|
|
Enum specifying the NVM chip state
|
|
"""
|
|
OPERATING = 'OPERATING'
|
|
STANDBY = 'STANDBY'
|
|
|
|
def __str__(self):
|
|
return self.value
|
|
|
|
class NVMPowerState(Enum):
|
|
"""
|
|
Enum indicating the MCU state
|
|
"""
|
|
ON = 'ON'
|
|
OFF = 'OFF'
|
|
|
|
def __str__(self):
|
|
return self.value
|
|
|
|
class MCUPeripheralPowerStateBehaviour(Enum):
|
|
"""
|
|
Enum specifying the behaviour of the peripheral's power state
|
|
"""
|
|
ALWAYS_ON = 'ALWAYS_ON'
|
|
FOLLOW_MCU = 'FOLLOW_MCU' |