pub struct ChargeControl2 { /* private fields */ }
Expand description
Controls secondary charging parameters including pre-charge timeout, external path charge current and enable state, and constant current mode timeout.
Implementations§
Source§impl ChargeControl2
impl ChargeControl2
Sourcepub fn precharge_timeout(&self) -> PrechargeTimeoutValue
pub fn precharge_timeout(&self) -> PrechargeTimeoutValue
Read the precharge_timeout
field of the register.
Pre-charge phase timeout duration.
Sourcepub fn external_path_charge_current(&self) -> ExternalPathChargeCurrentValue
pub fn external_path_charge_current(&self) -> ExternalPathChargeCurrentValue
Read the external_path_charge_current
field of the register.
External path charging current setting (300mA to 1000mA, 100mA/step).
Sourcepub fn external_path_charge_enable(&self) -> bool
pub fn external_path_charge_enable(&self) -> bool
Read the external_path_charge_enable
field of the register.
External path charging enable (true: enabled, false: disabled).
Sourcepub fn constant_current_timeout(&self) -> ConstantCurrentTimeoutValue
pub fn constant_current_timeout(&self) -> ConstantCurrentTimeoutValue
Read the constant_current_timeout
field of the register.
Constant Current (CC) charging mode timeout duration.
Sourcepub fn set_precharge_timeout(&mut self, value: PrechargeTimeoutValue)
pub fn set_precharge_timeout(&mut self, value: PrechargeTimeoutValue)
Write the precharge_timeout
field of the register.
Pre-charge phase timeout duration.
Sourcepub fn set_external_path_charge_current(
&mut self,
value: ExternalPathChargeCurrentValue,
)
pub fn set_external_path_charge_current( &mut self, value: ExternalPathChargeCurrentValue, )
Write the external_path_charge_current
field of the register.
External path charging current setting (300mA to 1000mA, 100mA/step).
Sourcepub fn set_external_path_charge_enable(&mut self, value: bool)
pub fn set_external_path_charge_enable(&mut self, value: bool)
Write the external_path_charge_enable
field of the register.
External path charging enable (true: enabled, false: disabled).
Sourcepub fn set_constant_current_timeout(
&mut self,
value: ConstantCurrentTimeoutValue,
)
pub fn set_constant_current_timeout( &mut self, value: ConstantCurrentTimeoutValue, )
Write the constant_current_timeout
field of the register.
Constant Current (CC) charging mode timeout duration.
Trait Implementations§
Source§impl BitAnd for ChargeControl2
impl BitAnd for ChargeControl2
Source§impl BitAndAssign for ChargeControl2
impl BitAndAssign for ChargeControl2
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOr for ChargeControl2
impl BitOr for ChargeControl2
Source§impl BitOrAssign for ChargeControl2
impl BitOrAssign for ChargeControl2
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXor for ChargeControl2
impl BitXor for ChargeControl2
Source§impl BitXorAssign for ChargeControl2
impl BitXorAssign for ChargeControl2
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl Clone for ChargeControl2
impl Clone for ChargeControl2
Source§fn clone(&self) -> ChargeControl2
fn clone(&self) -> ChargeControl2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more