atsamd_hal::dmac::dma_controller

Struct RoundRobinMask

Source
pub struct RoundRobinMask { /* private fields */ }
Expand description

Mask representing which priority levels should be configured as round-robin

Implementations§

Source§

impl RoundRobinMask

Source

pub const fn new() -> Self

Returns an instance with zero initialized data.

Source§

impl RoundRobinMask

Source

pub const fn into_bytes(self) -> [u8; 4]

Returns the underlying bits.

§Layout

The returned byte array is layed out in the same way as described here.

Source

pub const fn from_bytes(bytes: [u8; 4]) -> Self

Converts the given bytes directly into the bitfield struct.

Source§

impl RoundRobinMask

Source

pub fn level0(&self) -> <bool as Specifier>::InOut

Returns the value of level0. Level 0

Source

pub fn level0_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of level0.

#Errors

If the returned value contains an invalid bit pattern for level0. Level 0

Source

pub fn with_level0(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of level0 set to the given value.

#Panics

If the given value is out of bounds for level0. Level 0

Source

pub fn with_level0_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of level0 set to the given value.

#Errors

If the given value is out of bounds for level0. Level 0

Source

pub fn set_level0(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of level0 to the given value.

#Panics

If the given value is out of bounds for level0. Level 0

Source

pub fn set_level0_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of level0 to the given value.

#Errors

If the given value is out of bounds for level0. Level 0

Source

pub fn level1(&self) -> <bool as Specifier>::InOut

Returns the value of level1. Level 1

Source

pub fn level1_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of level1.

#Errors

If the returned value contains an invalid bit pattern for level1. Level 1

Source

pub fn with_level1(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of level1 set to the given value.

#Panics

If the given value is out of bounds for level1. Level 1

Source

pub fn with_level1_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of level1 set to the given value.

#Errors

If the given value is out of bounds for level1. Level 1

Source

pub fn set_level1(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of level1 to the given value.

#Panics

If the given value is out of bounds for level1. Level 1

Source

pub fn set_level1_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of level1 to the given value.

#Errors

If the given value is out of bounds for level1. Level 1

Source

pub fn level2(&self) -> <bool as Specifier>::InOut

Returns the value of level2. Level 2

Source

pub fn level2_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of level2.

#Errors

If the returned value contains an invalid bit pattern for level2. Level 2

Source

pub fn with_level2(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of level2 set to the given value.

#Panics

If the given value is out of bounds for level2. Level 2

Source

pub fn with_level2_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of level2 set to the given value.

#Errors

If the given value is out of bounds for level2. Level 2

Source

pub fn set_level2(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of level2 to the given value.

#Panics

If the given value is out of bounds for level2. Level 2

Source

pub fn set_level2_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of level2 to the given value.

#Errors

If the given value is out of bounds for level2. Level 2

Source

pub fn level3(&self) -> <bool as Specifier>::InOut

Returns the value of level3. Level 3

Source

pub fn level3_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of level3.

#Errors

If the returned value contains an invalid bit pattern for level3. Level 3

Source

pub fn with_level3(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of level3 set to the given value.

#Panics

If the given value is out of bounds for level3. Level 3

Source

pub fn with_level3_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of level3 set to the given value.

#Errors

If the given value is out of bounds for level3. Level 3

Source

pub fn set_level3(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of level3 to the given value.

#Panics

If the given value is out of bounds for level3. Level 3

Source

pub fn set_level3_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of level3 to the given value.

#Errors

If the given value is out of bounds for level3. Level 3

Trait Implementations§

Source§

impl CheckTotalSizeMultipleOf8 for RoundRobinMask

Source§

type Size = TotalSize<[(); 0]>

Source§

impl Default for RoundRobinMask

Source§

fn default() -> Self

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

impl From<RoundRobinMask> for u32
where [(); 32]: IsU32Compatible,

Source§

fn from(__bf_bitfield: RoundRobinMask) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for RoundRobinMask
where [(); 32]: IsU32Compatible,

Source§

fn from(__bf_prim: u32) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.