Type Alias svd_rs::peripheral::Peripheral

source ·
pub type Peripheral = MaybeArray<PeripheralInfo>;
Expand description

A single peripheral or array of peripherals

Aliased Type§

enum Peripheral {
    Single(PeripheralInfo),
    Array(PeripheralInfo, DimElement),
}

Variants§

§

Single(PeripheralInfo)

A single instance

§

Array(PeripheralInfo, DimElement)

An array of instances

Implementations§

source§

impl Peripheral

source

pub fn validate_all(&self, lvl: ValidateLevel) -> Result<(), SvdError>

Validate the Peripheral recursively