[−][src]Struct msp430fr2x5x_hal::clock::ClockConfig
Builder object that configures system clocks
Can only commit configurations to hardware if both MCLK and SMCLK settings have been configured. ACLK configurations are optional, with its default source being REFOCLK.
Implementations
impl ClockConfig<NoClockDefined, NoClockDefined>
[src]
impl<MCLK, SMCLK> ClockConfig<MCLK, SMCLK>
[src]
pub fn aclk_refoclk(self) -> Self
[src]
Select REFOCLK for ACLK
pub fn aclk_vloclk(self) -> Self
[src]
Select VLOCLK for ACLK
pub fn mclk_refoclk(self, mclk_div: MclkDiv) -> ClockConfig<MclkDefined, SMCLK>
[src]
Select REFOCLK for MCLK and set the MCLK divider. Frequency is 10000 / mclk_div
Hz.
pub fn mclk_vcoclk(self, mclk_div: MclkDiv) -> ClockConfig<MclkDefined, SMCLK>
[src]
Select VLOCLK for MCLK and set the MCLK divider. Frequency is 32768 / mclk_div
Hz.
pub fn mclk_dcoclk(
self,
target_freq: DcoclkFreqSel,
mclk_div: MclkDiv
) -> ClockConfig<MclkDefined, SMCLK>
[src]
self,
target_freq: DcoclkFreqSel,
mclk_div: MclkDiv
) -> ClockConfig<MclkDefined, SMCLK>
Select DCOCLK for MCLK with FLL for stabilization. Frequency is target_freq / mclk_div
Hz.
This setting selects the default factory trim for DCO trimming and performs no extra
calibration, so only a select few frequency targets can be selected.
pub fn smclk_on(self, div: SmclkDiv) -> ClockConfig<MCLK, SmclkDefined>
[src]
Enable SMCLK and set SMCLK divider, which divides the MCLK frequency
pub fn smclk_off(self) -> ClockConfig<MCLK, SmclkDisabled>
[src]
Disable SMCLK
impl ClockConfig<MclkDefined, SmclkDefined>
[src]
pub fn freeze(self, fram: &mut Fram) -> (Smclk, Aclk)
[src]
Apply clock configuration to hardware and return SMCLK and ACLK clock objects
impl ClockConfig<MclkDefined, SmclkDisabled>
[src]
pub fn freeze(self, fram: &mut Fram) -> Aclk
[src]
Apply clock configuration to hardware and return ACLK clock object, as SMCLK is disabled
Auto Trait Implementations
impl<MCLK, SMCLK> Send for ClockConfig<MCLK, SMCLK> where
MCLK: Send,
SMCLK: Send,
[src]
MCLK: Send,
SMCLK: Send,
impl<MCLK, SMCLK> !Sync for ClockConfig<MCLK, SMCLK>
[src]
impl<MCLK, SMCLK> Unpin for ClockConfig<MCLK, SMCLK> where
MCLK: Unpin,
SMCLK: Unpin,
[src]
MCLK: Unpin,
SMCLK: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,