Crate itm_decode

Source
Expand description

A decoder for the ITM and DWT packet protocol as specifed in the ARMv7-M architecture reference manual, Appendix D4. Any references in this code base refers to this document.

Common abbreviations:

  • ITM: instrumentation trace macrocell;
  • PC: program counter;
  • DWT: data watchpoint and trace unit;
  • MSB: most significant bit;
  • BE: big-endian;

Modules§

cortex_m
Re-exports for exception types of the cortex-m crate for serde purposes.

Structs§

Decoder
ITM and DWT packet protocol decoder.
DecoderOptions
Timestamp
Combined timestamp generated from local and global timestamp packets. Field values relate to the target’s global timestamp clock. See (Appendix C1, page 713).
TimestampedTracePackets
Association between a set of TracePackets and their Timestamp.

Enums§

ExceptionAction
Denotes the action taken by the processor by a given exception. (Table D4-6)
MalformedPacket
A header or payload byte failed to be decoded.
MemoryAccessType
Denotes the type of memory access.
TimestampDataRelation
Indicates the relationship between the generation of the local timestamp packet and the corresponding ITM or DWT data packet. (Appendix D4.2.4)
TracePacket
The set of valid packet types that can be decoded.