Subversion Repositories tiedf232

Rev

Blame | Last modification | View Log | RSS feed

#ifndef TIEDF_H
#define TIEDF_H

// note : LF/CR without group means restarting of a cycle

// frame definitions
#define STX     0x02
#define ETX     0x03
#define EOT     0x04

// group definitions
#define LF      0x0A
#define SP      0x20
#define CR      0x0D

#define CHKSUM(x)       (((x) & 0x3f) + 0x20)

// variables
#define ADCO    0
#define OPTARIF 1
#define ISOUSC  2
#define BASE    3
#define HCHC    4
#define HCHP    5
#define EJPHN   6
#define EJPHPM  7
#define BBRHCJB 8
#define BBRHPJB 9
#define BBRHCJW 10
#define BBRHPJW 11
#define BBRHCJR 12
#define BBRHPJR 13
#define PEJP    14
#define PTEC    15
#define DEMAIN  16
#define IINST   17
#define ADPS    18
#define IMAX    19
#define PAPP    20
#define HHPHC   21
#define MOTDETAT 22
#define DEF_MAX 23

// structure(s)
typedef struct
{
  char name[9];
  char value[13];
  char unit[3];
  int len;
  int valid;
} LABEL;

typedef struct
{
  char edf_label[64];
  char edf_index;
  char sql_column[64];
} SQL_PAIR;

typedef struct
{
  char login[256];
  char passwd[256];

  SQL_PAIR list[DEF_MAX];
  int      count;
} SQL_CONFIG;

#endif