pub struct Mask1(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl Mask1
impl Mask1
sourcepub fn with_m_vbusok(self, value: bool) -> Self
pub fn with_m_vbusok(self, value: bool) -> Self
Mask I_VBUSOK interrupt bit
sourcepub fn set_m_vbusok(&mut self, value: bool)
pub fn set_m_vbusok(&mut self, value: bool)
Mask I_VBUSOK interrupt bit
sourcepub fn m_activity(&self) -> bool
pub fn m_activity(&self) -> bool
Mask interrupt for a transition in CC bus activity
sourcepub fn with_m_activity(self, value: bool) -> Self
pub fn with_m_activity(self, value: bool) -> Self
Mask interrupt for a transition in CC bus activity
sourcepub fn set_m_activity(&mut self, value: bool)
pub fn set_m_activity(&mut self, value: bool)
Mask interrupt for a transition in CC bus activity
sourcepub fn m_comp_chng(&self) -> bool
pub fn m_comp_chng(&self) -> bool
Mask I_COMP_CHNG interrupt for change is the value of COMP, the measure comparator
sourcepub fn with_m_comp_chng(self, value: bool) -> Self
pub fn with_m_comp_chng(self, value: bool) -> Self
Mask I_COMP_CHNG interrupt for change is the value of COMP, the measure comparator
sourcepub fn set_m_comp_chng(&mut self, value: bool)
pub fn set_m_comp_chng(&mut self, value: bool)
Mask I_COMP_CHNG interrupt for change is the value of COMP, the measure comparator
sourcepub fn with_m_crc_chk(self, value: bool) -> Self
pub fn with_m_crc_chk(self, value: bool) -> Self
Mask interrupt from CRC_CHK bit
sourcepub fn set_m_crc_chk(&mut self, value: bool)
pub fn set_m_crc_chk(&mut self, value: bool)
Mask interrupt from CRC_CHK bit
sourcepub fn with_m_alert(self, value: bool) -> Self
pub fn with_m_alert(self, value: bool) -> Self
Mask the I_ALERT interrupt bit
sourcepub fn set_m_alert(&mut self, value: bool)
pub fn set_m_alert(&mut self, value: bool)
Mask the I_ALERT interrupt bit
sourcepub fn with_m_wake(self, value: bool) -> Self
pub fn with_m_wake(self, value: bool) -> Self
Mask the I_WAKE interrupt bit
sourcepub fn set_m_wake(&mut self, value: bool)
pub fn set_m_wake(&mut self, value: bool)
Mask the I_WAKE interrupt bit
sourcepub fn m_collision(&self) -> bool
pub fn m_collision(&self) -> bool
Mask the I_COLLISION interrupt bit
sourcepub fn with_m_collision(self, value: bool) -> Self
pub fn with_m_collision(self, value: bool) -> Self
Mask the I_COLLISION interrupt bit
sourcepub fn set_m_collision(&mut self, value: bool)
pub fn set_m_collision(&mut self, value: bool)
Mask the I_COLLISION interrupt bit
sourcepub fn with_m_bc_lvl(self, value: bool) -> Self
pub fn with_m_bc_lvl(self, value: bool) -> Self
Mask a change in host requested current level
sourcepub fn set_m_bc_lvl(&mut self, value: bool)
pub fn set_m_bc_lvl(&mut self, value: bool)
Mask a change in host requested current level
Trait Implementations§
impl Copy for Mask1
impl Eq for Mask1
impl StructuralPartialEq for Mask1
Auto Trait Implementations§
impl Freeze for Mask1
impl RefUnwindSafe for Mask1
impl Send for Mask1
impl Sync for Mask1
impl Unpin for Mask1
impl UnwindSafe for Mask1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.