Lines Matching +full:lfrc +full:- +full:accuracy +full:- +full:ppm
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:
126 def from_raw(cls: "PowerConfig", bicr_spec: ET.Element, data: bytes) -> "PowerConfig":
145 def from_json(cls: "PowerConfig", data: dict) -> "PowerConfig":
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":
327 accuracy_ppm=int(lfosc_lfxoconfig.enum_get("ACCURACY")[:3]),
335 def from_json(cls: "LFXOConfig", data: dict) -> "LFXOConfig":
355 lfosc_lfxoconfig.enum_set("ACCURACY", f"{self.accuracy_ppm}ppm")
387 ) -> "LFRCCalibrationConfig":
407 def from_json(cls: "LFRCCalibrationConfig", data: dict) -> "LFRCCalibrationConfig":
456 LFRC = "LFRC" variable in LFOSCSource
466 def from_raw(cls: "LFOSCConfig", bicr_spec: ET.Element, data: bytes) -> "LFOSCConfig":
471 source = LFOSCSource.LFRC
488 def from_json(cls: "LFOSCConfig", data: dict) -> "LFOSCConfig":
510 if self.source == LFOSCSource.LFRC:
540 def from_raw(cls: "HFXOConfig", bicr_spec: ET.Element, data: bytes) -> "HFXOConfig":
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")