pub struct PekKeyParameters { /* private fields */ }Expand description
Configures parameters related to the PEK (Power Enable Key/Button) operations.
Implementations§
Source§impl PekKeyParameters
impl PekKeyParameters
Sourcepub fn power_on_time(&self) -> PekPowerOnTime
pub fn power_on_time(&self) -> PekPowerOnTime
Read the power_on_time field of the register.
PEK press duration required for power-on.
Sourcepub fn long_press_time(&self) -> PekLongPressTime
pub fn long_press_time(&self) -> PekLongPressTime
Read the long_press_time field of the register.
PEK long press detection time.
Sourcepub fn auto_shutdown_if_pek_held_longer_than_shutdown_time(&self) -> bool
pub fn auto_shutdown_if_pek_held_longer_than_shutdown_time(&self) -> bool
Read the auto_shutdown_if_pek_held_longer_than_shutdown_time field of the register.
Auto-shutdown if PEK is held longer than the configured shutdown time (true: enabled, false: disabled).
Sourcepub fn pwrok_signal_delay(&self) -> PwrokSignalDelay
pub fn pwrok_signal_delay(&self) -> PwrokSignalDelay
Read the pwrok_signal_delay field of the register.
Delay for the PWROK signal after power-up sequence completion.
Sourcepub fn shutdown_time(&self) -> PekShutdownTime
pub fn shutdown_time(&self) -> PekShutdownTime
Read the shutdown_time field of the register.
PEK press duration required for shutdown.
Sourcepub fn set_power_on_time(&mut self, value: PekPowerOnTime)
pub fn set_power_on_time(&mut self, value: PekPowerOnTime)
Write the power_on_time field of the register.
PEK press duration required for power-on.
Sourcepub fn set_long_press_time(&mut self, value: PekLongPressTime)
pub fn set_long_press_time(&mut self, value: PekLongPressTime)
Write the long_press_time field of the register.
PEK long press detection time.
Sourcepub fn set_auto_shutdown_if_pek_held_longer_than_shutdown_time(
&mut self,
value: bool,
)
pub fn set_auto_shutdown_if_pek_held_longer_than_shutdown_time( &mut self, value: bool, )
Write the auto_shutdown_if_pek_held_longer_than_shutdown_time field of the register.
Auto-shutdown if PEK is held longer than the configured shutdown time (true: enabled, false: disabled).
Sourcepub fn set_pwrok_signal_delay(&mut self, value: PwrokSignalDelay)
pub fn set_pwrok_signal_delay(&mut self, value: PwrokSignalDelay)
Write the pwrok_signal_delay field of the register.
Delay for the PWROK signal after power-up sequence completion.
Sourcepub fn set_shutdown_time(&mut self, value: PekShutdownTime)
pub fn set_shutdown_time(&mut self, value: PekShutdownTime)
Write the shutdown_time field of the register.
PEK press duration required for shutdown.
Trait Implementations§
Source§impl BitAnd for PekKeyParameters
impl BitAnd for PekKeyParameters
Source§impl BitAndAssign for PekKeyParameters
impl BitAndAssign for PekKeyParameters
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for PekKeyParameters
impl BitOr for PekKeyParameters
Source§impl BitOrAssign for PekKeyParameters
impl BitOrAssign for PekKeyParameters
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXor for PekKeyParameters
impl BitXor for PekKeyParameters
Source§impl BitXorAssign for PekKeyParameters
impl BitXorAssign for PekKeyParameters
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for PekKeyParameters
impl Clone for PekKeyParameters
Source§fn clone(&self) -> PekKeyParameters
fn clone(&self) -> PekKeyParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more