USB transmit task function. More...
#include "tx_task_function.hpp"
#include <tinyusb.h>
#include <tusb_cdc_acm.h>
#include <array>
#include <span>
#include <string_view>
#include "log.h"
Namespaces | |
namespace | usb |
namespace | usb::anonymous_namespace{tx_task_function.cpp} |
Functions | |
void | usb::transmit_ok () |
Transmit "OK\r" to the CDC device queue. | |
void | usb::transmit_not_ok () |
Transmit "NOT OK\r" to the CDC device queue. | |
size_t | usb::anonymous_namespace{tx_task_function.cpp}::receive (std::span< uint8_t > stack) |
Receive data from usb::tx_stream_buffer and copy it to the stack. | |
void | usb::anonymous_namespace{tx_task_function.cpp}::transmit (std::span< uint8_t const > stack) |
Transmit data to the CDC device queue. | |
void | usb::anonymous_namespace{tx_task_function.cpp}::flush () |
Flush CDC device. | |
void | usb::tx_task_function (void *) |
USB transmit task function. | |