[][src]Struct cortex_mpu::Subregions

pub struct Subregions(_);

Subregion Disable (SRD) bits for the 8 subregions in a region.

Note that some cores do not support subregions for small region sizes. Check the core's User Guide for more information.

Methods

impl Subregions[src]

pub const NONE: Self[src]

None of the 8 subregions are enabled. Equivalent to disabling the entire region.

pub const ALL: Self[src]

All 8 subregions are enabled.

pub fn from_disable_bits(bits: u8) -> Self[src]

Creates a Subregions mask from raw Subregion Disable (SRD) bits.

The least significant bit disables the lowest 1/8th of the region, and so on.

pub fn bits(self) -> u8[src]

Returns the raw 8-bit Subregion Disable Bits value.

Trait Implementations

impl PartialEq<Subregions> for Subregions[src]

impl Eq for Subregions[src]

impl Debug for Subregions[src]

impl Copy for Subregions[src]

impl Clone for Subregions[src]

impl Default for Subregions[src]

By default, all subregions are enabled.

Auto Trait Implementations

impl Unpin for Subregions

impl Send for Subregions

impl Sync for Subregions

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self