Embassy
stm32-metapac

Crates

git

Versions

stm32u535je

Flavors

Struct stm32_metapac::adf::regs::Ckgcr

#[repr(transparent)]
pub struct Ckgcr(pub u32);
Expand description

ADF clock generator control register.

Tuple Fields§

§0: u32

Implementations§

§

impl Ckgcr

pub const fn ckgden(&self) -> bool

Clock generator dividers enable.

pub fn set_ckgden(&mut self, val: bool)

Clock generator dividers enable.

pub const fn cck0en(&self) -> Ccken

CCK0 clock enable. This bit is set and reset by software. It is used to control the generation of the bitstream clock on the CCK pin.

pub fn set_cck0en(&mut self, val: Ccken)

CCK0 clock enable. This bit is set and reset by software. It is used to control the generation of the bitstream clock on the CCK pin.

pub const fn cck1en(&self) -> Ccken

CCK1 clock enable. This bit is set and reset by software. It is used to control the generation of the bitstream clock on the CCK pin.

pub fn set_cck1en(&mut self, val: Ccken)

CCK1 clock enable. This bit is set and reset by software. It is used to control the generation of the bitstream clock on the CCK pin.

pub const fn ckgmod(&self) -> Ckgmod

Clock generator mode. This bit is set and reset by software. It is used to define the way the clock generator is enabled. This bit must not be changed if the filter is enabled (DFTEN = 1).

pub fn set_ckgmod(&mut self, val: Ckgmod)

Clock generator mode. This bit is set and reset by software. It is used to define the way the clock generator is enabled. This bit must not be changed if the filter is enabled (DFTEN = 1).

pub const fn cck0dir(&self) -> Cckdir

CCK0 direction. This bit is set and reset by software. It is used to control the direction of the ADF_CCK0 pin.

pub fn set_cck0dir(&mut self, val: Cckdir)

CCK0 direction. This bit is set and reset by software. It is used to control the direction of the ADF_CCK0 pin.

pub const fn cck1dir(&self) -> Cckdir

CCK1 direction. This bit is set and reset by software. It is used to control the direction of the ADF_CCK1 pin.

pub fn set_cck1dir(&mut self, val: Cckdir)

CCK1 direction. This bit is set and reset by software. It is used to control the direction of the ADF_CCK1 pin.

pub const fn trgsens(&self) -> Trgsens

CKGEN trigger sensitivity selection. This bit is set and cleared by software. It is used to select the trigger sensitivity of the trigger signals. This bit is not significant if the CKGMOD = 0.

pub fn set_trgsens(&mut self, val: Trgsens)

CKGEN trigger sensitivity selection. This bit is set and cleared by software. It is used to select the trigger sensitivity of the trigger signals. This bit is not significant if the CKGMOD = 0.

pub const fn trgsrc(&self) -> Trgsrc

Digital filter trigger signal selection. This bit is set and cleared by software. It is used to select the trigger signal for the digital filter. This bit is not significant if the CKGMOD = 0.

pub fn set_trgsrc(&mut self, val: Trgsrc)

Digital filter trigger signal selection. This bit is set and cleared by software. It is used to select the trigger signal for the digital filter. This bit is not significant if the CKGMOD = 0.

pub const fn cckdiv(&self) -> Cckdiv

Divider to control the CCK clock.

pub fn set_cckdiv(&mut self, val: Cckdiv)

Divider to control the CCK clock.

pub const fn procdiv(&self) -> u8

Divider to control the serial interface clock.

pub fn set_procdiv(&mut self, val: u8)

Divider to control the serial interface clock.

pub const fn ckgactive(&self) -> bool

Clock generator active flag.

pub fn set_ckgactive(&mut self, val: bool)

Clock generator active flag.

Trait Implementations§

§

impl Clone for Ckgcr

§

fn clone(&self) -> Ckgcr

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
§

impl Default for Ckgcr

§

fn default() -> Ckgcr

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

impl PartialEq for Ckgcr

§

fn eq(&self, other: &Ckgcr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Ckgcr

§

impl Eq for Ckgcr

§

impl StructuralEq for Ckgcr

§

impl StructuralPartialEq for Ckgcr

Auto Trait Implementations§

§

impl RefUnwindSafe for Ckgcr

§

impl Send for Ckgcr

§

impl Sync for Ckgcr

§

impl Unpin for Ckgcr

§

impl UnwindSafe for Ckgcr

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

§

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

§

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.