[][src]Struct probe_rs::architecture::arm::swo::SwoConfig

pub struct SwoConfig { /* fields omitted */ }

Implementations

impl SwoConfig[src]

pub fn new(tpiu_clk: u32) -> Self[src]

Create a new SwoConfig using the specified TPIU clock in Hz.

By default the UART mode is used at 1MBd and TPIU continuous formatting is disabled (DWT/ITM only).

pub fn set_baud(self, baud: u32) -> Self[src]

Set the baud rate in Hz.

pub fn set_mode(self, mode: SwoMode) -> Self[src]

Set the mode in this SwoConfig.

pub fn set_mode_uart(self) -> Self[src]

Set the mode to UART

pub fn set_mode_manchester(self) -> Self[src]

Set the mode to Manchester

pub fn set_continuous_formatting(self, enabled: bool) -> Self[src]

Set the TPIU continuous formatting setting.

pub fn mode(&self) -> SwoMode[src]

pub fn baud(&self) -> u32[src]

pub fn tpiu_clk(&self) -> u32[src]

pub fn tpiu_continuous_formatting(&self) -> bool[src]

Trait Implementations

impl Clone for SwoConfig[src]

impl Copy for SwoConfig[src]

impl Debug for SwoConfig[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> 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.