Firmware  0.0.0
Loading...
Searching...
No Matches
usb::ulf_dcc_ein Namespace Reference

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
 

Function Documentation

◆ receive_dcc_packet()

std::optional< dcc::Packet > usb::ulf_dcc_ein::receive_dcc_packet ( )
Return values
dcc::Packetcreated from senddcc string
std::nullopton timeout

◆ task_function()

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.

Variable Documentation

◆ task

struct usb::ulf_dcc_ein::Task usb::ulf_dcc_ein::task