/******************************************************************************
 A Hewlett-Packard Software Product
 Copyright Hewlett-Packard Co. 1992

 All Rights Reserved. Reproduction, adaptation, or translation without prior
 written  permission  is prohibited, except as allowed under copyright laws.
 ******************************************************************************/
#define         HEAT            0x1     /* 0001 */
#define         COOL            0x2     /* 0010 */
#define         HUMIDIFY        0x4     /* 0100 */
#define         DEHUMIDIFY      0x8     /* 1000 */

#define         FURNACE_ON      0x0001
#define         AIR_COND_ON     0x0010
#define         HUMID_ON        0x0100
#define         DE_HUMID_ON     0x1000

#define         MAX_TEMP        90
#define         MIN_TEMP        65
#define         MAX_HUMID       64
#define         MIN_HUMID       41
#define         NUM_OF_OLD      32
#define         NUM_TO_AVE      16

void    get_targets(short *temperature, short *humidity);
void    read_conditions(short *temperature, short *humidity);
void    set_outputs(char *function, short temperature, short humidity);
void    write_hdwr(char change, unsigned short hdwr_val);
void    save_points();

