[][src]Struct probe_rs::probe::daplink::commands::transfer::TransferRequest

pub struct TransferRequest {
    pub dap_index: u8,
    pub transfer_count: u8,
    pub transfer_request: InnerTransferRequest,
    pub transfer_data: u32,
}

Read/write single and multiple registers.

The DAP_Transfer Command reads or writes data to CoreSight registers. Each CoreSight register is accessed with a single 32-bit read or write. The CoreSight registers are addressed with DPBANKSEL/APBANKSEL and address lines A2, A3 (A0 = 0 and A1 = 0). This command executes several read/write operations on the selected DP/AP registers. The Transfer Data in the Response are in the order of the Transfer Request in the Command but might be shorter in case of communication failures. The data transfer is aborted on a communication error:

  • Protocol Error
  • Target FAULT response
  • Target WAIT responses exceed configured value
  • Value Mismatch (Read Register with Value Match)

Fields

dap_index: u8

Zero based device index of the selected JTAG device. For SWD mode the value is ignored.

transfer_count: u8

Number of transfers: 1 .. 255. For each transfer a Transfer Request BYTE is sent. Depending on the request an additional Transfer Data WORD is sent.

transfer_request: InnerTransferRequest

Contains information about requested access from host debugger.

transfer_data: u32

Methods

impl TransferRequest[src]

pub fn new(transfer_request: InnerTransferRequest, data: u32) -> Self[src]

Trait Implementations

impl Debug for TransferRequest[src]

Auto Trait Implementations

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.