Beispiel #1
0
        public virtual void LoadFromXML(XElement root)
        {
            var      mcuTypeNodes = root.Descendants("MCUType");
            XElement mcuTypeNode  = mcuTypeNodes.FirstOrDefault();

            if (mcuTypeNode != null)
            {
                if (mcuTypeNode.Value != null)
                {
                    String     value = mcuTypeNode.Value;
                    MCUTypeDef enValue;

                    if (MCUTypeDef.TryParse(value, out enValue) == true)
                    {
                        Type = enValue;
                    }
                }
            }
        }
Beispiel #2
0
 public CMCUType(MCUTypeDef type = MCUTypeDef.STM32F4xx)
 {
     Type = type;
 }