#[repr(C)]
pub struct DmaDeviceConfig { pub deviceId: s8, pub allowedAlignments: s8, pub burstSize: s16, pub transferSize: s16, pub burstStride: s16, pub transferStride: s16, }
Expand description

Device configuration structure, part of DmaConfig.

Note: - if (and only if) src/dst is a device, then src/dst won’t be auto-incremented.

  • the kernel uses DMAMOV instead of DMAADNH, when having to decrement (possibly working around an erratum); this forces all loops to be unrolled – you need to keep that in mind when using negative increments, as the kernel uses a limit of 100 DMA instruction bytes per channel.

Fields§

§deviceId: s8

< DMA device ID.

§allowedAlignments: s8

< Mask of allowed access alignments (8, 4, 2, 1).

§burstSize: s16

< Number of bytes transferred in a burst loop. Can be 0 (in which case the max allowed alignment is used as unit).

§transferSize: s16

< Number of bytes transferred in a “transfer” loop (made of burst loops).

§burstStride: s16

< Burst loop stride, can be <= 0.

§transferStride: s16

< “Transfer” loop stride, can be <= 0.

Trait Implementations§

source§

impl Clone for DmaDeviceConfig

source§

fn clone(&self) -> DmaDeviceConfig

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DmaDeviceConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DmaDeviceConfig

source§

fn default() -> DmaDeviceConfig

Returns the “default value” for a type. Read more
source§

impl Copy for DmaDeviceConfig

Auto Trait Implementations§

§

impl RefUnwindSafe for DmaDeviceConfig

§

impl Send for DmaDeviceConfig

§

impl Sync for DmaDeviceConfig

§

impl Unpin for DmaDeviceConfig

§

impl UnwindSafe for DmaDeviceConfig

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.