Electronic Load  1.0
Programmable Constant Current Sink
Data Fields
commandTable_t Struct Reference

Holds a Table containing all valid Commands and the corresponding Address of the routine handling it. More...

Data Fields

int8_t(* adr )(void)
 The address of the program. More...
 
char * cmd
 The command string. More...
 
const char * helptext
 A short explanation printed with the help command. More...
 

Detailed Description

Holds a Table containing all valid Commands and the corresponding Address of the routine handling it.

The command string is converted to lower case so case does not matter.

Field Documentation

◆ cmd

char* cmd

The command string.

The string is only evaluated to the length given so you can abbreviate commands. Be sure to use unique abbreviations, though.

◆ adr

int8_t(* adr) (void)

The address of the program.

◆ helptext

const char* helptext

A short explanation printed with the help command.

If helptext is NULL it will not be listed in the help-command. This helps to implement 'secret' commands that the normal user does not need.


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