[−][src]Struct probe_rs::architecture::arm::ArmCommunicationInterface
Implementations
impl<'probe> ArmCommunicationInterface<'probe>
[src]
pub fn new(
probe: &'probe mut Probe,
state: &'probe mut ArmCommunicationInterfaceState
) -> Result<Option<Self>, DebugProbeError>
[src]
probe: &'probe mut Probe,
state: &'probe mut ArmCommunicationInterfaceState
) -> Result<Option<Self>, DebugProbeError>
pub fn reborrow(&mut self) -> ArmCommunicationInterface
[src]
Reborrows the ArmCommunicationInterface
at hand.
This borrows the references inside the interface and hands them out with a new interface.
This method replaces the normally called ::clone()
method which consumes the object,
which is not what we want.
pub fn dedicated_memory_interface(
&self
) -> Result<Option<Memory>, DebugProbeError>
[src]
&self
) -> Result<Option<Memory>, DebugProbeError>
pub fn write_ap_register<AP, R>(
&mut self,
port: AP,
register: R
) -> Result<(), DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
[src]
&mut self,
port: 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: AP,
_register: R,
values: &[u32]
) -> Result<(), DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
[src]
&mut self,
port: 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: AP,
_register: R
) -> Result<R, DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
[src]
&mut self,
port: 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: AP,
_register: R,
values: &mut [u32]
) -> Result<(), DebugProbeError> where
AP: AccessPort,
R: APRegister<AP>,
[src]
&mut self,
port: 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.
Trait Implementations
impl<'probe, R> APAccess<GenericAP, R> for ArmCommunicationInterface<'probe> where
R: APRegister<GenericAP>,
[src]
R: APRegister<GenericAP>,
type Error = DebugProbeError
fn read_ap_register(
&mut self,
port: GenericAP,
register: R
) -> Result<R, Self::Error>
[src]
&mut self,
port: GenericAP,
register: R
) -> Result<R, Self::Error>
fn write_ap_register(
&mut self,
port: GenericAP,
register: R
) -> Result<(), Self::Error>
[src]
&mut self,
port: GenericAP,
register: R
) -> Result<(), Self::Error>
fn write_ap_register_repeated(
&mut self,
port: GenericAP,
register: R,
values: &[u32]
) -> Result<(), Self::Error>
[src]
&mut self,
port: GenericAP,
register: R,
values: &[u32]
) -> Result<(), Self::Error>
fn read_ap_register_repeated(
&mut self,
port: GenericAP,
register: R,
values: &mut [u32]
) -> Result<(), Self::Error>
[src]
&mut self,
port: GenericAP,
register: R,
values: &mut [u32]
) -> Result<(), Self::Error>
impl<'probe, R> APAccess<MemoryAP, R> for ArmCommunicationInterface<'probe> where
R: APRegister<MemoryAP>,
[src]
R: APRegister<MemoryAP>,
type Error = DebugProbeError
fn read_ap_register(
&mut self,
port: MemoryAP,
register: R
) -> Result<R, Self::Error>
[src]
&mut self,
port: MemoryAP,
register: R
) -> Result<R, Self::Error>
fn write_ap_register(
&mut self,
port: MemoryAP,
register: R
) -> Result<(), Self::Error>
[src]
&mut self,
port: MemoryAP,
register: R
) -> Result<(), Self::Error>
fn write_ap_register_repeated(
&mut self,
port: MemoryAP,
register: R,
values: &[u32]
) -> Result<(), Self::Error>
[src]
&mut self,
port: MemoryAP,
register: R,
values: &[u32]
) -> Result<(), Self::Error>
fn read_ap_register_repeated(
&mut self,
port: MemoryAP,
register: R,
values: &mut [u32]
) -> Result<(), Self::Error>
[src]
&mut self,
port: MemoryAP,
register: R,
values: &mut [u32]
) -> Result<(), Self::Error>
impl<'probe> CommunicationInterface for ArmCommunicationInterface<'probe>
[src]
fn probe_for_chip_info(self) -> Result<Option<ChipInfo>, ProbeRsError>
[src]
impl<'probe> DPAccess for ArmCommunicationInterface<'probe>
[src]
fn read_dp_register<R: DPRegister>(&mut self) -> Result<R, DebugPortError>
[src]
fn write_dp_register<R: DPRegister>(
&mut self,
register: R
) -> Result<(), DebugPortError>
[src]
&mut self,
register: R
) -> Result<(), DebugPortError>
impl<'probe> Debug for ArmCommunicationInterface<'probe>
[src]
Auto Trait Implementations
impl<'probe> !RefUnwindSafe for ArmCommunicationInterface<'probe>
impl<'probe> Send for ArmCommunicationInterface<'probe>
impl<'probe> Sync for ArmCommunicationInterface<'probe>
impl<'probe> Unpin for ArmCommunicationInterface<'probe>
impl<'probe> !UnwindSafe for ArmCommunicationInterface<'probe>
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,
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.
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>,