/*
**++
**  FACILITY:  Spi
**
**  MODULE DESCRIPTION:
**
**      definitions and declarations
**
**  AUTHORS:
**
**      Holger Teutsch
**
**  CREATION DATE:  12-Jun-1990
**
**--
*/

#define N_MODES	7   /* processor modes IKESUN */

typedef struct {
    short int	buflen, code;
    void *bufadr;
    short int *retlen;
} itmslot;


#define VALUE_RESET	01  /* can be reset */
#define VALUE_RATE	02  /* has a rate */
#define VALUE_SEP	04  /* separator line */

typedef struct {
    int *value,		/* pointer to actual value */
	value1,		/* last value */
	value0;		/* value from last reset */
    float rate;		/* computed rate */

    int flags;		/* flags */

    char *txt;		/* descriptive text */
} spi_value_t;


extern spi_value_t spi_values[];
extern int n_spi_values;

extern int reset;		    /* request reset */

extern int modes[];

extern void get_spi( void );
