Add accessor for installed pio program offset (#355)

This commit is contained in:
Kasil 2022-06-05 13:56:46 +02:00 committed by GitHub
parent ed7148a1e7
commit 9bce594db2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.
///