RUI3 (RAK Unified Interface 3) - RAK4631
service_mode_cli.h File Reference

Go to the source code of this file.

Data Structures

struct  CLICmds_st
 

Macros

#define CLI_BUFFER_SIZE   (2048)
 
#define CLI_HISTORY_NUM   (5)
 
#define CLI_ARG_SIZE   (20)
 
#define CLI_PROMPT   ("")
 

Typedefs

typedef int(* CliCmdFunc) (int32_t, char *argv[])
 
typedef struct CLICmds_st CLICmds
 
typedef struct CLICmds_stPCLICmds
 

Functions

int get_cli_buffer_len (void)
 
void service_mode_cli_init (SERIAL_PORT port)
 
void service_mode_cli_deinit (SERIAL_PORT port)
 
void service_mode_cli_handler (SERIAL_PORT port, uint8_t ch)
 
bool service_mode_cli_register (const char *cmd, const char *title, PF_handle handle, uint8_t maxargu, const char *usage, uint8_t perm)
 
int At_Parser (SERIAL_PORT port, char *buff, int len)
 

Macro Definition Documentation

◆ CLI_BUFFER_SIZE

#define CLI_BUFFER_SIZE   (2048)

◆ CLI_HISTORY_NUM

#define CLI_HISTORY_NUM   (5)

◆ CLI_ARG_SIZE

#define CLI_ARG_SIZE   (20)

◆ CLI_PROMPT

#define CLI_PROMPT   ("")

Typedef Documentation

◆ CliCmdFunc

typedef int(* CliCmdFunc) (int32_t, char *argv[])

◆ CLICmds

typedef struct CLICmds_st CLICmds

◆ PCLICmds

typedef struct CLICmds_st * PCLICmds

Function Documentation

◆ get_cli_buffer_len()

int get_cli_buffer_len ( void  )

◆ service_mode_cli_init()

void service_mode_cli_init ( SERIAL_PORT  port)

◆ service_mode_cli_deinit()

void service_mode_cli_deinit ( SERIAL_PORT  port)

◆ service_mode_cli_handler()

void service_mode_cli_handler ( SERIAL_PORT  port,
uint8_t  ch 
)

◆ service_mode_cli_register()

bool service_mode_cli_register ( const char *  cmd,
const char *  title,
PF_handle  handle,
uint8_t  maxargu,
const char *  usage,
uint8_t  perm 
)

◆ At_Parser()

int At_Parser ( SERIAL_PORT  port,
char *  buff,
int  len 
)