|
Motor Driver Evaluation Kit NEVB-MTR1-t01-1.1.0
Firmware for NEVB-MTR1-KIT1 for trapezoidal control of BLDC motors using Hall-effect sensors
|
SCPI implementation header file. More...
Go to the source code of this file.
Macros | |
| #define | MOTOR_DIRECTION_OPTIONS 2 |
| Motor direction options array. | |
| #define | INPUT_SOURCE_OPTIONS 2 |
| Motor direction options array. | |
Functions | |
| void | ScpiInit (void) |
| Initializes the SCPI command parser and registers all supported commands. | |
| void | ScpiInput (Stream &interface) |
| Processes incoming data from a serial interface for SCPI commands. | |
Variables | |
| const SCPI_choice_def_t | motorDirections [2] |
| Number of motor direction options. | |
| const SCPI_choice_def_t | inputSources [2] |
| Number of speed input source options. | |
| SCPI_Parser | scpiParser |
| Speed input source options array. | |
SCPI implementation header file.
This file contains the command definitions for the SCPI parser to recognize and execute.
Most of this code was originally written by Diego González Chávez as part of the Vrekrer SCPI Parser project.
It has been merged into the main codebase for customization and linking limitations of the Arduino IDE.
Definition in file scpi.h.
| #define MOTOR_DIRECTION_OPTIONS 2 |
| void ScpiInit | ( | void | ) |
Initializes the SCPI command parser and registers all supported commands.
This function sets up the SCPI parser instance and registers the core IEEE mandated commands, required SCPI commands, and the custom motor control and measurement commands.
Definition at line 71 of file scpi.cpp.
| void ScpiInput | ( | Stream & | interface | ) |
Processes incoming data from a serial interface for SCPI commands.
This function takes a Stream object (like Serial) and processes any received data, looking for complete SCPI commands terminated by a newline character. It then passes the command to the SCPI parser for execution.
| interface | The serial stream interface to read commands from. |
Definition at line 122 of file scpi.cpp.
|
extern |
Number of speed input source options.
Number of speed input source options.
This array is used by the SCPI parser to interpret and represent the source of the motor's speed or duty cycle control ('LOCA' for local, 'REMO' for remote). Each entry associates a textual representation with a numerical value (e.g., SPEED_INPUT_SOURCE_LOCAL, SPEED_INPUT_SOURCE_REMOTE).
Definition at line 665 of file scpi.cpp.
|
extern |
Number of motor direction options.
Number of motor direction options.
This array is used by the SCPI parser to interpret and represent the motor's direction ('FORW' for forward, 'REVE' for reverse). Each entry in the array associates a textual representation with a numerical value defined elsewhere (e.g., DIRECTION_FORWARD, DIRECTION_REVERSE).
Definition at line 652 of file scpi.cpp.
|
extern |