Motor Driver Evaluation Kit NEVB-MTR1-t01-1.0.0
Firmware for NEVB-MTR1-KIT1 for trapezoidal control of BLDC motors using Hall-effect sensors
Loading...
Searching...
No Matches
scpi_parser.h File Reference

SCPI parser header file. More...

#include "scpi_config.h"
#include "scpi_types.h"
Include dependency graph for scpi_parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SCPI_Parser
 SCPI Parser class. More...
 
struct  SCPI_Parser::internal_errors
 Internal errors container. More...
 

Typedefs

using SCPI_caller_t = void (*)(SCPI_Commands, SCPI_Parameters, Stream &)
 Void template used with SCPI_Parser::RegisterCommand.
 
using SCPI_special_caller_t = void (*)(SCPI_Commands, Stream &)
 Void template used with SCPI_Parser::RegisterSpecialCommand.
 

Detailed Description

SCPI parser header file.

This header file defines the SCPI_Parser class, which is the core component of the library, and was originally part of the Vrekrer SCPI Parser project.

It has been merged into this code base for customization and linking limitations of the Arduino IDE.

This class provides the functionality to parse and execute commands adhering to the Standard Commands for Programmable Instruments (SCPI) syntax. It includes methods for registering SCPI commands with associated callback functions, setting a command tree base for hierarchical command organization, processing incoming SCPI messages from a serial stream, and handling errors. The class also defines internal structures and variables used for command storage, tokenization, and hashing to efficiently match received commands with their registered handlers.

Author
Nexperia: http://www.nexperia.com
Support Page
For additional support, visit: https://www.nexperia.com/support
Author
Aanas Sayed
Date
2025/04/21


Definition in file scpi_parser.h.

Typedef Documentation

◆ SCPI_caller_t

using SCPI_caller_t = void (*)(SCPI_Commands, SCPI_Parameters, Stream &)

Void template used with SCPI_Parser::RegisterCommand.

Definition at line 41 of file scpi_parser.h.

◆ SCPI_special_caller_t

using SCPI_special_caller_t = void (*)(SCPI_Commands, Stream &)

Void template used with SCPI_Parser::RegisterSpecialCommand.

Definition at line 43 of file scpi_parser.h.