Struct PartialCfg

Source
pub struct PartialCfg<const MASK: u32>(/* private fields */);

Implementations§

Source§

impl PartialCfg<0>

Source

pub const fn with_rf_sw(&self, value: u4) -> PartialCfg<15>

Source§

impl PartialCfg<15>

Source

pub const fn with_led(&self, value: u4) -> PartialCfg<255>

Source§

impl PartialCfg<255>

Source

pub const fn with_profile(&self, value: u3) -> PartialCfg<2047>

Source§

impl PartialCfg<2047>

Source

pub const fn with_io_update(&self, value: bool) -> PartialCfg<6143>

Source§

impl PartialCfg<6143>

Source

pub const fn with_mask_nu(&self, value: u4) -> PartialCfg<129023>

Source§

impl PartialCfg<129023>

Source

pub const fn with_clk_sel(&self, value: ClkSel) -> PartialCfg<2357247>

Source§

impl PartialCfg<2357247>

Source

pub const fn with_sync_sel(&self, value: bool) -> PartialCfg<2619391>

Source§

impl PartialCfg<2619391>

Source

pub const fn with_rst(&self, value: bool) -> PartialCfg<3143679>

Source§

impl PartialCfg<3143679>

Source

pub const fn with_io_rst(&self, value: bool) -> PartialCfg<4192255>

Source§

impl PartialCfg<4192255>

Source

pub const fn with_div_sel(&self, value: DivSel) -> PartialCfg<16775167>

Source§

impl PartialCfg<16775167>

Source

pub const fn build(&self) -> Cfg

Builds the bitfield from the values passed into this builder

Auto Trait Implementations§

§

impl<const MASK: u32> Freeze for PartialCfg<MASK>

§

impl<const MASK: u32> RefUnwindSafe for PartialCfg<MASK>

§

impl<const MASK: u32> Send for PartialCfg<MASK>

§

impl<const MASK: u32> Sync for PartialCfg<MASK>

§

impl<const MASK: u32> Unpin for PartialCfg<MASK>

§

impl<const MASK: u32> UnwindSafe for PartialCfg<MASK>

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, 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.