From 222d9c98cd6e71ed6dceeaf3343592094ba0d6d5 Mon Sep 17 00:00:00 2001 From: Viktor Sonesten Date: Tue, 4 Jan 2022 11:22:45 +0100 Subject: tpiu: make SWOSupports fields public --- src/peripheral/tpiu.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/peripheral/tpiu.rs b/src/peripheral/tpiu.rs index 3ff5f55..c098d36 100644 --- a/src/peripheral/tpiu.rs +++ b/src/peripheral/tpiu.rs @@ -91,13 +91,13 @@ impl core::convert::TryFrom for TraceProtocol { #[derive(Debug, Eq, PartialEq, Copy, Clone)] pub struct SWOSupports { /// Whether UART/NRZ encoding is supported for SWO. - nrz_encoding: bool, + pub nrz_encoding: bool, /// Whether Manchester encoding is supported for SWO. - manchester_encoding: bool, + pub manchester_encoding: bool, /// Whether parallel trace port operation is supported. - parallel_operation: bool, + pub parallel_operation: bool, /// The minimum implemented FIFO queue size of the TPIU for trace data. - min_queue_size: u8, + pub min_queue_size: u8, } impl TPIU { -- cgit v1.2.3 From a66e4a6db41533ad12b8a6936d31b80a4d7f015d Mon Sep 17 00:00:00 2001 From: Viktor Sonesten Date: Tue, 4 Jan 2022 11:32:31 +0100 Subject: TPIU: improve SWOSupports documentation --- src/peripheral/tpiu.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/peripheral/tpiu.rs b/src/peripheral/tpiu.rs index c098d36..5d2c2bb 100644 --- a/src/peripheral/tpiu.rs +++ b/src/peripheral/tpiu.rs @@ -87,7 +87,8 @@ impl core::convert::TryFrom for TraceProtocol { } } -/// The SWO options supported by the TPIU. +/// The SWO options supported by the TPIU, and the mimimum size of the +/// FIFO output queue for trace data. #[derive(Debug, Eq, PartialEq, Copy, Clone)] pub struct SWOSupports { /// Whether UART/NRZ encoding is supported for SWO. -- cgit v1.2.3