Added access property to Target

This commit is contained in:
Nav
2024-11-02 22:34:42 +00:00
parent f0b7f3193c
commit 24b41ca420
2 changed files with 4 additions and 0 deletions

View File

@@ -411,6 +411,7 @@ class TargetDescriptionFile
$register->size,
$register->initialValue,
$register->description,
$register->access,
array_map(
fn (BitField $bitField): TargetRegisterBitField => $this->targetRegisterBitFieldFromBitField($bitField),
$register->bitFields

View File

@@ -24,6 +24,7 @@ class TargetRegister
public ?int $size = null;
public ?int $initialValue = null;
public ?string $description = null;
public ?string $access = null;
/** @var TargetRegisterBitField[] */
public array $bitFields;
@@ -36,6 +37,7 @@ class TargetRegister
?int $size,
?int $initialValue,
?string $description,
?string $access,
array $bitFields
) {
$this->key = $key;
@@ -45,6 +47,7 @@ class TargetRegister
$this->size = $size;
$this->initialValue = $initialValue;
$this->description = $description;
$this->access = $access;
$this->bitFields = $bitFields;
}
}