7#ifndef SHELL_FPRINTF_H__
8#define SHELL_FPRINTF_H__
47#define Z_SHELL_FPRINTF_DEFINE(_name, _user_ctx, _buf, _size, \
48 _autoflush, _fwrite) \
49 static struct shell_fprintf_control_block \
50 _name##_shell_fprintf_ctx = { \
51 .autoflush = _autoflush, \
54 static const struct shell_fprintf _name = { \
56 .buffer_size = _size, \
58 .user_ctx = _user_ctx, \
59 .ctrl_blk = &_name##_shell_fprintf_ctx \
69void z_shell_fprintf_fmt(
const struct shell_fprintf *sh_fprintf,
70 char const *fmt, va_list args);
77void z_shell_fprintf_buffer_flush(
const struct shell_fprintf *sh_fprintf);
void(* shell_fprintf_fwrite)(const void *user_ctx, const char *data, size_t length)
Definition shell_fprintf.h:18
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Definition shell_fprintf.h:22
size_t buffer_cnt
Definition shell_fprintf.h:23
bool autoflush
Definition shell_fprintf.h:24
fprintf context
Definition shell_fprintf.h:29
size_t buffer_size
Definition shell_fprintf.h:31
struct shell_fprintf_control_block * ctrl_blk
Definition shell_fprintf.h:34
uint8_t * buffer
Definition shell_fprintf.h:30
shell_fprintf_fwrite fwrite
Definition shell_fprintf.h:32
const void * user_ctx
Definition shell_fprintf.h:33