Struct imxrt_hal::dma::Error

source ·
pub struct Error { /* private fields */ }
Expand description

A wrapper around a DMA error status value

The wrapper contains a copy of the DMA controller’s error status register at the point of an error. The wrapper implements both Debug and Display. Format the error to see a summary of the error bits.

Implementations§

source§

impl Error

source

pub const fn raw(self) -> u32

Returns the raw error status value

source

pub const fn is_valid(self) -> bool

Logical OR of all DMA channel error status bits

If you have an Error this should always be true.

source

pub const fn is_cancelled(self) -> bool

Indicates if the transfer was cancelled

source

pub const fn is_group_priority(self) -> bool

Indicates a group priority error

source

pub const fn is_channel_priority(self) -> bool

Indicates a channel priority error

source

pub const fn channel_number(self) -> u32

Indicates the channel number

source

pub const fn is_source_address(self) -> bool

Indicates a source address error

source

pub const fn is_source_offset(self) -> bool

Indicates a source offset error

source

pub const fn is_destination_address(self) -> bool

Indicates a destination address error

source

pub const fn is_destination_offset(self) -> bool

Indicates a destination offset error

source

pub const fn is_loop_configuration(self) -> bool

Indicates a minor / major loop configuration error

source

pub const fn is_scatter_gather(self) -> bool

Indicates a scatter / gather configuration error

source

pub const fn is_source_bus(self) -> bool

Indicates a source bus error

source

pub const fn is_destination_bus(self) -> bool

Indicates a destination bus error

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Copy for Error

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.