[−][src]Struct probe_rs::architecture::arm::swo::SwoConfig
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
Auto Trait Implementations
impl RefUnwindSafe for SwoConfig
impl Send for SwoConfig
impl Sync for SwoConfig
impl Unpin for SwoConfig
impl UnwindSafe for SwoConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,