[][src]Struct probe_rs::architecture::arm::ArmCommunicationInterface

pub struct ArmCommunicationInterface<'probe> { /* fields omitted */ }

Implementations

impl<'probe> ArmCommunicationInterface<'probe>[src]

pub fn new(
    probe: &'probe mut Probe,
    state: &'probe mut ArmCommunicationInterfaceState
) -> Result<Option<Self>, DebugProbeError>
[src]

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]

pub fn write_ap_register<AP, R>(
    &mut self,
    port: AP,
    register: R
) -> Result<(), DebugProbeError> where
    AP: AccessPort,
    R: APRegister<AP>, 
[src]

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]

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]

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]

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]

type Error = DebugProbeError

impl<'probe, R> APAccess<MemoryAP, R> for ArmCommunicationInterface<'probe> where
    R: APRegister<MemoryAP>, 
[src]

type Error = DebugProbeError

impl<'probe> CommunicationInterface for ArmCommunicationInterface<'probe>[src]

impl<'probe> DPAccess for ArmCommunicationInterface<'probe>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.