Skip to content

Commit 0d4918e

Browse files
committed
parse alternateRegister entries
1 parent 8cc202b commit 0d4918e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ pub struct ClusterInfo {
239239
#[derive(Clone, Debug)]
240240
pub struct RegisterInfo {
241241
pub name: String,
242+
pub alternate_register: Option<String>,
242243
pub description: String,
243244
pub address_offset: u32,
244245
pub size: Option<u32>,
@@ -351,6 +352,7 @@ impl RegisterInfo {
351352
fn parse(tree: &Element) -> RegisterInfo {
352353
RegisterInfo {
353354
name: try!(tree.get_child_text("name")),
355+
alternate_register: tree.get_child_text("alternateRegister"),
354356
description: try!(tree.get_child_text("description")),
355357
address_offset: {
356358
try!(parse::u32(try!(tree.get_child("addressOffset"))))

0 commit comments

Comments
 (0)