Skip to main content

uart

Function uart 

Source
pub fn uart(rx: &[(Tick, Level)], baud: Option<u32>) -> Vec<Frame>
Expand description

Decode UART frames at baud, or at the inferred baud when None.

The data bits sample at 1.5, 2.5, … bit periods after the start edge and the stop bit at 9.5. Any sample that is not High counts as a zero data bit, so a HighZ line reads as low rather than aborting the frame.