Defines | Variables

src/constants.h File Reference

#include <errno.h>
#include <sys/types.h>
Include dependency graph for constants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DI194

Variables

const u_int8_t asciihex [] = "0123456789ABCDEF"
 Integer to ASCII hex conversion table.
const int BIG_STR = 1024
 Max size for some string (just to have a max).
const int DEV_PATH = 64
 Max path and filename length for a device file.
const int DI194_CHAN_SIZE = 2
const int DI194_CHANNELS = 5
const int DI194_KEY_SIZE = 10
 Key size, in characters.
const double DI194_MAXBURSTRATE = 240.00*4
const double DI194_MINBURSTRATE = DI194_MAXBURSTRATE / 32767
const int DI194_SN_LENGTH = 10
const int DI_SERIAL_BUFFER_SIZE = 4096
const int EBADRSVP = 201
 Device isn't responding properly.
const int EBOUNDS = 200
 Argument out of bounds.
const u_int8_t inthex [128]
 ASCII hex to integer conversion table.
const u_int8_t IOS_AVERAGE = 0
const u_int8_t IOS_FREQ = 4
const u_int8_t IOS_GREATEST = 5
const u_int8_t IOS_LAST_POINT = 5
const u_int8_t IOS_MAX = 1
const u_int8_t IOS_MIN = 2
const u_int8_t IOS_RMS = 3
const u_int8_t IOS_SMALLEST = 0
int my_errno
 Global error variable for the library.
const int SMALL_STR = 32
 Max size for some small string.

Define Documentation

#define DI194

Definition at line 31 of file constants.h.


Variable Documentation

const u_int8_t asciihex[] = "0123456789ABCDEF"

Definition at line 36 of file constants.h.

const int BIG_STR = 1024

Definition at line 54 of file constants.h.

const int DEV_PATH = 64

Definition at line 58 of file constants.h.

const int DI194_KEY_SIZE = 10

Definition at line 75 of file constants.h.

const int DI_SERIAL_BUFFER_SIZE = 4096

Max serial port buffer size in bytes, could be different if someone recompiled the kernel with a different size buffer.

Definition at line 63 of file constants.h.

const u_int8_t inthex[128]
Initial value:
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
 2, 3, 4, 5, 6, 7, 8, 9, 0, 0,
 0, 0, 0, 0, 0,10,11,12,13,14,
 15,0, 0, 0, 0, 0, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0,10,11,12,
 13,14,15,0, 0, 0, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, 0}

Definition at line 38 of file constants.h.

int my_errno

Definition at line 29 of file dataqsdk.cpp.

const int SMALL_STR = 32

Definition at line 56 of file constants.h.