#[repr(transparent)]pub struct ExtCtrl(pub u32);
Expand description
Configures a gpio as a power mode aware control output
Tuple Fields§
§0: u32
Implementations§
source§impl ExtCtrl
impl ExtCtrl
sourcepub const fn gpio_select(&self) -> u8
pub const fn gpio_select(&self) -> u8
selects from gpio 0->30 set to 31 to disable this feature
sourcepub fn set_gpio_select(&mut self, val: u8)
pub fn set_gpio_select(&mut self, val: u8)
selects from gpio 0->30 set to 31 to disable this feature
pub const fn init(&self) -> bool
pub fn set_init(&mut self, val: bool)
pub const fn init_state(&self) -> bool
pub fn set_init_state(&mut self, val: bool)
sourcepub const fn lp_entry_state(&self) -> bool
pub const fn lp_entry_state(&self) -> bool
output level when entering the low power state
sourcepub fn set_lp_entry_state(&mut self, val: bool)
pub fn set_lp_entry_state(&mut self, val: bool)
output level when entering the low power state
sourcepub const fn lp_exit_state(&self) -> bool
pub const fn lp_exit_state(&self) -> bool
output level when exiting the low power state
sourcepub fn set_lp_exit_state(&mut self, val: bool)
pub fn set_lp_exit_state(&mut self, val: bool)
output level when exiting the low power state
Trait Implementations§
impl Copy for ExtCtrl
impl Eq for ExtCtrl
impl StructuralPartialEq for ExtCtrl
Auto Trait Implementations§
impl Freeze for ExtCtrl
impl RefUnwindSafe for ExtCtrl
impl Send for ExtCtrl
impl Sync for ExtCtrl
impl Unpin for ExtCtrl
impl UnwindSafe for ExtCtrl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)