#[repr(transparent)]pub struct W016(pub u32);Expand description
Word pin registers for all port GPIO pins
Tuple Fields§
§0: u32Implementations§
Source§impl W016
impl W016
Sourcepub const fn pword(&self) -> u32
pub const fn pword(&self) -> u32
Read 0: pin PIOm_n is LOW. Write 0: clear output bit. Read 0xFFFF FFFF: pin PIOm_n is HIGH. Write any value 0x0000 0001 to 0xFFFF FFFF: set output bit. Only 0 or 0xFFFF FFFF can be read. Writing any value other than 0 will set the output bit. One register for each port pin. Supported pins depends on the specific device and package.
Sourcepub const fn set_pword(&mut self, val: u32)
pub const fn set_pword(&mut self, val: u32)
Read 0: pin PIOm_n is LOW. Write 0: clear output bit. Read 0xFFFF FFFF: pin PIOm_n is HIGH. Write any value 0x0000 0001 to 0xFFFF FFFF: set output bit. Only 0 or 0xFFFF FFFF can be read. Writing any value other than 0 will set the output bit. One register for each port pin. Supported pins depends on the specific device and package.
Trait Implementations§
impl Copy for W016
impl Eq for W016
impl StructuralPartialEq for W016
Auto Trait Implementations§
impl Freeze for W016
impl RefUnwindSafe for W016
impl Send for W016
impl Sync for W016
impl Unpin for W016
impl UnwindSafe for W016
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