OpenOCD
command_registration Struct Reference
Collaboration diagram for command_registration:

Data Fields

const struct command_registrationchain
 If non-NULL, the commands in chain will be registered in the same context and scope of this registration record. More...
 
command_handler_t handler
 
const char * help
 
Jim_CmdProc * jim_handler
 
enum command_mode mode
 
const char * name
 
const char * usage
 a string listing the options and arguments, required or optional More...
 

Detailed Description

Definition at line 228 of file command.h.

Field Documentation

◆ chain

const struct command_registration* command_registration::chain

If non-NULL, the commands in chain will be registered in the same context and scope of this registration record.

This allows modules to inherit lists commands from other modules.

Definition at line 243 of file command.h.

Referenced by __register_commands(), cti_create(), dap_create(), and target_create().

◆ handler

command_handler_t command_registration::handler

Definition at line 230 of file command.h.

Referenced by command_new().

◆ help

const char* command_registration::help

Definition at line 233 of file command.h.

Referenced by command_new().

◆ jim_handler

Jim_CmdProc* command_registration::jim_handler

Definition at line 231 of file command.h.

Referenced by command_new().

◆ mode

enum command_mode command_registration::mode

Definition at line 231 of file command.h.

Referenced by command_new().

◆ name

const char* command_registration::name

◆ usage

const char* command_registration::usage

a string listing the options and arguments, required or optional

Definition at line 235 of file command.h.

Referenced by command_new().


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