29#ifndef _SCPI_TYPES_CODE_H
30#define _SCPI_TYPES_CODE_H
Stores parsed command tokens.
SCPI_Commands()
Default constructor.
char * not_processed_message
Remaining message text after token parsing.
Stores parsed command parameters.
char * not_processed_message
Remaining message text after parsing.
SCPI_Parameters()
Default constructor.
Variable size string array class.
uint8_t size_
Current size of the array.
uint8_t Size() const
Get the number of stored strings.
char * operator[](const byte index) const
Read-only array indexing.
bool overflow_error
Flag set when exceeding storage_size.
const uint8_t storage_size
Max number of entries allowed.
void Append(char *value)
Append a new string to the array (LIFO push).
char * values_[6]
Internal storage for string pointers.
char * Last() const
Get the last appended string.
char * Pop()
Remove and return the last string (LIFO pop).
char * First() const
Get the first appended string.
SCPI parser configuration header file.
#define SCPI_HASH_TYPE
Integer data type used for calculating and storing command hash codes.
#define SCPI_ARRAY_SYZE
Maximum branch size of the command tree and the maximum number of parameters that can be parsed from ...
uint8_t scpi_hash_t
Alias for SCPI integer hash type defined in SCPI_HASH_TYPE.
ErrorCode
SCPI Error codes.
@ MissingOrInvalidParameter
A required parameter was missing or an invalid parameter was provided.
@ BufferOverflow
The message buffer was exceeded during message reception.
@ NoError
No error occurred.
@ Timeout
A timeout occurred before receiving the expected termination characters.
@ UnknownCommand
An unknown command was received that could not be matched to a known handler.
SCPI_Parameters SCPI_P
Alias for SCPI_Parameters.
SCPI_Commands SCPI_C
Alias for SCPI_Commands.