14#define CLI_LINE_SIZE_MAX
15#define CLI_COMMANDS_TREE_RANK 4
30 size_t (*rx)(uint8_t* buffer,
size_t size, uint32_t timeout);
31 size_t (*rx_stdin)(uint8_t* buffer,
size_t size, uint32_t timeout,
void* context);
32 void (*tx)(
const uint8_t* buffer,
size_t size);
33 void (*tx_stdout)(
const char* data,
size_t size,
void* context);
34 bool (*is_connected)(void);
39 CLI_COMMANDS_TREE_RANK,
45#define M_OPL_CliCommandTree_t() BPTREE_OPLIST(CliCommandTree, M_POD_OPLIST)
48 CliCommandTree_t commands;
55 size_t cursor_position;
60void cli_reset(
Cli* cli);
62void cli_putc(
Cli* cli,
char c);
64void cli_stdout_callback(
void* _cookie,
const char* data,
size_t size);
struct Cli Cli
Cli type anonymous structure.
Definition cli.h:38
void(* CliCallback)(Cli *cli, FuriString *args, void *context)
Cli callback function pointer.
Definition cli.h:45
#define FURI_STRING_OPLIST
OPLIST for FuriString.
Definition string.h:778
Definition semaphore.c:15