pub struct ChargeControl1 { /* private fields */ }Expand description
Controls primary charging parameters.
Implementations§
Source§impl ChargeControl1
impl ChargeControl1
Sourcepub fn charge_enable(&self) -> bool
pub fn charge_enable(&self) -> bool
Read the charge_enable field of the register.
Charging function enable (true: enabled, false: disabled).
Sourcepub fn target_voltage(&self) -> ChargeTargetVoltageValue
pub fn target_voltage(&self) -> ChargeTargetVoltageValue
Read the target_voltage field of the register.
Charging target voltage setting.
Sourcepub fn end_current_threshold(&self) -> ChargeEndCurrentThresholdValue
pub fn end_current_threshold(&self) -> ChargeEndCurrentThresholdValue
Read the end_current_threshold field of the register.
Charge termination current threshold.
Sourcepub fn charge_current(&self) -> ChargeCurrentValue
pub fn charge_current(&self) -> ChargeCurrentValue
Read the charge_current field of the register.
Internal path charging current setting.
Sourcepub fn set_charge_enable(&mut self, value: bool)
pub fn set_charge_enable(&mut self, value: bool)
Write the charge_enable field of the register.
Charging function enable (true: enabled, false: disabled).
Sourcepub fn set_target_voltage(&mut self, value: ChargeTargetVoltageValue)
pub fn set_target_voltage(&mut self, value: ChargeTargetVoltageValue)
Write the target_voltage field of the register.
Charging target voltage setting.
Sourcepub fn set_end_current_threshold(
&mut self,
value: ChargeEndCurrentThresholdValue,
)
pub fn set_end_current_threshold( &mut self, value: ChargeEndCurrentThresholdValue, )
Write the end_current_threshold field of the register.
Charge termination current threshold.
Sourcepub fn set_charge_current(&mut self, value: ChargeCurrentValue)
pub fn set_charge_current(&mut self, value: ChargeCurrentValue)
Write the charge_current field of the register.
Internal path charging current setting.
Trait Implementations§
Source§impl BitAnd for ChargeControl1
impl BitAnd for ChargeControl1
Source§impl BitAndAssign for ChargeControl1
impl BitAndAssign for ChargeControl1
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for ChargeControl1
impl BitOr for ChargeControl1
Source§impl BitOrAssign for ChargeControl1
impl BitOrAssign for ChargeControl1
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXor for ChargeControl1
impl BitXor for ChargeControl1
Source§impl BitXorAssign for ChargeControl1
impl BitXorAssign for ChargeControl1
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for ChargeControl1
impl Clone for ChargeControl1
Source§fn clone(&self) -> ChargeControl1
fn clone(&self) -> ChargeControl1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more