pub struct BurstConfig {
pub external_memory: ExternalBurstConfig,
pub internal_memory: InternalBurstConfig,
}
Available on crate feature
unstable
only.Expand description
Burst transfer configuration.
Fields§
§external_memory: ExternalBurstConfig
Configures the burst size for PSRAM transfers.
Burst mode is always enabled for PSRAM transfers.
internal_memory: InternalBurstConfig
Enables or disables the burst mode for internal memory transfers.
The burst size is not configurable.
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 From<ExternalBurstConfig> for BurstConfig
impl From<ExternalBurstConfig> for BurstConfig
Source§fn from(external_memory: ExternalBurstConfig) -> Self
fn from(external_memory: ExternalBurstConfig) -> Self
Converts to this type from the input type.
Source§impl From<InternalBurstConfig> for BurstConfig
impl From<InternalBurstConfig> for BurstConfig
Source§fn from(internal_memory: InternalBurstConfig) -> Self
fn from(internal_memory: InternalBurstConfig) -> Self
Converts to this type from the input type.
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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)