jacdac-python/jacdac/device_script_manager/constants.py

30 строки
1.5 KiB
Python

# Autogenerated constants for DeviceScript Manager service
from jacdac.constants import *
from jacdac.system.constants import *
JD_SERVICE_CLASS_DEVICE_SCRIPT_MANAGER = const(0x1134ea2b)
JD_DEVICE_SCRIPT_MANAGER_CMD_DEPLOY_BYTECODE = const(0x80)
JD_DEVICE_SCRIPT_MANAGER_CMD_READ_BYTECODE = const(0x81)
JD_DEVICE_SCRIPT_MANAGER_REG_RUNNING = const(0x80)
JD_DEVICE_SCRIPT_MANAGER_REG_AUTOSTART = const(0x81)
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_SIZE = const(0x180)
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_HASH = const(0x181)
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_SHA256 = const(0x182)
JD_DEVICE_SCRIPT_MANAGER_REG_RUNTIME_VERSION = const(0x183)
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_NAME = const(0x184)
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_VERSION = const(0x185)
JD_DEVICE_SCRIPT_MANAGER_EV_PROGRAM_PANIC = const(0x80)
JD_DEVICE_SCRIPT_MANAGER_EV_PROGRAM_CHANGE = const(JD_EV_CHANGE)
JD_DEVICE_SCRIPT_MANAGER_PACK_FORMATS = {
JD_DEVICE_SCRIPT_MANAGER_CMD_DEPLOY_BYTECODE: "u32",
JD_DEVICE_SCRIPT_MANAGER_CMD_READ_BYTECODE: "b[12]",
JD_DEVICE_SCRIPT_MANAGER_REG_RUNNING: "u8",
JD_DEVICE_SCRIPT_MANAGER_REG_AUTOSTART: "u8",
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_SIZE: "u32",
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_HASH: "u32",
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_SHA256: "b[32]",
JD_DEVICE_SCRIPT_MANAGER_REG_RUNTIME_VERSION: "u16 u8 u8",
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_NAME: "s",
JD_DEVICE_SCRIPT_MANAGER_REG_PROGRAM_VERSION: "s",
JD_DEVICE_SCRIPT_MANAGER_EV_PROGRAM_PANIC: "u32 u32"
}