1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::{
architecture::arm::{communication_interface::Initialized, ArmCommunicationInterface},
DebugProbeError, Error,
};
/// A helper trait to get more specific interfaces.
pub trait CommunicationInterface {
/// Flush all remaining commands if the target driver implements batching.
fn flush(&mut self) -> Result<(), DebugProbeError>;
/// Tries to get the underlying [`ArmCommunicationInterface`].
fn get_arm_communication_interface(
&mut self,
) -> Result<&mut ArmCommunicationInterface<Initialized>, Error>;
}