Struct drone_cortexm::swo::Port[][src]

pub struct Port { /* fields omitted */ }

ITM stimulus port handle.

Implementations

impl Port[src]

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

Creates a new ITM stimulus port handle.

Panics

If port is more than or equal to PORTS_COUNT.

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

Writes a sequence of bytes to the ITM stimulus port.

The resulting byte sequence that will be read from the port may be interleaved with concurrent writes. See also Port::write for writing atomic byte sequences.

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

Writes an atomic byte sequence to the ITM stimulus port. T can be one of u8, u16, u32.

Bytes are written in big-endian order. It’s guaranteed that all bytes of value will not be split.

Trait Implementations

impl Clone for Port[src]

impl Copy for Port[src]

impl Write for Port[src]

Auto Trait Implementations

impl Send for Port

impl Sync for Port

impl Unpin for Port

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> Same<T> for T[src]

type Output = T

Should always be Self

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.