diff options
Diffstat (limited to 'embassy-nrf/src')
| -rw-r--r-- | embassy-nrf/src/gpiote.rs | 5 |
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(); |
