FDIV_W

Struct FDIV_W 

Source
pub struct FDIV_W<'a> { /* private fields */ }
Expand description

Field FDIV writer - Functional clock divider, or 0 if no divide. The term “clocks” in this spec then refer to divided clocks. For a 12MHz input (e.g. FRO 12MHz), this would normally be set to generate a 4MHz output (so, 2). For a 1MHz input, it should be 0. Note for internal use: this does not produce a 50/50 duty cycle when non even divide.

Implementations§

Source§

impl<'a> FDIV_W<'a>

Source

pub fn variant(self, variant: FDIV_A) -> &'a mut W

Writes variant to the field

Source

pub fn fdiv_0(self) -> &'a mut W

No divide

Source

pub fn fdiv_1(self) -> &'a mut W

/2

Source

pub fn fdiv_2(self) -> &'a mut W

/3

Source

pub fn fdiv_3(self) -> &'a mut W

/4

Source

pub fn fdiv_4(self) -> &'a mut W

/5

Source

pub fn fdiv_5(self) -> &'a mut W

/6

Source

pub fn fdiv_7(self) -> &'a mut W

/(FDIV+1)

Source

pub fn fdiv_8(self) -> &'a mut W

/(FDIV+1)

Source

pub fn fdiv_9(self) -> &'a mut W

/(FDIV+1)

Source

pub fn fdiv_10(self) -> &'a mut W

/(FDIV+1)

Source

pub fn fdiv_11(self) -> &'a mut W

/(FDIV+1)

Source

pub fn fdiv_12(self) -> &'a mut W

/(FDIV+1)

Source

pub fn fdiv_13(self) -> &'a mut W

/(FDIV+1)

Source

pub fn fdiv_14(self) -> &'a mut W

/(FDIV+1)

Source

pub fn fdiv_15(self) -> &'a mut W

/(FDIV+1)

Source

pub unsafe fn bits(self, value: u8) -> &'a mut W

Writes raw bits to the field

Auto Trait Implementations§

§

impl<'a> Freeze for FDIV_W<'a>

§

impl<'a> RefUnwindSafe for FDIV_W<'a>

§

impl<'a> Send for FDIV_W<'a>

§

impl<'a> Sync for FDIV_W<'a>

§

impl<'a> Unpin for FDIV_W<'a>

§

impl<'a> !UnwindSafe for FDIV_W<'a>

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.