pub fn encode(d: &Device) -> Result<String, EncodeError>
Encodes a device object to an SVD (XML) string