diff --git a/rp2040-hal/src/pio.rs b/rp2040-hal/src/pio.rs index bd6207a..0f98d76 100644 --- a/rp2040-hal/src/pio.rs +++ b/rp2040-hal/src/pio.rs @@ -301,6 +301,11 @@ impl InstalledProgram

{ self.offset + self.wrap.target } + /// Get the offset the program is installed at. + pub fn offset(&self) -> u8 { + self.offset + } + /// Clones this program handle so that it can be executed by two state machines at the same /// time. ///