2#ifndef __DSY_LOGGER_IMPL_H
3#define __DSY_LOGGER_IMPL_H
26template <LoggerDestination dest>
36 static bool Transmit(
const void* buffer,
size_t bytes) {
return true; }
53 static_assert(1u ==
sizeof(usb_handle_),
"UsbHandle is not static");
59 static bool Transmit(
const void* buffer,
size_t bytes)
62 == usb_handle_.TransmitInternal((uint8_t*)buffer, bytes);
59 static bool Transmit(
const void* buffer,
size_t bytes) {
…}
85 static_assert(1u ==
sizeof(usb_handle_),
"UsbHandle is not static");
91 static bool Transmit(
const void* buffer,
size_t bytes)
94 == usb_handle_.TransmitExternal((uint8_t*)buffer, bytes);
91 static bool Transmit(
const void* buffer,
size_t bytes) {
…}
116 static bool Transmit(
const void* buffer,
size_t bytes)
118 write(STDOUT_FILENO, buffer, bytes);
116 static bool Transmit(
const void* buffer,
size_t bytes) {
…}
Interface for initializing and using the USB Peripherals on the daisy.
Definition usb.h:19
@ FS_EXTERNAL
Definition usb.h:32
@ FS_INTERNAL
Definition usb.h:31
static bool Transmit(const void *buffer, size_t bytes)
Definition logger_impl.h:91
static void Init()
Definition logger_impl.h:80
static UsbHandle usb_handle_
Definition logger_impl.h:100
static void Init()
Definition logger_impl.h:48
static bool Transmit(const void *buffer, size_t bytes)
Definition logger_impl.h:59
static UsbHandle usb_handle_
Definition logger_impl.h:68
static bool Transmit(const void *buffer, size_t bytes)
Definition logger_impl.h:116
static void Init()
Definition logger_impl.h:112
Logging I/O underlying implementation.
Definition logger_impl.h:28
static void Init()
Definition logger_impl.h:32
static bool Transmit(const void *buffer, size_t bytes)
Definition logger_impl.h:36
Hardware defines and helpers for daisy field platform.
Definition index.h:2
LoggerDestination
Definition logger_impl.h:15
@ LOGGER_INTERNAL
Definition logger_impl.h:17
@ LOGGER_EXTERNAL
Definition logger_impl.h:18
@ LOGGER_SEMIHOST
Definition logger_impl.h:19
@ LOGGER_NONE
Definition logger_impl.h:16