/Zephyr-Core-3.5.0/scripts/west_commands/zspdx/ |
D | cmakefileapi.py | 9 def __init__(self): argument 10 super(Codemodel, self).__init__() 12 self.paths_source = "" 13 self.paths_build = "" 14 self.configurations = [] 16 def __repr__(self): argument 22 def __init__(self): argument 23 super(Config, self).__init__() 25 self.name = "" 26 self.directories = [] [all …]
|
D | datatypes.py | 10 def __init__(self): argument 11 super(DocumentConfig, self).__init__() 14 self.name = "" 17 self.namespace = "" 21 self.docRefID = "" 27 def __init__(self, cfg): argument 28 super(Document, self).__init__() 31 self.cfg = cfg 34 self.pkgs = {} 38 self.relationships = [] [all …]
|
/Zephyr-Core-3.5.0/scripts/pylib/pytest-twister-harness/src/twister_harness/device/ |
D | fifo_handler.py | 23 def __init__(self, fifo_path: str | Path, timeout: float): argument 28 self._fifo_out_path = str(fifo_path) + '.out' 29 self._fifo_in_path = str(fifo_path) + '.in' 30 self._fifo_out_file: io.FileIO | None = None 31 self._fifo_in_file: io.FileIO | None = None 32 self._open_fifo_thread: threading.Thread | None = None 33 self._opening_monitor_thread: threading.Thread | None = None 34 self._fifo_opened: threading.Event = threading.Event() 35 self._stop_waiting_for_opening: threading.Event = threading.Event() 36 self._timeout = timeout [all …]
|
D | device_adapter.py | 30 def __init__(self, device_config: DeviceConfig) -> None: argument 34 self.device_config: DeviceConfig = device_config 35 self.base_timeout: float = device_config.base_timeout 36 self._device_read_queue: queue.Queue = queue.Queue() 37 self._reader_thread: threading.Thread | None = None 38 self._device_run: threading.Event = threading.Event() 39 self._device_connected: threading.Event = threading.Event() 40 self.command: list[str] = [] 41 self._west: str | None = None 43 self.handler_log_path: Path = device_config.build_dir / 'handler.log' [all …]
|
D | binary_adapter.py | 20 def __init__(self, device_config: DeviceConfig) -> None: argument 25 self._process: subprocess.Popen | None = None 26 self.process_kwargs: dict = { 30 'env': self.env, 34 def generate_command(self) -> None: argument 37 def _flash_and_run(self) -> None: argument 38 self._run_subprocess() 40 def _run_subprocess(self) -> None: argument 41 if not self.command: 45 log_command(logger, 'Running command', self.command, level=logging.DEBUG) [all …]
|
D | hardware_adapter.py | 30 def __init__(self, device_config: DeviceConfig) -> None: argument 32 self._flashing_timeout: float = self.base_timeout 33 self._serial_connection: serial.Serial | None = None 34 self._serial_pty_proc: subprocess.Popen | None = None 35 self._serial_buffer: bytearray = bytearray() 37 self.device_log_path: Path = device_config.build_dir / 'device.log' 38 self._log_files.append(self.device_log_path) 40 def generate_command(self) -> None: argument 43 self.west, 46 '--build-dir', str(self.device_config.build_dir), [all …]
|
/Zephyr-Core-3.5.0/scripts/pylib/twister/twisterlib/ |
D | platform.py | 20 def __init__(self): argument 25 self.name = "" 26 self.twister = True 28 self.ram = 128 30 self.timeout_multiplier = 1.0 31 self.ignore_tags = [] 32 self.only_tags = [] 33 self.default = False 35 self.flash = 512 36 self.supported = set() [all …]
|
D | harness.py | 44 def __init__(self): argument 45 self.state = None 46 self.type = None 47 self.regex = [] 48 self.matches = OrderedDict() 49 self.ordered = True 50 self.repeat = 1 51 self.id = None 52 self.fail_on_fault = True 53 self.fault = False [all …]
|
D | runner.py | 52 def __init__(self, total=0): argument 64 self._done = Value('i', 0) 67 self._iteration = Value('i', 0) 71 self._passed = Value('i', 0) 75 self._skipped_configs = Value('i', 0) 79 self._skipped_runtime = Value('i', 0) 83 self._skipped_filter = Value('i', 0) 86 self._skipped_cases = Value('i', 0) 89 self._error = Value('i', 0) 90 self._failed = Value('i', 0) [all …]
|
/Zephyr-Core-3.5.0/scripts/dts/python-devicetree/src/devicetree/ |
D | grutils.py | 21 def __init__(self, root=None): argument 22 self.__roots = None 24 self.__roots = {root} 25 self.__edge_map = collections.defaultdict(set) 26 self.__reverse_map = collections.defaultdict(set) 27 self.__nodes = set() 29 def add_node(self, node): argument 33 self.__nodes.add(node) 35 def add_edge(self, source, target): argument 41 self.__edge_map[source].add(target) [all …]
|
D | dtlib.py | 87 def __init__(self, name: str, parent: Optional['Node'], dt: 'DT'): argument 93 self._name = name 94 self.props: Dict[str, 'Property'] = {} 95 self.nodes: Dict[str, 'Node'] = {} 96 self.labels: List[str] = [] 97 self.parent = parent 98 self.dt = dt 100 self._omit_if_no_ref = False 101 self._is_referenced = False 112 def name(self) -> str: argument [all …]
|
/Zephyr-Core-3.5.0/scripts/west_commands/runners/ |
D | nrf_common.py | 30 def __init__(self, cfg, family, softreset, dev_id, erase=False, argument 33 self.hex_ = cfg.hex_file 36 self.family = family 37 self.softreset = softreset 38 self.dev_id = dev_id 39 self.erase = bool(erase) 40 self.reset = bool(reset) 41 self.force = force 42 self.recover = bool(recover) 44 self.tool_opt = [] [all …]
|
D | linkserver.py | 25 def __init__(self, cfg, device, core, argument 35 self.file = cfg.file 36 self.file_type = cfg.file_type 37 self.hex_name = cfg.hex_file 38 self.bin_name = cfg.bin_file 39 self.elf_name = cfg.elf_file 40 self.gdb_cmd = cfg.gdb if cfg.gdb else None 41 self.device = device 42 self.core = core 43 self.linkserver = linkserver [all …]
|
D | openocd.py | 29 def __init__(self, cfg, pre_init=None, reset_halt_cmd=DEFAULT_OPENOCD_RESET_HALT_CMD, argument 47 self.openocd_config = config 54 if self.openocd_config is not None: 55 for i in self.openocd_config: 63 self.openocd_cmd = [cfg.openocd or 'openocd'] + search_args 66 self.elf_name = Path(cfg.elf_file).as_posix() 67 self.pre_init = pre_init or [] 68 self.reset_halt_cmd = reset_halt_cmd 69 self.pre_load = pre_load or [] 70 self.load_cmd = load_cmd [all …]
|
D | jlink.py | 30 def __call__(self, parser, args, ignored, option): argument 31 setattr(args, self.dest, not option.startswith('--no-')) 36 def __init__(self, cfg, device, dev_id=None, argument 46 self.file = cfg.file 47 self.file_type = cfg.file_type 48 self.hex_name = cfg.hex_file 49 self.bin_name = cfg.bin_file 50 self.elf_name = cfg.elf_file 51 self.gdb_cmd = [cfg.gdb] if cfg.gdb else None 52 self.device = device [all …]
|
D | ezflashcli.py | 13 def __init__(self, cfg, tool, sn, erase=False, reset=True): argument 15 self.bin_ = cfg.bin_file 17 self.tool = tool 18 self.sn_arg = ['-j', f'{sn}'] if sn is not None else [] 19 self.erase = bool(erase) 20 self.reset = bool(reset) 45 def needs_product_header(self): argument 50 is_mcuboot = self.build_conf.getboolean('CONFIG_MCUBOOT') 51 uses_code_partition = self.build_conf.getboolean('CONFIG_USE_DT_CODE_PARTITION') 55 def program_bin(self): argument [all …]
|
D | pyocd.py | 19 def __init__(self, cfg, target, argument 30 self.pyocd_config = default 32 self.pyocd_config = None 35 self.target_args = ['-t', target] 36 self.pyocd = pyocd 37 self.flash_addr_args = ['-a', hex(flash_addr)] if flash_addr else [] 38 self.erase = erase 39 self.gdb_cmd = [cfg.gdb] if cfg.gdb is not None else None 40 self.gdb_port = gdb_port 41 self.telnet_port = telnet_port [all …]
|
/Zephyr-Core-3.5.0/samples/modules/tflite-micro/magic_wand/train/ |
D | data_load_test.py | 32 def setUp(self): # pylint: disable=g-missing-super-call argument 33 self.loader = DataLoader( 36 def test_get_data(self): argument 37 self.assertIsInstance(self.loader.train_data, list) 38 self.assertIsInstance(self.loader.train_label, list) 39 self.assertIsInstance(self.loader.valid_data, list) 40 self.assertIsInstance(self.loader.valid_label, list) 41 self.assertIsInstance(self.loader.test_data, list) 42 self.assertIsInstance(self.loader.test_label, list) 43 self.assertEqual(self.loader.train_len, len(self.loader.train_data)) [all …]
|
D | data_split_test.py | 31 def setUp(self): # pylint: disable=g-missing-super-call argument 32 self.data = read_data("./data/complete_data") 33 self.num_dic = {"wing": 0, "ring": 0, "slope": 0, "negative": 0} 36 self.num = len(lines) 38 def test_read_data(self): argument 39 self.assertEqual(len(self.data), self.num) 40 self.assertIsInstance(self.data, list) 41 self.assertIsInstance(self.data[0], dict) 42 self.assertEqual( 43 set(list(self.data[-1])), set(["gesture", "accel_ms2_xyz", "name"])) [all …]
|
/Zephyr-Core-3.5.0/scripts/kconfig/ |
D | kconfiglib.py | 867 def __init__(self, filename="Kconfig", warn=True, warn_to_stderr=True, argument 947 self._init(filename, warn, warn_to_stderr, encoding) 959 def _init(self, filename, warn, warn_to_stderr, encoding): argument 962 self._encoding = encoding 964 self.srctree = os.getenv("srctree", "") 968 self._srctree_prefix = realpath(self.srctree) + os.sep 970 self.warn = warn 971 self.warn_to_stderr = warn_to_stderr 972 self.warn_assign_undef = os.getenv("KCONFIG_WARN_UNDEF_ASSIGN") == "y" 973 self.warn_assign_override = True [all …]
|
/Zephyr-Core-3.5.0/scripts/logging/dictionary/dictionary_parser/ |
D | log_database.py | 67 def __init__(self): argument 70 new_db['version'] = self.ZEPHYR_DICT_LOG_VER 78 self.database = new_db 81 def get_version(self): argument 83 return self.database['version'] 86 def get_build_id(self): argument 88 return self.database['build_id'] 91 def set_build_id(self, build_id): argument 93 self.database['build_id'] = build_id 96 def get_arch(self): argument [all …]
|
/Zephyr-Core-3.5.0/scripts/build/ |
D | elf_parser.py | 22 def __init__(self, elf, sym): argument 23 self.elf = elf 24 self.sym = sym 25 self.data = self.elf.symbol_data(sym) 27 def _data_native_read(self, offset): argument 28 (format, size) = self.elf.native_struct_format 29 return struct.unpack(format, self.data[offset:offset + size])[0] 40 def __init__(self, elf, sym): argument 42 self.flags = self._data_native_read(self.elf.ld_consts['_PM_DEVICE_STRUCT_FLAGS_OFFSET']) 45 def is_power_domain(self): argument [all …]
|
/Zephyr-Core-3.5.0/scripts/west_commands/ |
D | build.py | 62 def __call__(self, parser, namespace, values, option_string=None): argument 63 setattr(namespace, self.dest, values or 'always') 67 def __init__(self): argument 68 super(Build, self).__init__( 75 self.source_dir = None 78 self.build_dir = None 81 self.created_build_dir = False 84 self.run_cmake = False 91 self.cmake_cache = None 94 def do_add_parser(self, parser_adder): argument [all …]
|
D | bindesc.py | 69 def __init__(self): argument 70 self.TAG_TO_NAME = { 73 self.bindesc_gen_tag(self.TYPE_STR, 0x800): 'APP_VERSION_STRING', 74 self.bindesc_gen_tag(self.TYPE_UINT, 0x801): 'APP_VERSION_MAJOR', 75 self.bindesc_gen_tag(self.TYPE_UINT, 0x802): 'APP_VERSION_MINOR', 76 self.bindesc_gen_tag(self.TYPE_UINT, 0x803): 'APP_VERSION_PATCHLEVEL', 77 self.bindesc_gen_tag(self.TYPE_UINT, 0x804): 'APP_VERSION_NUMBER', 78 self.bindesc_gen_tag(self.TYPE_STR, 0x900): 'KERNEL_VERSION_STRING', 79 self.bindesc_gen_tag(self.TYPE_UINT, 0x901): 'KERNEL_VERSION_MAJOR', 80 self.bindesc_gen_tag(self.TYPE_UINT, 0x902): 'KERNEL_VERSION_MINOR', [all …]
|
/Zephyr-Core-3.5.0/samples/net/cellular_modem/server/ |
D | te_udp_receive.py | 11 def __init__(self, address, timeout = 1): argument 12 self.address = address 13 self.last_packet_received_at = time.monotonic() 14 self.timeout = timeout 15 self.packets_received = 0 16 self.packets_dropped = 0 18 def get_address(self): argument 19 return self.address 21 def on_packet_received(self, data): argument 22 if self._validate_packet_(data): [all …]
|