Class daisy::Logger< LOGGER_NONE >¶
template <>
ClassList > daisy > Logger< LOGGER_NONE >
#include <logger.h>
Public Functions¶
| Type | Name |
|---|---|
| Logger () |
Public Static Functions¶
| Type | Name |
|---|---|
| std::enable_if_t< D==LOGGER_UART > | Configure (const LoggerImpl< LOGGER_UART >::Config cfg) |
| void | Print (const char * format, ...) |
| void | PrintLine (const char * format, ...) |
| void | PrintLineV (const char * format, va_list va) |
| void | PrintV (const char * format, va_list va) |
| void | StartLog (bool wait_for_pc=false) |
Protected Types¶
| Type | Name |
|---|---|
| enum | LoggerConsts |
Protected Static Attributes¶
| Type | Name |
|---|---|
| LoggerImpl< dest > | impl_ |
| size_t | pc_sync_ |
| char | tx_buff_ |
| size_t | tx_ptr_ |
Protected Static Functions¶
| Type | Name |
|---|---|
| void | AppendNewLine () |
| size_t | NewLineSeqLength () |
| void | TransmitBuf () |
| void | TransmitSync (const void * buffer, size_t bytes) |
Detailed Description¶
Specialization for a muted log
Public Functions Documentation¶
function Logger¶
Public Static Functions Documentation¶
function Configure¶
static inline std::enable_if_t< D== LOGGER_UART > daisy::Logger< LOGGER_NONE >::Configure (
const LoggerImpl < LOGGER_UART >::Config cfg
)
Configuration specialization for UART Logging Only available for UART logger.
function Print¶
function PrintLine¶
function PrintLineV¶
function PrintV¶
function StartLog¶
Protected Types Documentation¶
enum LoggerConsts¶
Internal constants
Protected Static Attributes Documentation¶
variable impl_¶
underlying trasnfer implementation
variable pc_sync_¶
terminal synchronization state
variable tx_buff_¶
member variables buffer for log data
variable tx_ptr_¶
current position in the buffer
Protected Static Functions Documentation¶
function AppendNewLine¶
Trim control characters and append clean newline sequence, if there's room in the buffer
function NewLineSeqLength¶
Constexpr function equivalent of strlen(LOGGER_NEWLINE)
function TransmitBuf¶
Transfer accumulated data
function TransmitSync¶
Blocking wrapper for Transmit()
The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/logger.h