File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,7 @@ fn modify_dim_element<T: Clone>(
377
377
fn make_field ( fadd : & Hash ) -> Result < FieldInfoBuilder > {
378
378
let mut fnew = FieldInfo :: builder ( )
379
379
. description ( fadd. get_string ( "description" ) ?)
380
+ . derived_from ( fadd. get_string ( "derivedFrom" ) ?)
380
381
. access ( fadd. get_str ( "access" ) ?. and_then ( Access :: parse_str) ) ;
381
382
382
383
if let Some ( name) = fadd. get_str ( "name" ) ? {
@@ -428,6 +429,7 @@ fn make_register(radd: &Hash) -> Result<RegisterInfoBuilder> {
428
429
fn make_cluster ( cadd : & Hash ) -> Result < ClusterInfoBuilder > {
429
430
let mut cnew = ClusterInfo :: builder ( )
430
431
. description ( cadd. get_string ( "description" ) ?)
432
+ . derived_from ( cadd. get_string ( "derivedFrom" ) ?)
431
433
. default_register_properties ( get_register_properties ( cadd) ?)
432
434
. children ( match cadd. get_hash ( "registers" ) ? {
433
435
Some ( h) => {
@@ -470,6 +472,7 @@ fn make_peripheral(padd: &Hash, modify: bool) -> Result<PeripheralInfoBuilder> {
470
472
. display_name ( padd. get_string ( "displayName" ) ?)
471
473
. version ( padd. get_string ( "version" ) ?)
472
474
. description ( padd. get_string ( "description" ) ?)
475
+ . derived_from ( padd. get_string ( "derivedFrom" ) ?)
473
476
. group_name ( padd. get_string ( "groupName" ) ?)
474
477
. interrupt ( if !modify {
475
478
match padd. get_hash ( "interrupts" ) ? {
You can’t perform that action at this time.
0 commit comments