MCU-Common
Modules useful for embedded (MCU) programming
|
Logger instance. More...
#include <logger.h>
Data Fields | |
void(* | write_cb )(const char *str, size_t length) |
Pointer to write callback implemented by driver. More... | |
struct fifo * | fifo |
Pointer to fifo instance for storing logger_entry entries. More... | |
char * | str |
Pointer to a buffer used to store string composed by sprintf . More... | |
size_t | str_size |
Size of the string buffer. More... | |
bool | initialized |
Logger initialized flag (handled internally) More... | |
Logger instance.
void(* write_cb) (const char *str, size_t length) |
Pointer to write callback implemented by driver.
The callback is called from logger_process() during deferred processing. The callback provides the driver with a string which is supposed to be written to the output interface (e.g. serial port).
[in] | str | Pointer to the string to be written (formatted by sprintf ), not null-terminated |
length | Count of characters to be written |
Pointer to fifo instance for storing logger_entry entries.
char* str |
Pointer to a buffer used to store string composed by sprintf
.
size_t str_size |
Size of the string buffer.
bool initialized |
Logger initialized flag (handled internally)