xheep_gen.peripherals.base_peripherals_domain module
- class xheep_gen.peripherals.base_peripherals_domain.BasePeripheralDomain(start_address: int = 536870912, length: int = 1048576)
Bases:
PeripheralDomainDomain for base peripherals. All base peripherals must be added.
Start address : 0x20000000 Length : 0x00100000
- add_missing_peripherals()
Add missing peripherals to the domain.
- add_peripheral(peripheral: BasePeripheral)
Add a peripheral to the domain if it is a BasePeripheral. If not, raise an error.
- Parameters:
peripheral (BasePeripheral) – The peripheral to add.
- get_dma()
Get the main DMA peripheral (the first appended DMA peripheral).
- Returns:
The DMA peripheral.
- Return type:
- get_power_manager()
Get the Power_manager peripheral.
- Returns:
The Power_manager peripheral.
- Return type:
- remove_peripheral(peripheral: BasePeripheral)
Remove a peripheral from the domain if it is a BasePeripheral.
- Parameters:
peripheral (BasePeripheral) – The peripheral to remove.
- validate()
Validate the base peripheral domain. Checks if all base peripherals are added, if they don’t overlap and if their configuration paths are valid. Checks also if dmas are valid.