#ifndef IO_ADI

#define IO_ADI 1

#define IOSIZE 40
uint16_t io_array[IOSIZE];

#define BATTERYINPUTPIN 32 // 26 v996
#define SPAREOUTPIN 26     // 32 v996
// #define ADDR_PB 17

enum io
{
  // Inputs
  RET_LIMIT, // JOG_EXTEND, //0
  EXT_LIMIT, // JOG_RETRACT,
  OPEN_LIMIT,
  ADDRBUTTON, // SPARE_IN2,
  COMPRESSOR, // SPARE_IN3,
  EN_12V_SW,  // RF_KEYPAD,
  RF_KEYPAD,  // SPARE_IN1,
  POWER_RLY,  // ADDR_SET,//7

  SPARE_IN,  // GPIO 25
  SPARE_OUT, // GPIO 32
  BATT_V     // GPIO 26

};

/*

//outputs
RETRACT,//8
EXTEND,
SPARE_RLYA, //was SCRN_DN
SPARE_RLYB, //was SCRN_UP
SPARE_OUT1,
EN_SWA,
EN_SWB,
EN_SWC,//15

COMPRESSOR,//16
ADDR_LED,
HI_TRIP_LED,
CHARGE_EN,
CHARGE_MODE,
SCREEN_UP,
SCREEN_DN,
SCREEN_STP,//23

spare1,//24
spare2,//25
spare3,//26

//ADC
BATT,//27
GND,
ADC4to20,
ADC0to10a,
ADC_CURRENT,
JOG_RETRACT,
JOG_EXTEND,
ADPAREADC3 //34
};
*/

// io Expander Support v125

// set up for 2 modules
uint8_t exRly[4];
uint8_t exOpto[4];
uint8_t exOptoTransition[4];
uint16_t exParm[12]; // 0-3 are input Hz 4-11 are 4 to 20 AD

uint8_t exIndx;
uint8_t exParmIndx;

#endif
