We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a2ab27 commit e1a84c7Copy full SHA for e1a84c7
src/peripheral/itm.rs
@@ -204,6 +204,13 @@ impl ITM {
204
unsafe { self.lar.write(0xC5AC_CE55) }
205
}
206
207
+ /// Indicates whether the ITM is currently processing events.
208
+ /// Returns `true` if ITM events are present and are being drained.
209
+ #[inline]
210
+ pub fn busy(&self) -> bool {
211
+ self.tcr.read().busy()
212
+ }
213
+
214
/// Configures the ITM with the passed [ITMSettings]. Returns `true`
215
/// if the configuration was successfully applied.
216
#[allow(clippy::missing_inline_in_public_items)]
0 commit comments