|
Electronic Load
1.0
Programmable Constant Current Sink
|
Handles commands from the Host Interface. More...

Macros | |
| #define | MAXPARAMS 5 |
| Maximum number of Parameters passed to any Command. More... | |
Functions | |
| void | calDisp (void) |
| static int8_t | CmdCalibrate (void) |
| Calibrates the Voltage Sensors. More... | |
| static int8_t | CmdCurrent (void) |
| Sets the Current to be drawn from the Source. More... | |
| static int8_t | CmdDumpConf (void) |
| Prints the Configuration Memory in a human readable form. More... | |
| static int8_t | CmdFTest (void) |
| Performs a Factory Test. More... | |
| static int8_t | CmdHelp (void) |
| Lists a Description of all Commands. More... | |
| static int8_t | CmdReset (void) |
| Sets Debug Options. More... | |
| static int8_t | CmdSetBright (void) |
| Sets the Brightness of the LCD Backlight. More... | |
| static int8_t | CmdSetContrast (void) |
| Sets the Contrast of the LCD Backlight. More... | |
| static int8_t | CmdStat (void) |
| Prints Values of System Sensors. More... | |
| static int8_t | CmdWrite (void) |
| Writes the Configuration to the EEPROM. More... | |
| static double | EnterDouble (void) |
| Receives a Double from the Host. More... | |
| uint8_t | ExecCommand (char *str) |
| Executes one command line. More... | |
| static void | ExtraIgnored (uint8_t n) |
| Prints error message for superfluous parameters. More... | |
| static void | MissingArg (void) |
| Prints error message for missing arguments. More... | |
Variables | |
| static char * | cmd |
| Pointer to the Command Line. More... | |
| static const commandTable_t | commandTable [] |
| static const char | helpCalibrate [] |
| static const char | helpDebug [] |
| static const char | helpDumpConf [] = "Prints a human readable list of configuration data" |
| static const char | helpFTest [] = "Executes the factory test" |
| static const char | helpHelp [] = "This list of commands" |
| static const char | helpReset [] |
| static const char | helpSetBright [] = "Sets backlight brightness, absolute or relative (e.g. 50, +10 -10)" |
| static const char | helpSetContr [] = "Sets LCD contrast, absolute or relative (e.g. 25, +5 -5)" |
| static const char | helpStatus [] = "Prints current status" |
| static const char | helpUseRts [] |
| static const char | helpWrite [] |
| static uint8_t | nParams |
| static char * | params [MAXPARAMS] |
| static const char helpCalibrate [] | PROGMEM = "Calibrates the voltage sensors" |
Handles commands from the Host Interface.
Handles commands from the serial interface
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
| #define MAXPARAMS 5 |
Maximum number of Parameters passed to any Command.
|
static |
Prints error message for superfluous parameters.
| n | The number of extra parameters |


|
static |
Prints error message for missing arguments.


|
static |
Sets the Current to be drawn from the Source.

|
static |
Prints the Configuration Memory in a human readable form.

|
static |
Prints Values of System Sensors.

|
static |
Sets the Brightness of the LCD Backlight.
If the brightness is a pure number, it is treated as an absolute value, a preceding '+' or '-' increases or decreases the brightness for the specified value.

|
static |
Sets the Contrast of the LCD Backlight.
If the contrast is a pure number, it is treated as an absolute value, a preceding '+' or '-' increases or decreases the contrast for the specified value.

|
static |
Writes the Configuration to the EEPROM.

| void calDisp | ( | void | ) |


|
static |
Receives a Double from the Host.


|
static |
Calibrates the Voltage Sensors.
Normal operation is halted during the calibration so the RTC will be late afterwards.
The user is prompted to enter the voltages from which the real Volts per LSB for each channel is calculated.

|
static |
Sets Debug Options.
Possible parameters are dcf and sensor. Adding a parameter switches debug output on, omitting it off. So debug without parameters completely disables debugging output.
Causes a Watchdog Reset. Useful for Debugging


|
static |
Lists a Description of all Commands.

|
static |
Performs a Factory Test.

| uint8_t ExecCommand | ( | char * | str | ) |
Executes one command line.
| str | A pointer to the line |

|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Pointer to the Command Line.
|
static |
|
static |
|
static |
|
static |
1.8.15