librfn
An ad-hoc utility library
Data Fields
console_cmd_t Struct Reference

Console command descriptor. More...

#include <console.h>

Data Fields

const char * name
 
pt_state_t(* fn )(struct console *c)
 

Detailed Description

Console command descriptor.

Tip: If you register many commands with the same function pointer you can parameterize them using containerof().

Definition at line 47 of file console.h.

Field Documentation

pt_state_t(* fn) (struct console *c)

Definition at line 49 of file console.h.

const char* name

Definition at line 48 of file console.h.


The documentation for this struct was generated from the following file: