|
RF-Positioning-System V0.1
by Max Heinekamp
|
This file contains the function definitions for the SCPI commands that are available for the instrument. More...
Go to the source code of this file.
Functions | |
| void | Identify (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends an identification message over the given interface. | |
| void | Reset (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Triggers a full reset of the ESP32. | |
| void | OPC (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends a 1 over the given interface to indicate that the previous command has finished executing. | |
| void | GetError (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends the oldest error message over the given interface. | |
| void | GetHelp (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends a help message with all available SCPI commands over the given interface. | |
| void | GetHelpSyntax (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends syntax help for a single command header, given as a parameter (e.g. SYSTem:HELP:SYNTax? *IDN?), over the given interface. | |
| void | GetVersion (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends the current firmware version of the device over the given interface. | |
| void | GetDebug (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends the debug information from Vrekrer-SCPI-Parser over the given interface. | |
| void | Preset (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Rewrites the parameters stored in flash memory with the defaults from the config.h file. | |
| void | SetPort (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetPort (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetIP (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetIP (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetMAC (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetMAC (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetGW (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | Perpetual (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | Step (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetRelativePosition (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetAbsolutePosition (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetAbsolutePosition (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetDirection (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetDirection (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetRMSCurrent (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetRMSCurrent (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetHoldCurrent (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetHoldCurrent (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetMicrosteps (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetMicrosteps (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetSpeed (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetSpeed (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | SetAcceleration (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetAcceleration (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | DebugMotorPins (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetMotorDebug (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | ResetEthernet (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| void | GetSessionList (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends the live SCPI Ethernet session table over the given interface. | |
| void | GetSessionLog (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends the ring buffer of recent SCPI session closures (with reason) over the given interface. | |
| void | GetSocketList (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends the raw state of all W5500 hardware sockets over the given interface. | |
| void | GetDiagSystem (SCPI_C commands, SCPI_P parameters, Stream &interface) |
| Sends system/reset health diagnostics (uptime, heap, reset reason, boot count) over the given interface. | |
Variables | |
| FLASH | flash_memory |
| SCPI * | scpi_instrument |
| STEPPER * | stepper1 |
| STEPPER * | stepper2 |
This file contains the function definitions for the SCPI commands that are available for the instrument.
The functions are called when a SCPI command is received. They handle the command and send a response back to the client.
Definition in file scpi_commands.cpp.
| void DebugMotorPins | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 500 of file scpi_commands.cpp.
| void GetAbsolutePosition | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 223 of file scpi_commands.cpp.
| void GetAcceleration | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 493 of file scpi_commands.cpp.
| void GetDebug | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends the debug information from Vrekrer-SCPI-Parser over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 58 of file scpi_commands.cpp.
| void GetDiagSystem | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends system/reset health diagnostics (uptime, heap, reset reason, boot count) over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 553 of file scpi_commands.cpp.
| void GetDirection | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 344 of file scpi_commands.cpp.
| void GetError | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends the oldest error message over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 37 of file scpi_commands.cpp.
| void GetGW | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 133 of file scpi_commands.cpp.
| void GetHelp | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends a help message with all available SCPI commands over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 43 of file scpi_commands.cpp.
| void GetHelpSyntax | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends syntax help for a single command header, given as a parameter (e.g. SYSTem:HELP:SYNTax? *IDN?), over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command — parameters[0] is the header to look up, matched against its full spelling as printed by SYSTem:HELP:HEADers?. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 47 of file scpi_commands.cpp.
| void GetHoldCurrent | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 427 of file scpi_commands.cpp.
| void GetIP | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 105 of file scpi_commands.cpp.
| void GetMAC | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 121 of file scpi_commands.cpp.
| void GetMicrosteps | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 451 of file scpi_commands.cpp.
| void GetMotorDebug | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 511 of file scpi_commands.cpp.
| void GetPort | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 83 of file scpi_commands.cpp.
| void GetRMSCurrent | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 403 of file scpi_commands.cpp.
| void GetSessionList | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends the live SCPI Ethernet session table over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 541 of file scpi_commands.cpp.
| void GetSessionLog | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends the ring buffer of recent SCPI session closures (with reason) over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 545 of file scpi_commands.cpp.
| void GetSocketList | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends the raw state of all W5500 hardware sockets over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 549 of file scpi_commands.cpp.
| void GetSpeed | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 472 of file scpi_commands.cpp.
| void GetVersion | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends the current firmware version of the device over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 51 of file scpi_commands.cpp.
| void Identify | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends an identification message over the given interface.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 21 of file scpi_commands.cpp.
| void OPC | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Sends a 1 over the given interface to indicate that the previous command has finished executing.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
As the programm is run sequentially on a single core, this function works by immediately sending a 1 over the interface, as soon controller gets around to processing the command.
Definition at line 32 of file scpi_commands.cpp.
| void Perpetual | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 139 of file scpi_commands.cpp.
| void Preset | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Rewrites the parameters stored in flash memory with the defaults from the config.h file.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 63 of file scpi_commands.cpp.
| void Reset | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Triggers a full reset of the ESP32.
| commands | The SCPI commands that were received. |
| parameters | The parameters that were passed with the SCPI command. |
| interface | Pointer to the Stream interface where the SCPI command was received. |
Definition at line 28 of file scpi_commands.cpp.
| void ResetEthernet | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 524 of file scpi_commands.cpp.
| void SetAbsolutePosition | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 254 of file scpi_commands.cpp.
| void SetAcceleration | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 479 of file scpi_commands.cpp.
| void SetDirection | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 291 of file scpi_commands.cpp.
| void SetHoldCurrent | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 409 of file scpi_commands.cpp.
| void SetIP | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 90 of file scpi_commands.cpp.
| void SetMAC | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 111 of file scpi_commands.cpp.
| void SetMicrosteps | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 433 of file scpi_commands.cpp.
| void SetPort | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 69 of file scpi_commands.cpp.
| void SetRelativePosition | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 185 of file scpi_commands.cpp.
| void SetRMSCurrent | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 385 of file scpi_commands.cpp.
| void SetSpeed | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 458 of file scpi_commands.cpp.
| void Step | ( | SCPI_C | commands, |
| SCPI_P | parameters, | ||
| Stream & | interface ) |
Definition at line 148 of file scpi_commands.cpp.