Trait rp6::uart::SerialWritableHexadecimal
source · pub trait SerialWritableHexadecimal: uDisplayHex {
type HexadecimalString: StringType;
// Provided method
fn write_to_serial_as_hex(&self) { ... }
}
Expand description
Trait to allow implementing specific Serial::write_hex
behavior for types.
Required Associated Types§
Provided Methods§
sourcefn write_to_serial_as_hex(&self)
fn write_to_serial_as_hex(&self)
Format the given number as hexadecimal and write it to the Serial
connection.