pub struct ShutdownBatChgLedControl { /* private fields */ }Expand description
Controls shutdown, battery detection, CHGLED pin, and N_OE shutdown delay.
Implementations§
Source§impl ShutdownBatChgLedControl
impl ShutdownBatChgLedControl
Sourcepub fn request_shutdown_mode_a(&self) -> bool
pub fn request_shutdown_mode_a(&self) -> bool
Read the request_shutdown_mode_a field of the register.
Initiate AXP192 shutdown in Mode A (true: request shutdown).
Sourcepub fn battery_monitoring_enable(&self) -> bool
pub fn battery_monitoring_enable(&self) -> bool
Read the battery_monitoring_enable field of the register.
Battery monitoring function (true: enabled, false: disabled).
Sourcepub fn chgled_function(&self) -> ChgLedFunctionSetting
pub fn chgled_function(&self) -> ChgLedFunctionSetting
Read the chgled_function field of the register.
CHGLED pin function when chgled_control_source is ByRegister.
Sourcepub fn chgled_control_source(&self) -> ChgLedControlSourceSelect
pub fn chgled_control_source(&self) -> ChgLedControlSourceSelect
Read the chgled_control_source field of the register.
CHGLED pin control source.
Sourcepub fn n_oe_shutdown_delay(&self) -> NoeShutdownDelayValue
pub fn n_oe_shutdown_delay(&self) -> NoeShutdownDelayValue
Read the n_oe_shutdown_delay field of the register.
Shutdown delay after N_OE pin transitions from low to high.
Sourcepub fn set_request_shutdown_mode_a(&mut self, value: bool)
pub fn set_request_shutdown_mode_a(&mut self, value: bool)
Write the request_shutdown_mode_a field of the register.
Initiate AXP192 shutdown in Mode A (true: request shutdown).
Sourcepub fn set_battery_monitoring_enable(&mut self, value: bool)
pub fn set_battery_monitoring_enable(&mut self, value: bool)
Write the battery_monitoring_enable field of the register.
Battery monitoring function (true: enabled, false: disabled).
Sourcepub fn set_chgled_function(&mut self, value: ChgLedFunctionSetting)
pub fn set_chgled_function(&mut self, value: ChgLedFunctionSetting)
Write the chgled_function field of the register.
CHGLED pin function when chgled_control_source is ByRegister.
Sourcepub fn set_chgled_control_source(&mut self, value: ChgLedControlSourceSelect)
pub fn set_chgled_control_source(&mut self, value: ChgLedControlSourceSelect)
Write the chgled_control_source field of the register.
CHGLED pin control source.
Sourcepub fn set_n_oe_shutdown_delay(&mut self, value: NoeShutdownDelayValue)
pub fn set_n_oe_shutdown_delay(&mut self, value: NoeShutdownDelayValue)
Write the n_oe_shutdown_delay field of the register.
Shutdown delay after N_OE pin transitions from low to high.
Trait Implementations§
Source§impl BitAnd for ShutdownBatChgLedControl
impl BitAnd for ShutdownBatChgLedControl
Source§impl BitAndAssign for ShutdownBatChgLedControl
impl BitAndAssign for ShutdownBatChgLedControl
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for ShutdownBatChgLedControl
impl BitOr for ShutdownBatChgLedControl
Source§impl BitOrAssign for ShutdownBatChgLedControl
impl BitOrAssign for ShutdownBatChgLedControl
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXor for ShutdownBatChgLedControl
impl BitXor for ShutdownBatChgLedControl
Source§impl BitXorAssign for ShutdownBatChgLedControl
impl BitXorAssign for ShutdownBatChgLedControl
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for ShutdownBatChgLedControl
impl Clone for ShutdownBatChgLedControl
Source§fn clone(&self) -> ShutdownBatChgLedControl
fn clone(&self) -> ShutdownBatChgLedControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more