We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 622a9b7 commit c77e175Copy full SHA for c77e175
src/peripheral/itm.rs
@@ -196,6 +196,13 @@ impl ITM {
196
unsafe { self.lar.write(0xC5AC_CE55) }
197
}
198
199
+ /// Indicates whether the ITM is currently processing events.
200
+ /// Returns `true` if ITM events are present and are being drained.
201
+ #[inline]
202
+ pub fn busy(&self) -> bool {
203
+ self.tcr.read().busy()
204
+ }
205
+
206
/// Configures the ITM with the passed [ITMSettings]. Returns `true`
207
/// if the configuration was successfully applied.
208
#[allow(clippy::missing_inline_in_public_items)]
0 commit comments