#[non_exhaustive]#[repr(u8)]pub enum BurstSize {
Size4 = 2,
Size8 = 3,
Size16 = 4,
Size32 = 5,
Size64 = 6,
Size128 = 7,
}Available on crate feature
unstable only.Expand description
A burst alignment that a buffer guarantees.
The driver’s DMA configuration selects the burst. A buffer can only limit it: a receive
transfer uses an Enabled internal RAM burst only with a buffer that guarantees 4 bytes.
Other transfers use the configured burst.
- A buffer created with a minimum burst, for example with
DmaRxBuf::new_with_min_burstorburst = SizeNin the buffer macros, guarantees that burst. - Any other buffer guarantees the alignment of its address and, for a receive buffer, of its
descriptor sizes. A
DmaRxBuforDmaRxTxBufwith more than one descriptor guarantees at most 4 bytes in internal RAM.set_lengthcan change the guarantee.
The burst types of the engine configurations convert into this type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Size4 = 2
4 bytes.
Size8 = 3
8 bytes.
Size16 = 4
16 bytes.
Size32 = 5
32 bytes.
Size64 = 6
64 bytes.
Size128 = 7
128 bytes.
Implementations§
Trait Implementations§
impl Copy for BurstSize
impl Eq for BurstSize
Source§impl From<AhbInternalBurst> for BurstSize
impl From<AhbInternalBurst> for BurstSize
Source§fn from(burst: AhbInternalBurst) -> Self
fn from(burst: AhbInternalBurst) -> Self
Converts to this type from the input type.
Source§impl Ord for BurstSize
impl Ord for BurstSize
1.21.0 (const: unstable)§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable)§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for BurstSize
impl PartialOrd for BurstSize
impl StructuralPartialEq for BurstSize
Auto Trait Implementations§
impl Forget for BurstSize
impl Freeze for BurstSize
impl Move for BurstSize
impl RefUnwindSafe for BurstSize
impl Send for BurstSize
impl Sync for BurstSize
impl Unpin for BurstSize
impl UnsafeUnpin for BurstSize
impl UnwindSafe for BurstSize
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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)