New AtdfService - provides conversion of Microchip ATDF files to Bloom's new TDF format
This commit is contained in:
@@ -21,6 +21,17 @@ class AddressSpace
|
||||
$this->endianness = $endianness;
|
||||
}
|
||||
|
||||
public function getMemorySegment(string $key): ?MemorySegment
|
||||
{
|
||||
foreach ($this->memorySegments as $segment) {
|
||||
if ($segment->key === $key) {
|
||||
return $segment;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function totalSegmentSize(): int
|
||||
{
|
||||
return array_sum(
|
||||
|
||||
Reference in New Issue
Block a user