Struct drone_cortexm::swo::Port [−][src]
ITM stimulus port handle.
Implementations
impl Port
[src]
pub fn new(address: u8) -> Self
[src]
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]
fn clone(&self) -> Port
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Port
[src]
impl Write for Port
[src]
Auto Trait Implementations
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,
pub 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> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,