pub struct Gpiote { /* private fields */ }
Expand description
GPIO Tasks and Events 0
Implementations§
Source§impl Gpiote
impl Gpiote
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub 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.
Sourcepub 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.
Sourcepub 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.
Sourcepub 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]
Sourcepub 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]
Sourcepub 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]
Sourcepub const fn events_in(self, n: usize) -> Reg<u32, RW>
pub const fn events_in(self, n: usize) -> Reg<u32, RW>
Description collection: Event from pin specified in CONFIG[n].PSEL
Sourcepub const fn events_port(self, n: usize) -> EventsPort
pub const fn events_port(self, n: usize) -> EventsPort
Peripheral events.
Sourcepub 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]
Sourcepub const fn publish_port(self, n: usize) -> PublishPort
pub const fn publish_port(self, n: usize) -> PublishPort
Publish configuration for events
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
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
)