Skip to content

Commit

Permalink
Add accessor for installed pio program offset (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenax authored Jun 5, 2022
1 parent ed7148a commit 9bce594
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rp2040-hal/src/pio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,11 @@ impl<P: PIOExt> InstalledProgram<P> {
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.
///
Expand Down

0 comments on commit 9bce594

Please sign in to comment.