pub struct IrqEnableControl2 { /* private fields */ }Expand description
Interrupt Enable Control Register 2 (Battery and Charge related IRQs).
Implementations§
Source§impl IrqEnableControl2
impl IrqEnableControl2
Sourcepub fn battery_insertion_irq_enable(&self) -> bool
pub fn battery_insertion_irq_enable(&self) -> bool
Read the battery_insertion_irq_enable field of the register.
Battery insertion interrupt.
Sourcepub fn battery_removal_irq_enable(&self) -> bool
pub fn battery_removal_irq_enable(&self) -> bool
Read the battery_removal_irq_enable field of the register.
Battery removal interrupt.
Sourcepub fn battery_activation_mode_entry_irq_enable(&self) -> bool
pub fn battery_activation_mode_entry_irq_enable(&self) -> bool
Read the battery_activation_mode_entry_irq_enable field of the register.
Battery enters activation mode interrupt.
Sourcepub fn battery_activation_mode_exit_irq_enable(&self) -> bool
pub fn battery_activation_mode_exit_irq_enable(&self) -> bool
Read the battery_activation_mode_exit_irq_enable field of the register.
Battery exits activation mode interrupt.
Sourcepub fn charging_irq_enable(&self) -> bool
pub fn charging_irq_enable(&self) -> bool
Read the charging_irq_enable field of the register.
Charging started interrupt.
Sourcepub fn charge_done_irq_enable(&self) -> bool
pub fn charge_done_irq_enable(&self) -> bool
Read the charge_done_irq_enable field of the register.
Charge completion interrupt.
Sourcepub fn battery_over_temp_irq_enable(&self) -> bool
pub fn battery_over_temp_irq_enable(&self) -> bool
Read the battery_over_temp_irq_enable field of the register.
Battery over-temperature interrupt.
Sourcepub fn battery_under_temp_irq_enable(&self) -> bool
pub fn battery_under_temp_irq_enable(&self) -> bool
Read the battery_under_temp_irq_enable field of the register.
Battery under-temperature interrupt.
Sourcepub fn set_battery_insertion_irq_enable(&mut self, value: bool)
pub fn set_battery_insertion_irq_enable(&mut self, value: bool)
Write the battery_insertion_irq_enable field of the register.
Battery insertion interrupt.
Sourcepub fn set_battery_removal_irq_enable(&mut self, value: bool)
pub fn set_battery_removal_irq_enable(&mut self, value: bool)
Write the battery_removal_irq_enable field of the register.
Battery removal interrupt.
Sourcepub fn set_battery_activation_mode_entry_irq_enable(&mut self, value: bool)
pub fn set_battery_activation_mode_entry_irq_enable(&mut self, value: bool)
Write the battery_activation_mode_entry_irq_enable field of the register.
Battery enters activation mode interrupt.
Sourcepub fn set_battery_activation_mode_exit_irq_enable(&mut self, value: bool)
pub fn set_battery_activation_mode_exit_irq_enable(&mut self, value: bool)
Write the battery_activation_mode_exit_irq_enable field of the register.
Battery exits activation mode interrupt.
Sourcepub fn set_charging_irq_enable(&mut self, value: bool)
pub fn set_charging_irq_enable(&mut self, value: bool)
Write the charging_irq_enable field of the register.
Charging started interrupt.
Sourcepub fn set_charge_done_irq_enable(&mut self, value: bool)
pub fn set_charge_done_irq_enable(&mut self, value: bool)
Write the charge_done_irq_enable field of the register.
Charge completion interrupt.
Sourcepub fn set_battery_over_temp_irq_enable(&mut self, value: bool)
pub fn set_battery_over_temp_irq_enable(&mut self, value: bool)
Write the battery_over_temp_irq_enable field of the register.
Battery over-temperature interrupt.
Sourcepub fn set_battery_under_temp_irq_enable(&mut self, value: bool)
pub fn set_battery_under_temp_irq_enable(&mut self, value: bool)
Write the battery_under_temp_irq_enable field of the register.
Battery under-temperature interrupt.
Trait Implementations§
Source§impl BitAnd for IrqEnableControl2
impl BitAnd for IrqEnableControl2
Source§impl BitAndAssign for IrqEnableControl2
impl BitAndAssign for IrqEnableControl2
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for IrqEnableControl2
impl BitOr for IrqEnableControl2
Source§impl BitOrAssign for IrqEnableControl2
impl BitOrAssign for IrqEnableControl2
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXor for IrqEnableControl2
impl BitXor for IrqEnableControl2
Source§impl BitXorAssign for IrqEnableControl2
impl BitXorAssign for IrqEnableControl2
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for IrqEnableControl2
impl Clone for IrqEnableControl2
Source§fn clone(&self) -> IrqEnableControl2
fn clone(&self) -> IrqEnableControl2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more