Lines Matching refs:bicr_spec

126     def from_raw(cls: "PowerConfig", bicr_spec: ET.Element, data: bytes) -> "PowerConfig":
127 power_config = Register(bicr_spec, "POWER.CONFIG", data)
150 def to_raw(self, bicr_spec: ET.Element, buf: bytearray):
151 power_config = Register(bicr_spec, "POWER.CONFIG", buf)
205 cls: "IoPortPowerConfig", bicr_spec: ET.Element, data: bytes
207 ioport_power0 = Register(bicr_spec, "IOPORT.POWER0", data)
208 ioport_power1 = Register(bicr_spec, "IOPORT.POWER1", data)
230 def to_raw(self, bicr_spec: ET.Element, buf: bytearray):
231 ioport_power0 = Register(bicr_spec, "IOPORT.POWER0", buf)
232 ioport_power1 = Register(bicr_spec, "IOPORT.POWER1", buf)
257 cls: "IoPortImpedanceConfig", bicr_spec: ET.Element, data: bytes
259 drivectl0 = Register(bicr_spec, "IOPORT.DRIVECTRL0", data)
275 def to_raw(self, bicr_spec: ET.Element, buf: bytearray):
276 drivectl0 = Register(bicr_spec, "IOPORT.DRIVECTRL0", buf)
303 def from_raw(cls: "LFXOConfig", bicr_spec: ET.Element, data: bytes) -> "LFXOConfig":
304 lfosc_lfxoconfig = Register(bicr_spec, "LFOSC.LFXOCONFIG", data)
352 def to_raw(self, bicr_spec: ET.Element, buf: bytearray):
353 lfosc_lfxoconfig = Register(bicr_spec, "LFOSC.LFXOCONFIG", buf)
386 cls: "LFRCCalibrationConfig", bicr_spec: ET.Element, data: bytes
388 lfosc_lfrcautocalconfig = Register(bicr_spec, "LFOSC.LFRCAUTOCALCONFIG", data)
427 def to_raw(self, bicr_spec: ET.Element, buf: bytearray):
428 lfosc_lfrcautocalconfig = Register(bicr_spec, "LFOSC.LFRCAUTOCALCONFIG", buf)
466 def from_raw(cls: "LFOSCConfig", bicr_spec: ET.Element, data: bytes) -> "LFOSCConfig":
467 lfosc_lfxoconfig = Register(bicr_spec, "LFOSC.LFXOCONFIG", data)
473 lfrccal = LFRCCalibrationConfig.from_raw(bicr_spec, data)
478 lfxo = LFXOConfig.from_raw(bicr_spec, data)
507 def to_raw(self, bicr_spec: ET.Element, buf: bytearray):
508 lfosc_lfxoconfig = Register(bicr_spec, "LFOSC.LFXOCONFIG", buf)
512 self.lfrccal.to_raw(bicr_spec, buf)
514 self.lfxo.to_raw(bicr_spec, buf)
540 def from_raw(cls: "HFXOConfig", bicr_spec: ET.Element, data: bytes) -> "HFXOConfig":
541 hfxo_config = Register(bicr_spec, "HFXO.CONFIG", data)
542 hfxo_startuptime = Register(bicr_spec, "HFXO.STARTUPTIME", data)
590 def to_raw(self, bicr_spec: ET.Element, buf: bytearray):
591 hfxo_config = Register(bicr_spec, "HFXO.CONFIG", buf)
592 hfxo_startuptime = Register(bicr_spec, "HFXO.STARTUPTIME", buf)
622 def from_raw(cls: "BICR", bicr_spec: ET.Element, data: bytes) -> "BICR":
624 power=PowerConfig.from_raw(bicr_spec, data),
625 ioport_power=IoPortPowerConfig.from_raw(bicr_spec, data),
626 ioport_impedance=IoPortImpedanceConfig.from_raw(bicr_spec, data),
627 lfosc=LFOSCConfig.from_raw(bicr_spec, data),
628 hfxo=HFXOConfig.from_raw(bicr_spec, data),
641 def to_raw(self, bicr_spec: ET.Element, buf: bytearray):
642 self.power.to_raw(bicr_spec, buf)
643 self.ioport_power.to_raw(bicr_spec, buf)
644 self.ioport_impedance.to_raw(bicr_spec, buf)
645 self.lfosc.to_raw(bicr_spec, buf)
646 self.hfxo.to_raw(bicr_spec, buf)
669 bicr_spec = ET.parse(args.svd).getroot().find(".//peripheral[name='BICR_NS']") variable
674 bicr = BICR.from_raw(bicr_spec, ih.tobinstr())
684 bicr_address = int(bicr_spec.find("baseAddress").text, 0)
685 last_reg = Register(bicr_spec, "TAMPC.ACTIVESHIELD")
689 bicr.to_raw(bicr_spec, buf)