Skip to content

daisy::LoggerImpl< LOGGER_EXTERNAL >

Specialization for external USB port.

#include <logger_impl.h>

Public Functions

Name
void Init()
bool Transmit(const void * buffer, size_t bytes)

Protected Attributes

Name
UsbHandle usb_handle_

Public Functions Documentation

function Init

static inline void Init()

Initialize logging destination

this implementation relies on the fact that UsbHandle class has no member variables and can be shared. assert this statement:


function Transmit

static inline bool Transmit(
    const void * buffer,
    size_t bytes
)

Transmit a block of data


Protected Attributes Documentation

variable usb_handle_

static UsbHandle usb_handle_;

USB Handle for CDC transfers


Updated on 2024-01-03 at 19:41:00 +0000