Searched refs:UartOption (Results 1 – 1 of 1) sorted by relevance
35 pub enum UartOption { enum43 impl TryFrom<u8> for UartOption { implementation464 let ret = (option & UartOption::Ack as u8) | (option & UartOption::Nak as u8); in is_response()472 if option & (UartOption::Free as u16) != 0 { in on_read_head()480 pkg.status = if option & (UartOption::Ack as u16) > 1 { in on_read_head()489 uart::build_header_obj(session_id, UartOption::Ack as u16, 0, package_index); in on_read_head()494 output_package(session_id, true, UartOption::Ack as u8, package_index, data).await; in on_read_head()540 op = UartOption::Tail as u8 | option; in wrap_put()558 (op & UartOption::Ack as u8) > 0, in wrap_put()