We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c3173f commit 34ff684Copy full SHA for 34ff684
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
pub fn configure(&mut self, settings: ITMSettings) -> Result<(), ITMConfigurationError> {
0 commit comments