pub struct OtpRead(/* private fields */);Expand description
OTP memory read register.
Contains the power-up defaults stored in OTP memory.
Implementations§
Source§impl OtpRead
impl OtpRead
Sourcepub fn otp_fclktrim(&self) -> u8
pub fn otp_fclktrim(&self) -> u8
FCLKTRIM value (0-31).
Factory-programmed clock frequency trim. Do not alter - differs between individual ICs.
Sourcepub fn otp_ottrim(&self) -> bool
pub fn otp_ottrim(&self) -> bool
OTTRIM value.
- 0: OT=143°C
- 1: OT=150°C
Sourcepub fn otp_internal_rsense(&self) -> bool
pub fn otp_internal_rsense(&self) -> bool
Internal Rsense default.
true: Internal sense resistorsfalse: External sense resistors
Sourcepub fn otp_pwm_grad(&self) -> u8
pub fn otp_pwm_grad(&self) -> u8
PWM_GRAD default (0-15).
Sourcepub fn otp_pwm_autograd(&self) -> bool
pub fn otp_pwm_autograd(&self) -> bool
PWM_AUTOGRAD default.
Sourcepub fn otp_tpwmthrs(&self) -> u8
pub fn otp_tpwmthrs(&self) -> u8
TPWM_THRS default (0-7).
Sourcepub fn otp_pwm_ofs(&self) -> bool
pub fn otp_pwm_ofs(&self) -> bool
PWM_OFS default.
false: PWM_OFS=36true: PWM_OFS=0
Sourcepub fn otp_pwm_reg(&self) -> bool
pub fn otp_pwm_reg(&self) -> bool
PWM_REG default.
false: PWM_REG=0b1000true: PWM_REG=0b0010
Sourcepub fn otp_pwm_freq(&self) -> bool
pub fn otp_pwm_freq(&self) -> bool
PWM_FREQ default.
false: PWM_FREQ=0b01true: PWM_FREQ=0b10
Sourcepub fn otp_iholddelay(&self) -> u8
pub fn otp_iholddelay(&self) -> u8
IHOLDDELAY default (0-3).
Sourcepub fn otp_en_spreadcycle(&self) -> bool
pub fn otp_en_spreadcycle(&self) -> bool
SpreadCycle enabled by default.
true: SpreadCycle modefalse: StealthChop mode
Trait Implementations§
impl Copy for OtpRead
impl Eq for OtpRead
impl ReadableRegister for OtpRead
impl StructuralPartialEq for OtpRead
Auto Trait Implementations§
impl Freeze for OtpRead
impl RefUnwindSafe for OtpRead
impl Send for OtpRead
impl Sync for OtpRead
impl Unpin for OtpRead
impl UnwindSafe for OtpRead
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