diff --git a/src/device.rs b/src/device.rs index 5eae9c9..195b85b 100644 --- a/src/device.rs +++ b/src/device.rs @@ -919,6 +919,11 @@ impl RxStream { } } + /// Fetch the active state of the stream. + pub fn active(&self) -> bool { + self.active + } + // TODO: activate_burst() /// Deactivate a stream. @@ -1026,6 +1031,11 @@ impl TxStream { } } + /// Fetch the active state of the stream. + pub fn active(&self) -> bool { + self.active + } + /// Deactivate a stream. /// The implementation will control switches or halt data flow. ///