[][src]Struct drone_cortex_m::itm::Port

pub struct Port { /* fields omitted */ }
[]

ITM stimulus port handler.

Methods

impl Port[src][]

pub fn new(address: usize) -> Self[src][]

Creates a new ITM stimulus port handler.

Panics

If port is out of bounds.

pub fn write_bytes(self, bytes: &[u8])[src][]

Writes bytes to the stimulus port.

pub fn write<T: Integer>(self, value: T) -> Self[src][]

Writes value of type u8, u16 or u32 to the stimulus port.

This method could be chained.

Trait Implementations

impl Copy for Port[src]

impl Write for Port[src][+]

impl Clone for Port[src][+]

Auto Trait Implementations

impl Unpin for Port

impl Send for Port

impl Sync for Port

Blanket Implementations

impl<T> From<T> for T[src][+]

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> Into<U> for T where
    U: From<T>, 
[src][+]

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> ToOwned for T where
    T: Clone
[src][+]

type Owned = T

The resulting type after obtaining ownership.