24#ifndef _SCPI_HELPER_H_
25#define _SCPI_HELPER_H_
51uint8_t ScpiParamInt8(
SCPI_P ¶meters, int8_t ¶m);
52uint8_t
ScpiParamChoice(
SCPI_P ¶meters,
const SCPI_choice_def_t *options,
size_t optionsSize, uint8_t ¶m);
53uint8_t
ScpiChoiceToName(
const SCPI_choice_def_t *options,
size_t optionsSize, int8_t value, String &name);
Motor config header file.
uint8_t ScpiParamChoice(SCPI_P ¶meters, const SCPI_choice_def_t *options, size_t optionsSize, uint8_t ¶m)
Extracts a choice parameter from the SCPI parameter list and maps it to a numerical tag.
uint8_t ScpiParamBool(SCPI_P ¶meters, bool ¶m)
Extracts a boolean parameter ('ON', '1', 'OFF', or '0') from the SCPI parameter list.
uint8_t ScpiParamUInt8(SCPI_P ¶meters, uint8_t ¶m)
Extracts an unsigned 8-bit integer parameter from the SCPI parameter list.
uint8_t ScpiParamUInt32(SCPI_P ¶meters, uint32_t ¶m)
Extracts an unsigned 32-bit integer parameter from the SCPI parameter list.
uint8_t ScpiParamDouble(SCPI_P ¶meters, double ¶m)
Extracts a double-precision floating-point parameter from the SCPI parameter list.
uint8_t ScpiChoiceToName(const SCPI_choice_def_t *options, size_t optionsSize, int8_t value, String &name)
Converts a numerical choice tag back to its string representation.
uint8_t ScpiParamString(SCPI_P ¶meters, String ¶m)
Extracts a string parameter from the SCPI parameter list.
SCPI_Parameters SCPI_P
Alias for SCPI_Parameters.
Defines a structure for SCPI choice options.