Struct hpm_metapac::gpio::regs::DoValue
#[repr(transparent)]pub struct DoValue(pub u32);
Expand description
GPIO output value.
Tuple Fields§
§0: u32
Implementations§
§impl DoValue
impl DoValue
pub const fn output(&self) -> u32
pub const fn output(&self) -> u32
GPIO output register value, each bit represents a bus bit 0: chip pin output low level when direction is output 1: chip pin output high level when direction is output.
pub fn set_output(&mut self, val: u32)
pub fn set_output(&mut self, val: u32)
GPIO output register value, each bit represents a bus bit 0: chip pin output low level when direction is output 1: chip pin output high level when direction is output.
Trait Implementations§
impl Copy for DoValue
impl Eq for DoValue
impl StructuralPartialEq for DoValue
Auto Trait Implementations§
impl Freeze for DoValue
impl RefUnwindSafe for DoValue
impl Send for DoValue
impl Sync for DoValue
impl Unpin for DoValue
impl UnwindSafe for DoValue
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
)