[][src]Enum probe_rs::architecture::arm::swo::TracePacket

pub enum TracePacket {
    Sync,
    Overflow,
    TimeStamp {
        tc: usize,
        ts: usize,
    },
    ItmData {
        id: usize,
        payload: Vec<u8>,
    },
    EventCounterWrapping {
        cyc: bool,
        fold: bool,
        lsu: bool,
        sleep: bool,
        exc: bool,
        cpi: bool,
    },
    ExceptionTrace {
        exception: ExceptionType,
        action: ExceptionAction,
    },
    PcSample {
        pc: u32,
    },
    PcTrace {
        id: usize,
        value: u32,
    },
    MemoryTrace {
        id: usize,
        access_type: MemoryAccessType,
        value: u32,
    },
    AddressTrace {
        id: usize,
        address: u16,
    },
}

Variants

Sync

A sync package to enable synchronization in the byte stream.

Overflow
TimeStamp

Fields of TimeStamp

tc: usizets: usize
ItmData

ITM trace data.

Fields of ItmData

id: usizepayload: Vec<u8>
EventCounterWrapping

Signalizes that an event counter wrapped. This can happen for underflowing or overflowing counters. Multiple bits can be set. If two wraps of the same counter happen in quick succession, the core MUST generate two separate packets.

Fields of EventCounterWrapping

cyc: bool

POSTCNT wrap.

fold: bool

FOLDCNT wrap.

lsu: bool

LSUCNT wrap.

sleep: bool

SLEEPCNT wrap.

exc: bool

EXCCNT wrap.

cpi: bool

CPICNT wrap.

ExceptionTrace

Signalizes that an exception(interrupt) happended.

Fields of ExceptionTrace

exception: ExceptionTypeaction: ExceptionAction
PcSample

Notifies about a new PC sample.

Fields of PcSample

pc: u32
PcTrace

Signalizes that a new data trace event was received.

Fields of PcTrace

id: usize

The id of the DWT unit.

value: u32
MemoryTrace

Signalizes that a memory access happened. This can contain an u8, u16 or u32 value.

Fields of MemoryTrace

id: usize

The id of the DWT unit.

access_type: MemoryAccessTypevalue: u32
AddressTrace

Fields of AddressTrace

id: usize

The id of the DWT unit.

address: u16

Trait Implementations

impl Clone for TracePacket[src]

impl Debug for TracePacket[src]

impl<'de> Deserialize<'de> for TracePacket[src]

impl PartialEq<TracePacket> for TracePacket[src]

impl Serialize for TracePacket[src]

impl StructuralPartialEq for TracePacket[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.