Struct Gpiote
pub struct Gpiote { /* private fields */ }
Expand description
GPIO Tasks and Events 0
Implementations§
§impl Gpiote
impl Gpiote
pub const unsafe fn from_ptr(ptr: *mut ()) -> Gpiote
pub const fn as_ptr(&self) -> *mut ()
pub const fn tasks_out(self, n: usize) -> Reg<u32, W>
pub const fn tasks_out(self, n: usize) -> Reg<u32, W>
Description collection: Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is configured in CONFIG[n].POLARITY.
pub const fn tasks_set(self, n: usize) -> Reg<u32, W>
pub const fn tasks_set(self, n: usize) -> Reg<u32, W>
Description collection: Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it high.
pub const fn tasks_clr(self, n: usize) -> Reg<u32, W>
pub const fn tasks_clr(self, n: usize) -> Reg<u32, W>
Description collection: Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it low.
pub const fn subscribe_out(self, n: usize) -> Reg<Subscribe, RW>
pub const fn subscribe_out(self, n: usize) -> Reg<Subscribe, RW>
Description collection: Subscribe configuration for task OUT[n]
pub const fn subscribe_set(self, n: usize) -> Reg<Subscribe, RW>
pub const fn subscribe_set(self, n: usize) -> Reg<Subscribe, RW>
Description collection: Subscribe configuration for task SET[n]
pub const fn subscribe_clr(self, n: usize) -> Reg<Subscribe, RW>
pub const fn subscribe_clr(self, n: usize) -> Reg<Subscribe, RW>
Description collection: Subscribe configuration for task CLR[n]
pub const fn events_in(self, n: usize) -> Reg<u32, RW>
pub const fn events_in(self, n: usize) -> Reg<u32, RW>
Description collection: Event generated from pin specified in CONFIG[n].PSEL
pub const fn events_port(self) -> Reg<u32, RW>
pub const fn events_port(self) -> Reg<u32, RW>
Event generated from multiple input GPIO pins with SENSE mechanism enabled
pub const fn publish_in(self, n: usize) -> Reg<Publish, RW>
pub const fn publish_in(self, n: usize) -> Reg<Publish, RW>
Description collection: Publish configuration for event IN[n]
pub const fn publish_port(self) -> Reg<Publish, RW>
pub const fn publish_port(self) -> Reg<Publish, RW>
Publish configuration for event PORT
Trait Implementations§
impl Copy for Gpiote
impl Eq for Gpiote
impl Send for Gpiote
impl StructuralPartialEq for Gpiote
impl Sync for Gpiote
Auto Trait Implementations§
impl Freeze for Gpiote
impl RefUnwindSafe for Gpiote
impl Unpin for Gpiote
impl UnwindSafe for Gpiote
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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)
clone_to_uninit
)