diff options
author | 2022-01-06 20:58:34 +0000 | |
---|---|---|
committer | 2022-01-06 20:58:34 +0000 | |
commit | ef049c93808cf46e5151d2cc0b0ca0b00f90be10 (patch) | |
tree | 5c55172847af50512f19b4e67401f8954a3919aa /src | |
parent | e0b93a022d3288e57f4743bf0d548baf78d01b02 (diff) | |
parent | a66e4a6db41533ad12b8a6936d31b80a4d7f015d (diff) | |
download | cortex-m-ef049c93808cf46e5151d2cc0b0ca0b00f90be10.tar.gz cortex-m-ef049c93808cf46e5151d2cc0b0ca0b00f90be10.tar.zst cortex-m-ef049c93808cf46e5151d2cc0b0ca0b00f90be10.zip |
Merge #381
381: TPIU: swo_supports: make struct fields public, improve documentation r=thejpster a=tmplt
A few small changes that I missed the first time around when the TPIU API was expanded.
Co-authored-by: Viktor Sonesten <v@tmplt.dev>
Diffstat (limited to 'src')
-rw-r--r-- | src/peripheral/tpiu.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/peripheral/tpiu.rs b/src/peripheral/tpiu.rs index 3ff5f55..5d2c2bb 100644 --- a/src/peripheral/tpiu.rs +++ b/src/peripheral/tpiu.rs @@ -87,17 +87,18 @@ impl core::convert::TryFrom<u8> 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. - 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 { |