xheep_gen.peripherals.base_peripherals_domain module

class xheep_gen.peripherals.base_peripherals_domain.BasePeripheralDomain(start_address: int = 536870912, length: int = 1048576)

Bases: PeripheralDomain

Domain 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_all_dmas()

Get the DMA peripherals.

Returns:

The DMA peripherals.

Return type:

list[DMA]

get_dma()

Get the main DMA peripheral (the first appended DMA peripheral).

Returns:

The DMA peripheral.

Return type:

DMA

get_power_manager()

Get the Power_manager peripheral.

Returns:

The Power_manager peripheral.

Return type:

Power_manager

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.