Enum stm32_metapac::lpdma::vals::Pam
#[repr(u8)]pub enum Pam {
ZEROEXTENDORLEFTTRUNCATE = 0,
SIGNEXTENDORRIGHTTRUNCATE = 1,
PACK = 2,
_RESERVED_3 = 3,
}
Variants§
ZEROEXTENDORLEFTTRUNCATE = 0
If destination is wider: source data is transferred as right aligned, padded with 0s up to the destination data width If source is wider: source data is transferred as right aligned, left-truncated down to the destination data width
SIGNEXTENDORRIGHTTRUNCATE = 1
If destination is wider: source data is transferred as right aligned, sign extended up to the destination data width If source is wider: source data is transferred as left-aligned, right-truncated down to the destination data width
PACK = 2
source data is FIFO queued and packed/unpacked at the destination data width, to be transferred in a left (LSB) to right (MSB) order (named little endian) to the destination
_RESERVED_3 = 3
Implementations§
Trait Implementations§
§impl Ord for Pam
impl Ord for Pam
§impl PartialOrd for Pam
impl PartialOrd for Pam
§fn partial_cmp(&self, other: &Pam) -> Option<Ordering>
fn partial_cmp(&self, other: &Pam) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Pam
impl Eq for Pam
impl StructuralEq for Pam
impl StructuralPartialEq for Pam
Auto Trait Implementations§
impl RefUnwindSafe for Pam
impl Send for Pam
impl Sync for Pam
impl Unpin for Pam
impl UnwindSafe for Pam
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