Interface for simple USB logging.
More...
Interface for simple USB logging.
- Author
- Alexander Petrov-Savchenko (axp@s.nosp@m.oft-.nosp@m.amp.c.nosp@m.om)
- Date
- November 2020
Simple Example:
int main(void)
{
while(1) {}
}
This is the higher-level interface for the Daisy board. All basic peripheral configuration/initiali...
Definition daisy_seed.h:19
static void StartLog(bool wait_for_pc=false)
Definition daisy_seed.h:133
void Init(bool boost=false)
static void PrintLine(const char *format, VA... va)
Definition daisy_seed.h:126
Hardware defines and helpers for daisy field platform.
Definition index.h:2
#include <logger.h>
|
static void | Print (const char *format,...) |
|
static void | PrintLine (const char *format,...) |
|
static void | StartLog (bool wait_for_pc=false) |
|
static void | PrintV (const char *format, va_list va) |
|
static void | PrintLineV (const char *format, va_list va) |
|
◆ LoggerConsts
Internal constants
Enumerator |
---|
LOGGER_SYNC_OUT | |
LOGGER_SYNC_IN | successfully transmit this many packets before switching to blocking transfers
|
◆ Logger()
◆ AppendNewLine()
Trim control characters and append clean newline sequence, if there's room in the buffer
◆ NewLineSeqLength()
static constexpr size_t daisy::Logger< dest >::NewLineSeqLength |
( |
| ) |
|
|
inlinestaticconstexprprotected |
Constexpr function equivalent of strlen(LOGGER_NEWLINE)
< custom newline character sequence
◆ Print()
static void daisy::Logger< dest >::Print |
( |
const char * | format, |
|
|
| ... ) |
|
static |
◆ PrintLine()
static void daisy::Logger< dest >::PrintLine |
( |
const char * | format, |
|
|
| ... ) |
|
static |
Print formatted string appending line termination sequence
◆ PrintLineV()
static void daisy::Logger< dest >::PrintLineV |
( |
const char * | format, |
|
|
va_list | va ) |
|
static |
◆ PrintV()
static void daisy::Logger< dest >::PrintV |
( |
const char * | format, |
|
|
va_list | va ) |
|
static |
Variadic argument variant of Print()
◆ StartLog()
static void daisy::Logger< dest >::StartLog |
( |
bool | wait_for_pc = false | ) |
|
|
static |
Start the logging session.
- Parameters
-
wait_for_pc | block until remote terminal is ready |
◆ TransmitBuf()
Transfer accumulated data
◆ TransmitSync()
static void daisy::Logger< dest >::TransmitSync |
( |
const void * | buffer, |
|
|
size_t | bytes ) |
|
inlinestaticprotected |
Blocking wrapper for Transmit()
The documentation for this class was generated from the following file: