File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,9 @@ pub struct ClusterInfo {
239
239
#[ derive( Clone , Debug ) ]
240
240
pub struct RegisterInfo {
241
241
pub name : String ,
242
+ pub alternate_group : Option < String > ,
242
243
pub alternate_register : Option < String > ,
244
+ pub derived_from : Option < String > ,
243
245
pub description : String ,
244
246
pub address_offset : u32 ,
245
247
pub size : Option < u32 > ,
@@ -352,7 +354,9 @@ impl RegisterInfo {
352
354
fn parse ( tree : & Element ) -> RegisterInfo {
353
355
RegisterInfo {
354
356
name : try!( tree. get_child_text ( "name" ) ) ,
357
+ alternate_group : tree. get_child_text ( "alternateGroup" ) ,
355
358
alternate_register : tree. get_child_text ( "alternateRegister" ) ,
359
+ derived_from : tree. attributes . get ( "derivedFrom" ) . map ( |s| s. to_owned ( ) ) ,
356
360
description : try!( tree. get_child_text ( "description" ) ) ,
357
361
address_offset : {
358
362
try!( parse:: u32 ( try!( tree. get_child ( "addressOffset" ) ) ) )
You can’t perform that action at this time.
0 commit comments