PS_Fgen_FW  4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
Loading...
Searching...
No Matches
config.h File Reference

SCPI Configuration. More...

#include "cc.h"

Go to the source code of this file.

Macros

#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_CRLF
 
#define SYSTEM_BARE_METAL   0
 Detect, if it has limited resources or it is running on a full blown operating system.
 
#define SYSTEM_FULL_BLOWN   1
 
#define SYSTEM_TYPE   SYSTEM_BARE_METAL
 
#define USE_FULL_ERROR_LIST   SYSTEM_TYPE
 Enable full error list 0 = Minimal set of errors 1 = Full set of errors.
 
#define USE_USER_ERROR_LIST   0
 Enable also LIST_OF_USER_ERRORS to be included 0 = Use only library defined errors 1 = Use also LIST_OF_USER_ERRORS.
 
#define USE_DEVICE_DEPENDENT_ERROR_INFORMATION   SYSTEM_TYPE
 
#define USE_MEMORY_ALLOCATION_FREE   0
 
#define USE_COMMAND_TAGS   1
 
#define USE_DEPRECATED_FUNCTIONS   0
 
#define USE_CUSTOM_DTOSTRE   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   1
 
#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

Macro Definition Documentation

◆ SCPIDEFINE_doubleToStr

#define SCPIDEFINE_doubleToStr ( v,
s,
l )
Value:
SCPI_dtostre((v), (s), (l), 15, 0)

◆ SCPIDEFINE_floatToStr

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

◆ SCPIDEFINE_isfinite

#define SCPIDEFINE_isfinite ( n)
Value:
(!SCPIDEFINE_isnan((n)) && ((n) < INFINITY) && ((n) > -INFINITY))

◆ SCPIDEFINE_isnan

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

◆ SCPIDEFINE_signbit

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

◆ SCPIDEFINE_strncasecmp

#define SCPIDEFINE_strncasecmp ( s1,
s2,
l )
Value:
OUR_strncasecmp((s1), (s2), (l))

◆ SCPIDEFINE_strndup

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

◆ SCPIDEFINE_strnlen

#define SCPIDEFINE_strnlen ( s,
l )
Value:
BSD_strnlen((s), (l))

◆ SCPIDEFINE_strtof

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

◆ SCPIDEFINE_strtoll

#define SCPIDEFINE_strtoll ( n,
p,
b )
Value:
strtoll((n), (p), (b))

◆ SCPIDEFINE_strtoull

#define SCPIDEFINE_strtoull ( n,
p,
b )
Value:
strtoull((n), (p), (b))

◆ 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

◆ 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