pub fn write_aligned(port: &mut Stim, buffer: &Aligned<[u8]>)
Expand description

Writes a 4-byte aligned buffer to an ITM port.

Examples

let mut buffer = Aligned([0; 14]);

buffer.0.copy_from_slice(b"Hello, world!\n");

itm::write_aligned(port, &buffer);

// Or equivalently
itm::write_aligned(port, &Aligned(*b"Hello, world!\n"));