Microchip® Advanced Software Framework

console.h File Reference

Typedefs

typedef cmd_state_t(* cmd_cb_t )(int argc, char *argv[], void *ctx)
 

Enumerations

enum  cmd_state_t {
  CMD_DONE,
  CMD_INPROGRESS
}
 

Functions

int console_add_cmd (const char *str, cmd_cb_t cb, void *ctx)
 
char * console_gets (void)
 
void console_init (void)
 
void console_init_silent (void)
 
void console_poll (void)
 
int console_schedule_cmd (char *cmd, int interactive)
 

typedef cmd_state_t(* cmd_cb_t)(int argc, char *argv[], void *ctx)

Enumerator
CMD_DONE 
CMD_INPROGRESS 

int console_add_cmd ( const char *  str,
cmd_cb_t  cb,
void *  ctx 
)

References ARRAY_SIZE, cb, cmd_list, ctx, i, and str.

Referenced by wl_init_complete_cb().

char* console_gets ( void  )

References buf, c, CMD_MAX_LEN, io_getc(), and NULL.

Referenced by console_poll().

void console_init ( void  )

References is_initialized, and printk().

Referenced by wl_init_complete_cb().

void console_init_silent ( void  )

References is_initialized.

void console_poll ( void  )

References buf, console_gets(), and console_schedule_cmd().

Referenced by poll().

int console_schedule_cmd ( char *  cmd,
int  interactive 
)

References ARRAY_SIZE, buf, cb, CMD_INPROGRESS, cmd_list, ctx, i, MAX_ARGS, NULL, printk(), s, state, and str.

Referenced by console_poll().