AMU Library 3.0
C/C++ library for communicating with AMU (Aerospace Measurement Unit) devices
Loading...
Searching...
No Matches
config.h File Reference

SCPI Configuration. More...

#include "cc.h"

Go to the source code of this file.

Macros

#define SCPI_MAX_CMD_PATTERN_SIZE   32
#define LINE_ENDING_CR   "\r" /* use a <CR> carriage return as termination charcter */
#define LINE_ENDING_LF   "\n" /* use a <LF> line feed as termination charcter */
#define LINE_ENDING_CRLF   "\r\n" /* use <CR><LF> carriage return + line feed as termination charcters */
#define SCPI_LINE_ENDING   LINE_ENDING_LF
#define SYSTEM_BARE_METAL   0
#define SYSTEM_FULL_BLOWN   1
#define SYSTEM_TYPE   SYSTEM_BARE_METAL
#define USE_FULL_ERROR_LIST   SYSTEM_TYPE
#define USE_USER_ERROR_LIST   SYSTEM_TYPE
#define USE_DEVICE_DEPENDENT_ERROR_INFORMATION   SYSTEM_TYPE
#define USE_COMMAND_TAGS   1
#define USE_DEPRECATED_FUNCTIONS   1
#define USE_CUSTOM_DTOSTR   0
#define USE_UNITS_IMPERIAL   0
#define USE_UNITS_ANGLE   SYSTEM_TYPE
#define USE_UNITS_PARTICLES   SYSTEM_TYPE
#define USE_UNITS_DISTANCE   SYSTEM_TYPE
#define USE_UNITS_MAGNETIC   SYSTEM_TYPE
#define USE_UNITS_LIGHT   SYSTEM_TYPE
#define USE_UNITS_ENERGY_FORCE_MASS   SYSTEM_TYPE
#define USE_UNITS_TIME   SYSTEM_TYPE
#define USE_UNITS_TEMPERATURE   SYSTEM_TYPE
#define USE_UNITS_RATIO   SYSTEM_TYPE
#define USE_UNITS_POWER   1
#define USE_UNITS_FREQUENCY   1
#define USE_UNITS_ELECTRIC   1
#define USE_UNITS_ELECTRIC_CHARGE_CONDUCTANCE   SYSTEM_TYPE
#define SCPIDEFINE_strnlen(s, l)
#define SCPIDEFINE_strncasecmp(s1, s2, l)
#define SCPIDEFINE_floatToStr(v, s, l)
#define SCPIDEFINE_doubleToStr(v, s, l)
#define SCPIDEFINE_DESCRIPTION_MAX_PARTS   1
#define SCPIDEFINE_strndup(h, s, l)
#define SCPIDEFINE_free(h, s, r)
#define SCPIDEFINE_signbit(n)
#define SCPIDEFINE_isfinite(n)
#define SCPIDEFINE_strtof(n, p)
#define SCPIDEFINE_strtoll(n, p, b)
#define SCPIDEFINE_strtoull(n, p, b)
#define SCPIDEFINE_isnan(n)
#define NAN   (0.0 / 0.0)
#define INFINITY   (1.0 / 0.0)

Functions

long long int strtoll (const char *nptr, char **endptr, int base)
unsigned long long int strtoull (const char *nptr, char **endptr, int base)

Detailed Description

SCPI Configuration.

Date
Wed Mar 20 12:21:26 UTC 2013

Definition in file config.h.

Macro Definition Documentation

◆ INFINITY

#define INFINITY   (1.0 / 0.0)

Definition at line 273 of file config.h.

◆ LINE_ENDING_CR

#define LINE_ENDING_CR   "\r" /* use a <CR> carriage return as termination charcter */

Definition at line 49 of file config.h.

◆ LINE_ENDING_CRLF

#define LINE_ENDING_CRLF   "\r\n" /* use <CR><LF> carriage return + line feed as termination charcters */

Definition at line 51 of file config.h.

◆ LINE_ENDING_LF

#define LINE_ENDING_LF   "\n" /* use a <LF> line feed as termination charcter */

Definition at line 50 of file config.h.

◆ NAN

#define NAN   (0.0 / 0.0)

Definition at line 269 of file config.h.

◆ SCPI_LINE_ENDING

#define SCPI_LINE_ENDING   LINE_ENDING_LF

Definition at line 54 of file config.h.

◆ SCPI_MAX_CMD_PATTERN_SIZE

#define SCPI_MAX_CMD_PATTERN_SIZE   32

Definition at line 46 of file config.h.

◆ SCPIDEFINE_DESCRIPTION_MAX_PARTS

#define SCPIDEFINE_DESCRIPTION_MAX_PARTS   1

Definition at line 225 of file config.h.

◆ SCPIDEFINE_doubleToStr

#define SCPIDEFINE_doubleToStr ( v,
s,
l )
Value:
SCPI_dtostre((v), (s), (l), 15, 0)
char * SCPI_dtostre(double __val, char *__s, size_t __ssize, unsigned char __prec, unsigned char __flags)
Definition utils.c:1017

Definition at line 203 of file config.h.

◆ SCPIDEFINE_floatToStr

#define SCPIDEFINE_floatToStr ( v,
s,
l )
Value:
SCPI_dtostre((v), (s), (l), 6, 0)

Definition at line 193 of file config.h.

◆ SCPIDEFINE_free

#define SCPIDEFINE_free ( h,
s,
r )

Definition at line 227 of file config.h.

◆ SCPIDEFINE_isfinite

#define SCPIDEFINE_isfinite ( n)
Value:
(!SCPIDEFINE_isnan((n)) && ((n) < INFINITY) && ((n) > -INFINITY))
#define INFINITY
Definition config.h:273
#define SCPIDEFINE_isnan(n)
Definition config.h:265

Definition at line 241 of file config.h.

◆ SCPIDEFINE_isnan

#define SCPIDEFINE_isnan ( n)
Value:
((n) != (n))

Definition at line 265 of file config.h.

◆ SCPIDEFINE_signbit

#define SCPIDEFINE_signbit ( n)
Value:
((n)<0)

Definition at line 233 of file config.h.

◆ SCPIDEFINE_strncasecmp

#define SCPIDEFINE_strncasecmp ( s1,
s2,
l )
Value:
OUR_strncasecmp((s1), (s2), (l))
int OUR_strncasecmp(const char *s1, const char *s2, size_t n)
Definition utils.c:747

Definition at line 183 of file config.h.

◆ SCPIDEFINE_strndup

#define SCPIDEFINE_strndup ( h,
s,
l )
Value:
NULL

Definition at line 226 of file config.h.

◆ SCPIDEFINE_strnlen

#define SCPIDEFINE_strnlen ( s,
l )
Value:
BSD_strnlen((s), (l))
size_t BSD_strnlen(const char *s, size_t maxlen)
Definition utils.c:734

Definition at line 174 of file config.h.

◆ SCPIDEFINE_strtof

#define SCPIDEFINE_strtof ( n,
p )
Value:
strtod((n), (p))

Definition at line 247 of file config.h.

◆ SCPIDEFINE_strtoll

#define SCPIDEFINE_strtoll ( n,
p,
b )
Value:
strtoll((n), (p), (b))
long long int strtoll(const char *nptr, char **endptr, int base)

Definition at line 254 of file config.h.

◆ SCPIDEFINE_strtoull

#define SCPIDEFINE_strtoull ( n,
p,
b )
Value:
strtoull((n), (p), (b))
unsigned long long int strtoull(const char *nptr, char **endptr, int base)

Definition at line 255 of file config.h.

◆ SYSTEM_BARE_METAL

#define SYSTEM_BARE_METAL   0

Detect, if it has limited resources or it is running on a full blown operating system. All values can be overiden by scpi_user_config.h

Definition at line 61 of file config.h.

◆ SYSTEM_FULL_BLOWN

#define SYSTEM_FULL_BLOWN   1

Definition at line 62 of file config.h.

◆ SYSTEM_TYPE

#define SYSTEM_TYPE   SYSTEM_BARE_METAL

Definition at line 68 of file config.h.

◆ USE_COMMAND_TAGS

#define USE_COMMAND_TAGS   1

Definition at line 103 of file config.h.

◆ USE_CUSTOM_DTOSTR

#define USE_CUSTOM_DTOSTR   0

Definition at line 111 of file config.h.

◆ USE_DEPRECATED_FUNCTIONS

#define USE_DEPRECATED_FUNCTIONS   1

Definition at line 107 of file config.h.

◆ USE_DEVICE_DEPENDENT_ERROR_INFORMATION

#define USE_DEVICE_DEPENDENT_ERROR_INFORMATION   SYSTEM_TYPE

Definition at line 93 of file config.h.

◆ USE_FULL_ERROR_LIST

#define USE_FULL_ERROR_LIST   SYSTEM_TYPE

Enable full error list 0 = Minimal set of errors 1 = Full set of errors

For small systems, full set of errors will occupy large ammount of data It is enabled by default on full blown systems and disabled on limited bare metal systems

Definition at line 80 of file config.h.

◆ USE_UNITS_ANGLE

#define USE_UNITS_ANGLE   SYSTEM_TYPE

Definition at line 119 of file config.h.

◆ USE_UNITS_DISTANCE

#define USE_UNITS_DISTANCE   SYSTEM_TYPE

Definition at line 127 of file config.h.

◆ USE_UNITS_ELECTRIC

#define USE_UNITS_ELECTRIC   1

Definition at line 163 of file config.h.

◆ USE_UNITS_ELECTRIC_CHARGE_CONDUCTANCE

#define USE_UNITS_ELECTRIC_CHARGE_CONDUCTANCE   SYSTEM_TYPE

Definition at line 167 of file config.h.

◆ USE_UNITS_ENERGY_FORCE_MASS

#define USE_UNITS_ENERGY_FORCE_MASS   SYSTEM_TYPE

Definition at line 139 of file config.h.

◆ USE_UNITS_FREQUENCY

#define USE_UNITS_FREQUENCY   1

Definition at line 159 of file config.h.

◆ USE_UNITS_IMPERIAL

#define USE_UNITS_IMPERIAL   0

Definition at line 115 of file config.h.

◆ USE_UNITS_LIGHT

#define USE_UNITS_LIGHT   SYSTEM_TYPE

Definition at line 135 of file config.h.

◆ USE_UNITS_MAGNETIC

#define USE_UNITS_MAGNETIC   SYSTEM_TYPE

Definition at line 131 of file config.h.

◆ USE_UNITS_PARTICLES

#define USE_UNITS_PARTICLES   SYSTEM_TYPE

Definition at line 123 of file config.h.

◆ USE_UNITS_POWER

#define USE_UNITS_POWER   1

Definition at line 155 of file config.h.

◆ USE_UNITS_RATIO

#define USE_UNITS_RATIO   SYSTEM_TYPE

Definition at line 151 of file config.h.

◆ USE_UNITS_TEMPERATURE

#define USE_UNITS_TEMPERATURE   SYSTEM_TYPE

Definition at line 147 of file config.h.

◆ USE_UNITS_TIME

#define USE_UNITS_TIME   SYSTEM_TYPE

Definition at line 143 of file config.h.

◆ USE_USER_ERROR_LIST

#define USE_USER_ERROR_LIST   SYSTEM_TYPE

Enable also LIST_OF_USER_ERRORS to be included 0 = Use only library defined errors 1 = Use also LIST_OF_USER_ERRORS

Definition at line 89 of file config.h.

Function Documentation

◆ strtoll()

long long int strtoll ( const char * nptr,
char ** endptr,
int base )
extern

◆ strtoull()

unsigned long long int strtoull ( const char * nptr,
char ** endptr,
int base )
extern