pub struct PowerOutputControl { /* private fields */ }
Expand description
Controls output enable for DC-DC1, DC-DC3, LDO2, LDO3, EXTEN, and DC-DC2. Power-on default for M5StickC Plus is 0x5F. IMPORTANT: REG12H bit 6 (exten_output_enable) is linked to REG10H bit 2. REG12H bit 4 (dcdc2_output_enable) is linked to REG10H bit 0. These pairs control the same underlying hardware function.
Implementations§
Source§impl PowerOutputControl
impl PowerOutputControl
Sourcepub fn exten_output_enable(&self) -> bool
pub fn exten_output_enable(&self) -> bool
Read the exten_output_enable
field of the register.
EXTEN pin output switch control (true: enabled, false: disabled). Linked to REG10H[2].
Sourcepub fn dcdc_2_output_enable(&self) -> bool
pub fn dcdc_2_output_enable(&self) -> bool
Read the dcdc_2_output_enable
field of the register.
DC-DC2 converter output switch control (true: enabled, false: disabled). Linked to REG10H[0].
Sourcepub fn ldo_3_output_enable(&self) -> bool
pub fn ldo_3_output_enable(&self) -> bool
Read the ldo_3_output_enable
field of the register.
LDO3 output switch control (true: enabled, false: disabled).
Sourcepub fn ldo_2_output_enable(&self) -> bool
pub fn ldo_2_output_enable(&self) -> bool
Read the ldo_2_output_enable
field of the register.
LDO2 output switch control (true: enabled, false: disabled).
Sourcepub fn dcdc_3_output_enable(&self) -> bool
pub fn dcdc_3_output_enable(&self) -> bool
Read the dcdc_3_output_enable
field of the register.
DC-DC3 converter output switch control (true: enabled, false: disabled).
Sourcepub fn dcdc_1_output_enable(&self) -> bool
pub fn dcdc_1_output_enable(&self) -> bool
Read the dcdc_1_output_enable
field of the register.
DC-DC1 converter output switch control (true: enabled, false: disabled).
Sourcepub fn set_exten_output_enable(&mut self, value: bool)
pub fn set_exten_output_enable(&mut self, value: bool)
Write the exten_output_enable
field of the register.
EXTEN pin output switch control (true: enabled, false: disabled). Linked to REG10H[2].
Sourcepub fn set_dcdc_2_output_enable(&mut self, value: bool)
pub fn set_dcdc_2_output_enable(&mut self, value: bool)
Write the dcdc_2_output_enable
field of the register.
DC-DC2 converter output switch control (true: enabled, false: disabled). Linked to REG10H[0].
Sourcepub fn set_ldo_3_output_enable(&mut self, value: bool)
pub fn set_ldo_3_output_enable(&mut self, value: bool)
Write the ldo_3_output_enable
field of the register.
LDO3 output switch control (true: enabled, false: disabled).
Sourcepub fn set_ldo_2_output_enable(&mut self, value: bool)
pub fn set_ldo_2_output_enable(&mut self, value: bool)
Write the ldo_2_output_enable
field of the register.
LDO2 output switch control (true: enabled, false: disabled).
Sourcepub fn set_dcdc_3_output_enable(&mut self, value: bool)
pub fn set_dcdc_3_output_enable(&mut self, value: bool)
Write the dcdc_3_output_enable
field of the register.
DC-DC3 converter output switch control (true: enabled, false: disabled).
Sourcepub fn set_dcdc_1_output_enable(&mut self, value: bool)
pub fn set_dcdc_1_output_enable(&mut self, value: bool)
Write the dcdc_1_output_enable
field of the register.
DC-DC1 converter output switch control (true: enabled, false: disabled).
Trait Implementations§
Source§impl BitAnd for PowerOutputControl
impl BitAnd for PowerOutputControl
Source§impl BitAndAssign for PowerOutputControl
impl BitAndAssign for PowerOutputControl
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOr for PowerOutputControl
impl BitOr for PowerOutputControl
Source§impl BitOrAssign for PowerOutputControl
impl BitOrAssign for PowerOutputControl
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXor for PowerOutputControl
impl BitXor for PowerOutputControl
Source§impl BitXorAssign for PowerOutputControl
impl BitXorAssign for PowerOutputControl
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl Clone for PowerOutputControl
impl Clone for PowerOutputControl
Source§fn clone(&self) -> PowerOutputControl
fn clone(&self) -> PowerOutputControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more