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
impl Error
sourcepub const fn is_valid(self) -> bool
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.
sourcepub const fn is_cancelled(self) -> bool
pub const fn is_cancelled(self) -> bool
Indicates if the transfer was cancelled
sourcepub const fn is_group_priority(self) -> bool
pub const fn is_group_priority(self) -> bool
Indicates a group priority error
sourcepub const fn is_channel_priority(self) -> bool
pub const fn is_channel_priority(self) -> bool
Indicates a channel priority error
sourcepub const fn channel_number(self) -> u32
pub const fn channel_number(self) -> u32
Indicates the channel number
sourcepub const fn is_source_address(self) -> bool
pub const fn is_source_address(self) -> bool
Indicates a source address error
sourcepub const fn is_source_offset(self) -> bool
pub const fn is_source_offset(self) -> bool
Indicates a source offset error
sourcepub const fn is_destination_address(self) -> bool
pub const fn is_destination_address(self) -> bool
Indicates a destination address error
sourcepub const fn is_destination_offset(self) -> bool
pub const fn is_destination_offset(self) -> bool
Indicates a destination offset error
sourcepub const fn is_loop_configuration(self) -> bool
pub const fn is_loop_configuration(self) -> bool
Indicates a minor / major loop configuration error
sourcepub const fn is_scatter_gather(self) -> bool
pub const fn is_scatter_gather(self) -> bool
Indicates a scatter / gather configuration error
sourcepub const fn is_source_bus(self) -> bool
pub const fn is_source_bus(self) -> bool
Indicates a source bus error
sourcepub const fn is_destination_bus(self) -> bool
pub const fn is_destination_bus(self) -> bool
Indicates a destination bus error