[−][src]Struct probe_rs::architecture::arm::ArmCommunicationInterface
Implementations
impl<'interface> ArmCommunicationInterface
[src]
pub fn memory_interface(
&'interface mut self,
access_port: MemoryAP
) -> Result<Memory<'interface>, ProbeRsError>
[src]
&'interface mut self,
access_port: MemoryAP
) -> Result<Memory<'interface>, ProbeRsError>
pub fn write_ap_register<AP, R>(
&mut self,
port: impl Into<AP>,
register: R
) -> Result<(), DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
[src]
&mut self,
port: impl Into<AP>,
register: R
) -> Result<(), DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
Write the given register R
of the given AP
, where the to be written register value
is wrapped in the given register
parameter.
pub fn write_ap_register_repeated<AP, R>(
&mut self,
port: impl Into<AP>,
_register: R,
values: &[u32]
) -> Result<(), DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
[src]
&mut self,
port: impl Into<AP>,
_register: R,
values: &[u32]
) -> Result<(), DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
Write the given register R
of the given AP
repeatedly, where the to be written register
values are stored in the values
array. The values are written in the exact order they are
stored in the array.
pub fn read_ap_register<AP, R>(
&mut self,
port: impl Into<AP>,
_register: R
) -> Result<R, DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
[src]
&mut self,
port: impl Into<AP>,
_register: R
) -> Result<R, DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
Read the given register R
of the given AP
, where the read register value is wrapped in
the given register
parameter.
pub fn read_ap_register_repeated<AP, R>(
&mut self,
port: impl Into<AP>,
_register: R,
values: &mut [u32]
) -> Result<(), DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
[src]
&mut self,
port: impl Into<AP>,
_register: R,
values: &mut [u32]
) -> Result<(), DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
Read the given register R
of the given AP
repeatedly, where the read register values
are stored in the values
array. The values are read in the exact order they are stored in
the array.
impl ArmCommunicationInterface
[src]
pub fn read_from_rom_table(
&mut self
) -> Result<Option<ArmChipInfo>, ProbeRsError>
[src]
&mut self
) -> Result<Option<ArmChipInfo>, ProbeRsError>
Trait Implementations
impl<R> APAccess<GenericAP, R> for ArmCommunicationInterface where
R: APRegister<GenericAP>,
[src]
R: APRegister<GenericAP>,
type Error = DebugProbeError
pub fn read_ap_register(
&mut self,
port: impl Into<GenericAP>,
register: R
) -> Result<R, Self::Error>
[src]
&mut self,
port: impl Into<GenericAP>,
register: R
) -> Result<R, Self::Error>
pub fn write_ap_register(
&mut self,
port: impl Into<GenericAP>,
register: R
) -> Result<(), Self::Error>
[src]
&mut self,
port: impl Into<GenericAP>,
register: R
) -> Result<(), Self::Error>
pub fn write_ap_register_repeated(
&mut self,
port: impl Into<GenericAP>,
register: R,
values: &[u32]
) -> Result<(), Self::Error>
[src]
&mut self,
port: impl Into<GenericAP>,
register: R,
values: &[u32]
) -> Result<(), Self::Error>
pub fn read_ap_register_repeated(
&mut self,
port: impl Into<GenericAP>,
register: R,
values: &mut [u32]
) -> Result<(), Self::Error>
[src]
&mut self,
port: impl Into<GenericAP>,
register: R,
values: &mut [u32]
) -> Result<(), Self::Error>
impl<R> APAccess<MemoryAP, R> for ArmCommunicationInterface where
R: APRegister<MemoryAP>,
[src]
R: APRegister<MemoryAP>,
type Error = DebugProbeError
pub fn read_ap_register(
&mut self,
port: impl Into<MemoryAP>,
register: R
) -> Result<R, Self::Error>
[src]
&mut self,
port: impl Into<MemoryAP>,
register: R
) -> Result<R, Self::Error>
pub fn write_ap_register(
&mut self,
port: impl Into<MemoryAP>,
register: R
) -> Result<(), Self::Error>
[src]
&mut self,
port: impl Into<MemoryAP>,
register: R
) -> Result<(), Self::Error>
pub fn write_ap_register_repeated(
&mut self,
port: impl Into<MemoryAP>,
register: R,
values: &[u32]
) -> Result<(), Self::Error>
[src]
&mut self,
port: impl Into<MemoryAP>,
register: R,
values: &[u32]
) -> Result<(), Self::Error>
pub fn read_ap_register_repeated(
&mut self,
port: impl Into<MemoryAP>,
register: R,
values: &mut [u32]
) -> Result<(), Self::Error>
[src]
&mut self,
port: impl Into<MemoryAP>,
register: R,
values: &mut [u32]
) -> Result<(), Self::Error>
impl<'a> AsMut<dyn DebugProbe + 'a> for ArmCommunicationInterface
[src]
pub fn as_mut(&mut self) -> &mut (dyn DebugProbe + 'a)
[src]
impl<'a> AsRef<dyn DebugProbe + 'a> for ArmCommunicationInterface
[src]
pub fn as_ref(&self) -> &(dyn DebugProbe + 'a)
[src]
impl CommunicationInterface for ArmCommunicationInterface
[src]
pub fn flush(&mut self) -> Result<(), DebugProbeError>
[src]
impl DPAccess for ArmCommunicationInterface
[src]
pub fn read_dp_register<R: DPRegister>(&mut self) -> Result<R, DebugPortError>
[src]
pub fn write_dp_register<R: DPRegister>(
&mut self,
register: R
) -> Result<(), DebugPortError>
[src]
&mut self,
register: R
) -> Result<(), DebugPortError>
impl Debug for ArmCommunicationInterface
[src]
impl SwoAccess for ArmCommunicationInterface
[src]
pub fn enable_swo(&mut self, config: &SwoConfig) -> Result<(), ProbeRsError>
[src]
pub fn disable_swo(&mut self) -> Result<(), ProbeRsError>
[src]
pub fn read_swo_timeout(
&mut self,
timeout: Duration
) -> Result<Vec<u8>, ProbeRsError>
[src]
&mut self,
timeout: Duration
) -> Result<Vec<u8>, ProbeRsError>
pub fn read_swo(&mut self) -> Result<Vec<u8>, Error>
[src]
pub fn swo_poll_interval_hint(&mut self, config: &SwoConfig) -> Option<Duration>
[src]
pub fn swo_buffer_size(&mut self) -> Option<usize>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ArmCommunicationInterface
impl Send for ArmCommunicationInterface
impl Sync for ArmCommunicationInterface
impl Unpin for ArmCommunicationInterface
impl !UnwindSafe for ArmCommunicationInterface
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,