Function kernel::services::serial_mux::try_decode
source ยท fn try_decode(buffer: &mut [u8]) -> Option<(u16, &[u8])>
Expand description
Tries to decode a port and message from the given buffer
Either way, you should probably clear the buffer when you are done.