|
AMU Library 3.0
C/C++ library for communicating with AMU (Aerospace Measurement Unit) devices
|
Expressions handling. More...
Go to the source code of this file.
Typedefs | |
| typedef enum _scpi_expr_result_t | scpi_expr_result_t |
Enumerations | |
| enum | _scpi_expr_result_t { SCPI_EXPR_OK = 0 , SCPI_EXPR_ERROR , SCPI_EXPR_NO_MORE } |
Functions | |
| scpi_expr_result_t | SCPI_ExprNumericListEntry (scpi_t *context, scpi_parameter_t *param, int index, scpi_bool_t *isRange, scpi_parameter_t *valueFrom, scpi_parameter_t *valueTo) |
| scpi_expr_result_t | SCPI_ExprNumericListEntryInt (scpi_t *context, scpi_parameter_t *param, int index, scpi_bool_t *isRange, int32_t *valueFrom, int32_t *valueTo) |
| scpi_expr_result_t | SCPI_ExprNumericListEntryDouble (scpi_t *context, scpi_parameter_t *param, int index, scpi_bool_t *isRange, double *valueFrom, double *valueTo) |
| scpi_expr_result_t | SCPI_ExprChannelListEntry (scpi_t *context, scpi_parameter_t *param, int index, scpi_bool_t *isRange, int32_t *valuesFrom, int32_t *valuesTo, size_t length, size_t *dimensions) |
Expressions handling.
Definition in file expression.h.
| typedef enum _scpi_expr_result_t scpi_expr_result_t |
Definition at line 50 of file expression.h.
| enum _scpi_expr_result_t |
| Enumerator | ||
|---|---|---|
| SCPI_EXPR_OK | 0 | |
| SCPI_EXPR_ERROR | ||
| SCPI_EXPR_NO_MORE | ||
Definition at line 45 of file expression.h.
| scpi_expr_result_t SCPI_ExprChannelListEntry | ( | scpi_t * | context, |
| scpi_parameter_t * | param, | ||
| int | index, | ||
| scpi_bool_t * | isRange, | ||
| int32_t * | valuesFrom, | ||
| int32_t * | valuesTo, | ||
| size_t | length, | ||
| size_t * | dimensions ) |
Parse one list entry at specific position e.g. "1!2:5!6"
| context | |
| param | |
| index | |
| isRange | return true if it is range |
| valuesFrom | return array of values from |
| valuesTo | return array of values to |
| length | length of values arrays |
| dimensions | real number of dimensions |
Definition at line 266 of file expression.c.
| scpi_expr_result_t SCPI_ExprNumericListEntry | ( | scpi_t * | context, |
| scpi_parameter_t * | param, | ||
| int | index, | ||
| scpi_bool_t * | isRange, | ||
| scpi_parameter_t * | valueFrom, | ||
| scpi_parameter_t * | valueTo ) |
Parse entry on specified position
| context | scpi context |
| param | input parameter |
| index | index of position (start from 0) |
| isRange | return true if expression at index was range |
| valueFrom | return value from |
| valueTo | return value to |
Definition at line 83 of file expression.c.
| scpi_expr_result_t SCPI_ExprNumericListEntryDouble | ( | scpi_t * | context, |
| scpi_parameter_t * | param, | ||
| int | index, | ||
| scpi_bool_t * | isRange, | ||
| double * | valueFrom, | ||
| double * | valueTo ) |
Parse entry on specified position and convert result to double
| context | scpi context |
| param | input parameter |
| index | index of position (start from 0) |
| isRange | return true if expression at index was range |
| valueFrom | return value from |
| valueTo | return value to |
Definition at line 165 of file expression.c.
| scpi_expr_result_t SCPI_ExprNumericListEntryInt | ( | scpi_t * | context, |
| scpi_parameter_t * | param, | ||
| int | index, | ||
| scpi_bool_t * | isRange, | ||
| int32_t * | valueFrom, | ||
| int32_t * | valueTo ) |
Parse entry on specified position and convert result to int32_t
| context | scpi context |
| param | input parameter |
| index | index of position (start from 0) |
| isRange | return true if expression at index was range |
| valueFrom | return value from |
| valueTo | return value to |
Definition at line 134 of file expression.c.