Struct patch_svd::output::AddressBlock[][src]

pub struct AddressBlock {
    pub offset: SvdConstant,
    pub size: SvdConstant,
    pub usage: AddressBlockUsage,
    pub protection: Option<Protection>,
}

Specify an address range uniquely mapped to this peripheral.

A peripheral must have at least one address block. If a peripheral is derived form another peripheral, the is not mandatory.

Fields

offset: SvdConstant

Specifies the start address of an address block relative to the peripheral baseAddress.

size: SvdConstant

Specifies the number of addressUnitBits being covered by this address block.

The end address of an address block results from the sum of baseAddress, offset, and (size - 1).

usage: AddressBlockUsage

Defines the usage of the address block

protection: Option<Protection>

Set the protection level for an address block.

Trait Implementations

impl Clone for AddressBlock[src]

impl Debug for AddressBlock[src]

impl<'de> Deserialize<'de> for AddressBlock[src]

impl Eq for AddressBlock[src]

impl PartialEq<AddressBlock> for AddressBlock[src]

impl StructuralEq for AddressBlock[src]

impl StructuralPartialEq for AddressBlock[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.