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>(
377377fn make_field ( fadd : & Hash ) -> Result < FieldInfoBuilder > {
378378 let mut fnew = FieldInfo :: builder ( )
379379 . description ( fadd. get_string ( "description" ) ?)
380+ . derived_from ( fadd. get_string ( "derivedFrom" ) ?)
380381 . access ( fadd. get_str ( "access" ) ?. and_then ( Access :: parse_str) ) ;
381382
382383 if let Some ( name) = fadd. get_str ( "name" ) ? {
@@ -428,6 +429,7 @@ fn make_register(radd: &Hash) -> Result<RegisterInfoBuilder> {
428429fn make_cluster ( cadd : & Hash ) -> Result < ClusterInfoBuilder > {
429430 let mut cnew = ClusterInfo :: builder ( )
430431 . description ( cadd. get_string ( "description" ) ?)
432+ . derived_from ( cadd. get_string ( "derivedFrom" ) ?)
431433 . default_register_properties ( get_register_properties ( cadd) ?)
432434 . children ( match cadd. get_hash ( "registers" ) ? {
433435 Some ( h) => {
@@ -470,6 +472,7 @@ fn make_peripheral(padd: &Hash, modify: bool) -> Result<PeripheralInfoBuilder> {
470472 . display_name ( padd. get_string ( "displayName" ) ?)
471473 . version ( padd. get_string ( "version" ) ?)
472474 . description ( padd. get_string ( "description" ) ?)
475+ . derived_from ( padd. get_string ( "derivedFrom" ) ?)
473476 . group_name ( padd. get_string ( "groupName" ) ?)
474477 . interrupt ( if !modify {
475478 match padd. get_hash ( "interrupts" ) ? {
You can’t perform that action at this time.
0 commit comments