Lines Matching +full:try +full:- +full:unconfigured
3 --------------------
23 --input <input_file.{hex,json}> \
24 [--svd <svd_file>] \
25 [--output <output_file.{hex,json}>] \
26 [--list]
29 SPDX-License-Identifier: Apache-2.0
46 def __init__(self, regs: ET.Element, name: str, data: bytes | bytearray | None = None) -> None:
59 def offset(self) -> int:
63 def size(self) -> int:
66 def _msk_pos(self, name: str) -> tuple[int, int]:
71 mask = (0xFFFFFFFF - (1 << field_lsb) + 1) & (0xFFFFFFFF >> (31 - field_msb))
75 def _enums(self, field: str) -> list[ET.Element]:
80 def __getitem__(self, field: str) -> int:
88 def __setitem__(self, field: str, value: int) -> None:
90 raise TypeError("Register is read-only")
98 def enum_get(self, field: str) -> str:
106 def enum_set(self, field: str, value: str) -> None:
116 UNCONFIGURED = "Unconfigured" variable in PowerSupplyScheme
126 def from_raw(cls: "PowerConfig", bicr_spec: ET.Element, data: bytes) -> "PowerConfig":
140 scheme = PowerSupplyScheme.UNCONFIGURED
145 def from_json(cls: "PowerConfig", data: dict) -> "PowerConfig":
170 power_config.enum_set("VDDAO5V0", "Unconfigured")
171 power_config.enum_set("VDDAO1V8", "Unconfigured")
172 power_config.enum_set("VDD1V0", "Unconfigured")
173 power_config.enum_set("VDDRF1V0", "Unconfigured")
174 power_config.enum_set("VDDAO0V8", "Unconfigured")
175 power_config.enum_set("VDDVS0V8", "Unconfigured")
176 power_config.enum_set("INDUCTOR", "Unconfigured")
206 ) -> "IoPortPowerConfig":
219 def from_json(cls: "IoPortPowerConfig", data: dict) -> "IoPortPowerConfig":
258 ) -> "IoPortImpedanceConfig":
267 def from_json(cls: "IoPortImpedanceConfig", data: dict) -> "IoPortImpedanceConfig":
303 def from_raw(cls: "LFXOConfig", bicr_spec: ET.Element, data: bytes) -> "LFXOConfig":
306 try:
312 if loadcap == "Unconfigured":
319 try:
335 def from_json(cls: "LFXOConfig", data: dict) -> "LFXOConfig":
387 ) -> "LFRCCalibrationConfig":
407 def from_json(cls: "LFRCCalibrationConfig", data: dict) -> "LFRCCalibrationConfig":
466 def from_raw(cls: "LFOSCConfig", bicr_spec: ET.Element, data: bytes) -> "LFOSCConfig":
474 elif mode == "Unconfigured":
488 def from_json(cls: "LFOSCConfig", data: dict) -> "LFOSCConfig":
540 def from_raw(cls: "HFXOConfig", bicr_spec: ET.Element, data: bytes) -> "HFXOConfig":
546 try:
552 if loadcap == "Unconfigured":
559 try:
574 def from_json(cls: "HFXOConfig", data: dict) -> "HFXOConfig":
622 def from_raw(cls: "BICR", bicr_spec: ET.Element, data: bytes) -> "BICR":
632 def from_json(cls: "BICR", data: dict) -> "BICR":
658 parser.add_argument("-i", "--input", type=Path, required=True, help="Input file")
659 parser.add_argument("-s", "--svd", type=Path, help="SVD file")
661 group.add_argument("-o", "--output", type=Path, help="Output file")
662 group.add_argument("-l", "--list", action="store_true", help="List BICR options")