aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src
diff options
context:
space:
mode:
authorMaarten de Vries <[email protected]>2025-10-23 16:43:55 +0200
committerMaarten de Vries <[email protected]>2025-10-23 16:45:29 +0200
commit836d491a37094439f8bf3da3ceae075c8dbc221c (patch)
treecdcafb4459b25081c092777150a732107def3574 /embassy-nrf/src
parent280088946f9da3ea3c1ece4f7e73d585fc681893 (diff)
embassy-nrf: allow direct access to the `gpiote::InputChannel` input pin
Diffstat (limited to 'embassy-nrf/src')
-rw-r--r--embassy-nrf/src/gpiote.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs
index a490d5b60..61162b87f 100644
--- a/embassy-nrf/src/gpiote.rs
+++ b/embassy-nrf/src/gpiote.rs
@@ -259,6 +259,11 @@ impl<'d> InputChannel<'d> {
259 .await; 259 .await;
260 } 260 }
261 261
262 /// Get the associated input pin.
263 pub fn pin(&self) -> &Input<'_> {
264 &self.pin
265 }
266
262 /// Returns the IN event, for use with PPI. 267 /// Returns the IN event, for use with PPI.
263 pub fn event_in(&self) -> Event<'d> { 268 pub fn event_in(&self) -> Event<'d> {
264 let g = regs(); 269 let g = regs();