pub struct FactoryConf(/* private fields */);Expand description
Factory configuration register.
Contains clock frequency trim and overtemperature settings.
Implementations§
Source§impl FactoryConf
impl FactoryConf
Sourcepub fn fclktrim(&self) -> u8
pub fn fclktrim(&self) -> u8
FCLKTRIM value (0-31).
Clock frequency trim. 0 = lowest, 31 = highest frequency. Pre-programmed by factory to 12MHz - do not alter.
Sourcepub fn set_fclktrim(&mut self, value: u8) -> &mut Self
pub fn set_fclktrim(&mut self, value: u8) -> &mut Self
Set FCLKTRIM value.
Sourcepub fn ottrim(&self) -> u8
pub fn ottrim(&self) -> u8
OTTRIM value (0-3).
Overtemperature threshold selection:
- 0b00: OT=143°C, OTPW=120°C
- 0b01: OT=150°C, OTPW=120°C
- 0b10: OT=150°C, OTPW=143°C
- 0b11: OT=157°C, OTPW=143°C
Sourcepub fn set_ottrim(&mut self, value: u8) -> &mut Self
pub fn set_ottrim(&mut self, value: u8) -> &mut Self
Set OTTRIM value.
Trait Implementations§
Source§impl Clone for FactoryConf
impl Clone for FactoryConf
Source§fn clone(&self) -> FactoryConf
fn clone(&self) -> FactoryConf
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FactoryConf
impl Debug for FactoryConf
Source§impl Default for FactoryConf
impl Default for FactoryConf
Source§fn default() -> FactoryConf
fn default() -> FactoryConf
Returns the “default value” for a type. Read more
Source§impl Format for FactoryConf
impl Format for FactoryConf
Source§impl From<FactoryConf> for u32
impl From<FactoryConf> for u32
Source§fn from(reg: FactoryConf) -> u32
fn from(reg: FactoryConf) -> u32
Converts to this type from the input type.
Source§impl From<u32> for FactoryConf
impl From<u32> for FactoryConf
Source§impl PartialEq for FactoryConf
impl PartialEq for FactoryConf
Source§impl Register for FactoryConf
impl Register for FactoryConf
impl Copy for FactoryConf
impl Eq for FactoryConf
impl ReadableRegister for FactoryConf
impl StructuralPartialEq for FactoryConf
impl WritableRegister for FactoryConf
Auto Trait Implementations§
impl Freeze for FactoryConf
impl RefUnwindSafe for FactoryConf
impl Send for FactoryConf
impl Sync for FactoryConf
impl Unpin for FactoryConf
impl UnwindSafe for FactoryConf
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