pub enum DmaError {
InvalidAlignment(DmaAlignmentError),
OutOfDescriptors,
DescriptorError,
Overflow,
BufferTooSmall,
UnsupportedMemoryRegion,
InvalidChunkSize,
Late,
}
Available on crate feature
unstable
only.Expand description
DMA Errors
Variants§
InvalidAlignment(DmaAlignmentError)
The alignment of data is invalid
OutOfDescriptors
More descriptors are needed for the buffer size
DescriptorError
DescriptorError the DMA rejected the descriptor configuration. This could be because the source address of the data is not in RAM. Ensure your source data is in a valid address space.
Overflow
The available free buffer is less than the amount of data to push
BufferTooSmall
The given buffer is too small
UnsupportedMemoryRegion
Descriptors or buffers are not located in a supported memory region
InvalidChunkSize
Invalid DMA chunk size
Late
Indicates writing to or reading from a circular DMA transaction is done too late and the DMA buffers already overrun / underrun.
Trait Implementations§
Source§impl From<DmaBufError> for DmaError
impl From<DmaBufError> for DmaError
Source§fn from(error: DmaBufError) -> Self
fn from(error: DmaBufError) -> Self
Converts to this type from the input type.
impl Copy for DmaError
impl Eq for DmaError
impl StructuralPartialEq for DmaError
Auto Trait Implementations§
impl Freeze for DmaError
impl RefUnwindSafe for DmaError
impl Send for DmaError
impl Sync for DmaError
impl Unpin for DmaError
impl UnwindSafe for DmaError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)