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
impl Ckgcr
pub fn set_ckgden(&mut self, val: bool)
pub fn set_ckgden(&mut self, val: bool)
Clock generator dividers enable.
pub const fn cck0en(&self) -> Ccken
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)
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
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)
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
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)
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
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)
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
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)
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
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)
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
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)
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 fn set_cckdiv(&mut self, val: Cckdiv)
pub fn set_cckdiv(&mut self, val: Cckdiv)
Divider to control the CCK clock.
pub fn set_procdiv(&mut self, val: u8)
pub fn set_procdiv(&mut self, val: u8)
Divider to control the serial interface clock.
pub fn set_ckgactive(&mut self, val: bool)
pub fn set_ckgactive(&mut self, val: bool)
Clock generator active flag.
Trait Implementations§
impl Copy for Ckgcr
impl Eq for Ckgcr
impl StructuralPartialEq for Ckgcr
Auto Trait Implementations§
impl Freeze for Ckgcr
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> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)