pub fn parse_serial_options(s: &str) -> Result<SerialParameters, String>