#[repr(transparent)]pub struct W05(pub u32);Expand description
Word pin registers for all port GPIO pins
Tuple Fields§
§0: u32Implementations§
Source§impl W05
impl W05
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 W05
impl Eq for W05
impl StructuralPartialEq for W05
Auto Trait Implementations§
impl Freeze for W05
impl RefUnwindSafe for W05
impl Send for W05
impl Sync for W05
impl Unpin for W05
impl UnwindSafe for W05
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