pub enum DmaError {
InvalidAlignment(DmaAlignmentError),
OutOfDescriptors,
DescriptorError,
Overflow,
BufferTooSmall,
UnsupportedMemoryRegion,
InvalidChunkSize,
}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 the 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.
Trait Implementations§
impl Copy for DmaError
Available on crate feature
unstable only.impl Eq for DmaError
Available on crate feature
unstable only.Source§impl From<DmaBufError> for DmaError
Available on crate feature unstable only.
impl From<DmaBufError> for DmaError
Available on crate feature
unstable only.Source§fn from(error: DmaBufError) -> Self
fn from(error: DmaBufError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DmaError
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for DmaError
impl RefUnwindSafe for DmaError
impl Send for DmaError
impl Sync for DmaError
impl Unpin for DmaError
impl UnsafeUnpin for DmaError
impl UnwindSafe for DmaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more