Lines Matching refs:node

345         private static string GetMandatoryField(XElement node, string fieldName)  in GetMandatoryField()  argument
347 var fieldElement = node.Element(fieldName); in GetMandatoryField()
354 var path = GetPath(node); in GetMandatoryField()
359 private static string GetOptionalFieldOrNull(XElement node, string fieldName) in GetOptionalFieldOrNull() argument
361 var fieldElement = node.Element(fieldName); in GetOptionalFieldOrNull()
372 private static string GetPath(XElement node) in GetPath() argument
375 … var path = node.Element("name") != null ? node.Element("name").Value : $"<{node.Name.LocalName}>"; in GetPath()
376 var tmpElement = node.Parent; in GetPath()
392 private static ulong? SmartParseHexOrDecimal(string whatToParse, XElement node) in SmartParseHexOrDecimal() argument
482 private void ScanPeripheral(XElement node, RegisterSettings defaultRegisterSettings) in ScanPeripheral() argument
484 var name = GetMandatoryField(node, "name"); in ScanPeripheral()
485 var newRegisterSettings = GetRegisterSettings(node, defaultRegisterSettings); in ScanPeripheral()
489 var registersElement = node.Element("registers"); in ScanPeripheral()
496 …private void ScanRegistersAndClusters(XElement node, RegisterSettings defaultRegisterSettings, SVD… in ScanRegistersAndClusters() argument
498 ScanClusters(node, defaultRegisterSettings, peripheral); in ScanRegistersAndClusters()
499 ScanRegisters(node, defaultRegisterSettings, peripheral); in ScanRegistersAndClusters()
513 …private void ScanClusters(XElement node, RegisterSettings defaultRegisterSettings, SVDPeripheral p… in ScanClusters() argument
515 var clusterItems = node.Elements("cluster"); in ScanClusters()
542 …private void ScanRegisters(XElement node, RegisterSettings defaultRegisterSettings, SVDPeripheral … in ScanRegisters() argument
544 var registerItems = node.Elements("register"); in ScanRegisters()
616 …private void ScanCluster(XElement node, RegisterSettings defaultRegisterSettings, SVDPeripheral pe… in ScanCluster() argument
618 GetMandatoryField(node, "name"); in ScanCluster()
621 GetAddressOffset(node) in ScanCluster()
623 … var newRegisterSettings = GetRegisterSettings(node, defaultRegisterSettings, address); in ScanCluster()
624 ScanRegistersAndClusters(node, newRegisterSettings, peripheral); in ScanCluster()
627 …private void ScanRegister(XElement node, RegisterSettings defaultRegisterSettings, SVDPeripheral p… in ScanRegister() argument
631 GetAddressOffset(node) in ScanRegister()
633 … var newRegisterSettings = GetRegisterSettings(node, defaultRegisterSettings, address); in ScanRegister()
634 var name = GetMandatoryField(node, "name"); in ScanRegister()
635 var newRegister = new SVDRegister(node, name, newRegisterSettings, peripheral); in ScanRegister()
639 private static RegisterSettings GetLocalRegisterSettings(XElement node) in GetLocalRegisterSettings() argument
641 var sizeString = GetOptionalFieldOrNull(node, "size"); in GetLocalRegisterSettings()
642 var resetValueString = GetOptionalFieldOrNull(node, "resetValue"); in GetLocalRegisterSettings()
643 var accessString = GetOptionalFieldOrNull(node, "access"); in GetLocalRegisterSettings()
645 var nodeName = node.Name.LocalName; in GetLocalRegisterSettings()
648 address = GetBaseAddress(node); in GetLocalRegisterSettings()
652 address = GetAddressOffset(node); in GetLocalRegisterSettings()
656 (int?)SmartParseHexOrDecimal(sizeString, node), in GetLocalRegisterSettings()
657 (ulong?)SmartParseHexOrDecimal(resetValueString, node), in GetLocalRegisterSettings()
663 …private static RegisterSettings GetRegisterSettings(XElement node, RegisterSettings defaultRegiste… in GetRegisterSettings() argument
665 var localRegisterSettings = GetLocalRegisterSettings(node); in GetRegisterSettings()
675 private static ulong? GetBaseAddress(XElement node) in GetBaseAddress() argument
677 var addressOffsetString = GetMandatoryField(node, "baseAddress"); in GetBaseAddress()
678 return SmartParseHexOrDecimal(addressOffsetString, node); in GetBaseAddress()
681 private static ulong? GetAddressOffset(XElement node) in GetAddressOffset() argument
683 var addressOffsetString = GetMandatoryField(node, "addressOffset"); in GetAddressOffset()
684 return SmartParseHexOrDecimal(addressOffsetString, node); in GetAddressOffset()
725 private static bool ElementNameEquals(XElement node, string name) in ElementNameEquals() argument
727 var nameElement = node.Elements("name").FirstOrDefault(); in ElementNameEquals()
754 …public SVDRegister(XElement node, string name, RegisterSettings settings, SVDPeripheral peripheral) in SVDRegister() argument
757 path = GetPath(node); in SVDRegister()