pub enum BurstConfig {
Disabled,
Enabled,
}
Available on crate feature
unstable
only.Expand description
Burst transfer configuration.
Variants§
Implementations§
Source§impl BurstConfig
impl BurstConfig
Source§impl BurstConfig
impl BurstConfig
Sourcepub const fn min_compatible_alignment(self) -> usize
pub const fn min_compatible_alignment(self) -> usize
Calculates an alignment that is compatible with the current burst configuration.
This is an over-estimation so that Descriptors can be safely used with any DMA channel in any direction.
Sourcepub const fn max_compatible_chunk_size(self) -> usize
pub const fn max_compatible_chunk_size(self) -> usize
Calculates a chunk size that is compatible with the current burst configuration’s alignment requirements.
This is an over-estimation so that Descriptors can be safely used with any DMA channel in any direction.
Trait Implementations§
Source§impl Clone for BurstConfig
impl Clone for BurstConfig
Source§fn clone(&self) -> BurstConfig
fn clone(&self) -> BurstConfig
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BurstConfig
impl Debug for BurstConfig
Source§impl Default for BurstConfig
impl Default for BurstConfig
Source§impl Format for BurstConfig
impl Format for BurstConfig
Source§impl PartialEq for BurstConfig
impl PartialEq for BurstConfig
impl Copy for BurstConfig
impl Eq for BurstConfig
impl StructuralPartialEq for BurstConfig
Auto Trait Implementations§
impl Freeze for BurstConfig
impl RefUnwindSafe for BurstConfig
impl Send for BurstConfig
impl Sync for BurstConfig
impl Unpin for BurstConfig
impl UnwindSafe for BurstConfig
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
)