Namespaces | |
namespace | anonymous_namespace{task_function.cpp} |
Classes | |
struct | Task |
Functions | |
std::optional< dcc::Packet > | receive_dcc_packet () |
Receive DCC packet from senddcc string. | |
void | task_function (void *) |
ULF_DCC_EIN receive task function. | |
Variables | |
struct usb::ulf_dcc_ein::Task | task |
std::optional< dcc::Packet > usb::ulf_dcc_ein::receive_dcc_packet | ( | ) |
dcc::Packet | created from senddcc string |
std::nullopt | on timeout |
void usb::ulf_dcc_ein::task_function | ( | void * | ) |
Immediately suspends itself after creation. It's only resumed after usb::rx_task_function receives a "DCC_EIN\r" protocol entry string. Once running scan the CDC character stream for strings with pattern senddcc( [\d0-9a-fA-F]{2})+\r
and transmit the data to out::tx_message_buffer.
struct usb::ulf_dcc_ein::Task usb::ulf_dcc_ein::task |