Added initial value to TargetRegister in TDF scripts
This commit is contained in:
@@ -360,6 +360,7 @@ class TargetDescriptionFile
|
|||||||
$addressSpaceKey,
|
$addressSpaceKey,
|
||||||
$addressOffset + $register->offset,
|
$addressOffset + $register->offset,
|
||||||
$register->size,
|
$register->size,
|
||||||
|
$register->initialValue,
|
||||||
$register->description,
|
$register->description,
|
||||||
array_map(
|
array_map(
|
||||||
fn (BitField $bitField): TargetRegisterBitField => $this->targetRegisterBitFieldFromBitField($bitField),
|
fn (BitField $bitField): TargetRegisterBitField => $this->targetRegisterBitFieldFromBitField($bitField),
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ class TargetRegister
|
|||||||
public ?string $addressSpaceKey = null;
|
public ?string $addressSpaceKey = null;
|
||||||
public ?int $address = null;
|
public ?int $address = null;
|
||||||
public ?int $size = null;
|
public ?int $size = null;
|
||||||
|
public ?int $initialValue = null;
|
||||||
public ?string $description = null;
|
public ?string $description = null;
|
||||||
|
|
||||||
/** @var TargetRegisterBitField[] */
|
/** @var TargetRegisterBitField[] */
|
||||||
@@ -33,6 +34,7 @@ class TargetRegister
|
|||||||
?string $addressSpaceKey,
|
?string $addressSpaceKey,
|
||||||
?int $address,
|
?int $address,
|
||||||
?int $size,
|
?int $size,
|
||||||
|
?int $initialValue,
|
||||||
?string $description,
|
?string $description,
|
||||||
array $bitFields
|
array $bitFields
|
||||||
) {
|
) {
|
||||||
@@ -41,6 +43,7 @@ class TargetRegister
|
|||||||
$this->addressSpaceKey = $addressSpaceKey;
|
$this->addressSpaceKey = $addressSpaceKey;
|
||||||
$this->address = $address;
|
$this->address = $address;
|
||||||
$this->size = $size;
|
$this->size = $size;
|
||||||
|
$this->initialValue = $initialValue;
|
||||||
$this->description = $description;
|
$this->description = $description;
|
||||||
$this->bitFields = $bitFields;
|
$this->bitFields = $bitFields;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user