pub struct ApsLowPowerLevel2Setting { /* private fields */ }Expand description
Sets the APS (Average Power Source voltage) low power warning Level 2 threshold. Typically set lower than Level 1. An IRQ may be triggered if APS voltage drops below this level. Formula: V_WARNING2 (V) = 2.8672 + (raw_value * 0.0014 * 4). The raw_value is the 8-bit content of this register.
Implementations§
Source§impl ApsLowPowerLevel2Setting
impl ApsLowPowerLevel2Setting
Sourcepub fn level_setting_raw(&self) -> u8
pub fn level_setting_raw(&self) -> u8
Read the level_setting_raw field of the register.
Raw 8-bit setting for APS low power Level 2 threshold. See register description for formula.
Sourcepub fn set_level_setting_raw(&mut self, value: u8)
pub fn set_level_setting_raw(&mut self, value: u8)
Write the level_setting_raw field of the register.
Raw 8-bit setting for APS low power Level 2 threshold. See register description for formula.
Trait Implementations§
Source§impl BitAnd for ApsLowPowerLevel2Setting
impl BitAnd for ApsLowPowerLevel2Setting
Source§impl BitAndAssign for ApsLowPowerLevel2Setting
impl BitAndAssign for ApsLowPowerLevel2Setting
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for ApsLowPowerLevel2Setting
impl BitOr for ApsLowPowerLevel2Setting
Source§impl BitOrAssign for ApsLowPowerLevel2Setting
impl BitOrAssign for ApsLowPowerLevel2Setting
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for ApsLowPowerLevel2Setting
impl BitXor for ApsLowPowerLevel2Setting
Source§impl BitXorAssign for ApsLowPowerLevel2Setting
impl BitXorAssign for ApsLowPowerLevel2Setting
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for ApsLowPowerLevel2Setting
impl Clone for ApsLowPowerLevel2Setting
Source§fn clone(&self) -> ApsLowPowerLevel2Setting
fn clone(&self) -> ApsLowPowerLevel2Setting
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 ApsLowPowerLevel2Setting
impl Debug for ApsLowPowerLevel2Setting
Source§impl From<ApsLowPowerLevel2Setting> for [u8; 1]
impl From<ApsLowPowerLevel2Setting> for [u8; 1]
Source§fn from(val: ApsLowPowerLevel2Setting) -> Self
fn from(val: ApsLowPowerLevel2Setting) -> Self
Converts to this type from the input type.
Source§impl From<ApsLowPowerLevel2Setting> for FieldSetValue
impl From<ApsLowPowerLevel2Setting> for FieldSetValue
Source§fn from(val: ApsLowPowerLevel2Setting) -> Self
fn from(val: ApsLowPowerLevel2Setting) -> Self
Converts to this type from the input type.
Source§impl Not for ApsLowPowerLevel2Setting
impl Not for ApsLowPowerLevel2Setting
Source§impl PartialEq for ApsLowPowerLevel2Setting
impl PartialEq for ApsLowPowerLevel2Setting
impl Copy for ApsLowPowerLevel2Setting
impl Eq for ApsLowPowerLevel2Setting
impl StructuralPartialEq for ApsLowPowerLevel2Setting
Auto Trait Implementations§
impl Freeze for ApsLowPowerLevel2Setting
impl RefUnwindSafe for ApsLowPowerLevel2Setting
impl Send for ApsLowPowerLevel2Setting
impl Sync for ApsLowPowerLevel2Setting
impl Unpin for ApsLowPowerLevel2Setting
impl UnwindSafe for ApsLowPowerLevel2Setting
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