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.cpp File Reference

SCPI parser implementation file. More...

#include "scpi_parser.h"
Include dependency graph for scpi_parser.cpp:

Go to the source code of this file.

Functions

void DefaultErrorHandler (SCPI_C c, SCPI_P p, Stream &interface)
 A no-operation function. No error handling is performed when this function is called.
 

Detailed Description

SCPI parser implementation file.

This file implements 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.cpp.

Function Documentation

◆ DefaultErrorHandler()

void DefaultErrorHandler ( SCPI_C c,
SCPI_P p,
Stream & interface )

A no-operation function. No error handling is performed when this function is called.

Parameters
[in]cSCPI_C object containing the command tree.
[in]pSCPI_P object containing the parsed command parameters.
[in]interfaceStream object for outputting error messages.

Definition at line 43 of file scpi_parser.cpp.

43{}
Here is the caller graph for this function: