#[repr(u8)]pub enum PR {
DivideBy4 = 0,
DivideBy8 = 1,
DivideBy16 = 2,
DivideBy32 = 3,
DivideBy64 = 4,
DivideBy128 = 5,
DivideBy256 = 6,
}
Expand description
Prescaler divider These bits are write access protected see . They are written by software to select the prescaler divider feeding the counter clock. PVU bit of the must be reset in order to be able to change the prescaler divider. Note: Reading this register returns the prescaler value from the VDD voltage domain. This value may not be up to date/valid if a write operation to this register is ongoing. For this reason the value read from this register is valid only when the PVU bit in the status register (IWDG_SR) is reset.
Value on reset: 0
Variants§
DivideBy4 = 0
0: Divider /4
DivideBy8 = 1
1: Divider /8
DivideBy16 = 2
2: Divider /16
DivideBy32 = 3
3: Divider /32
DivideBy64 = 4
4: Divider /64
DivideBy128 = 5
5: Divider /128
DivideBy256 = 6
6: Divider /256
Trait Implementations§
impl Copy for PR
impl Eq for PR
impl IsEnum for PR
impl StructuralPartialEq for PR
Auto Trait Implementations§
impl Freeze for PR
impl RefUnwindSafe for PR
impl Send for PR
impl Sync for PR
impl Unpin for PR
impl UnwindSafe for PR
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
Mutably borrows from an owned value. Read more