/****************************************/
/*  Library revision for 8017H, 8017HS  */
/*  8017HW ,8017DW and 8017HCW          */
/*  Compiler: BC,MSC                    */
/****************************************/

Version 1.1.1 [25,Feb,2010] by Hans
	Fixed Bug:
		Gain value write to wrong EEPROM address,customer can execute manual calbration program to 
		fix it (use "Recover default calibration settings" option)


Version 1.1.0 [17,Nov,2010] by Hans
	new support:
		I-8017DW and I-8017HCW 
	Add functions
		i8017H_Get_D_Sub_Status for get status of  D Sub connector (connector "Open" or "Close") for I-8017DW
		the other 8017 modules use this API will always get connector status "Open"		

------------------------------------------------------------------------

Version 1.0.9 [15,Apr,2010] by Martin
	Fixed Bug:
		i8017H_AD_TimerINT_Scan function may caused the program hang 

------------------------------------------------------------------------

Version 1.0.7 [03,Dec,2009] by Martin
	New features:
		1. Add calibration parameter of 20K Input Impedance for 8017HW module .
		  ( 8017HW module has two calibration parameter for 20K and 200K Input Impedance )		
		  The default shipment value is for 200K Input Impedance.
        2. User can use i8017H_SetSelectedImpedency API to set one of them for in use
         (refer 8017h.h to get more information about this API)
   Add functions
		i8017H_SetSelectedImpedency
         
------------------------------------------------------------------------
         
Version 1.0.6 [20,Nov,2008] by Martin
	New features:
		when using i8017H_ReadAI and i8017H_ReadAIHex to get analog input data, 
		user does not need to call i8017H_Set_ChannelGainMode.	
		please refer to demo program at i8017H_ReadAI.
		
	Add functions
		i8017H_GetSingleEndJumper
		i8017H_GetFirmwareVersion
		i8017H_ReadGainOffset_Info
		i8017H_ReadAI
		i8017H_ReadAIHex
	New Demo 8017h_ReadAI to present
		i8017H_GetSingleEndJumper
		i8017H_GetFirmwareVersion
		i8017H_ReadGainOffset_Info
		i8017H_ReadAI	
		
------------------------------------------------------------------------		
		
Version 1.0.4 [4,Jan,2006] by Kevin
    Support 8017HS ch8~ch15
        1. in 8017H.h, the global parameter i8017H_Input_Mode_SingleEnd[8]
           can tell you what input type the 8017HS is.
        2. all functions can use ch8~ ch15.
    
    Add functions
        i8017H_GetLibDate
        i8017H_GetLibVersion
        
    Change function names
        I8017H... ===> i8017H...

------------------------------------------------------------------------
Version 1.0.3 [19,Jul,2005] by Kevin
    Fix bug
        the 8017HL.lib dated 1,Jul,2005 can't work together with 8024L.Lib.
        
Version 1.0.3 [1,Jul,2005] by Kevin
    Support 8017HS 
        Single ended mode
            the library supports Ch0~Ch7 only.
            
    Correct first data sampled by 
        I8017H_AD_POLLING,
        I8017H_AD_INT,
        I8017H_AD_INT_SCAN
        ARRAY_HEX_TO_FLOAT
        
        Before, the first data of is incorrect.
        The loop index of above functions begin from 1 instead of 0.
        This version correct the situation.
        Now, the loop can begin from 0. 
        
    Performance test:
        80M CPU                              MSC lib         BC lib
            (1) 1 ch, one floating point     6.8K   Hz      7.08K  Hz
            (2) 1 ch, one integer point        9K   Hz      16.3K  Hz
            (3) 1 ch, multi interger points   91K   Hz        98K  Hz 
                polling mode
                  
            (4) 1 ch, multi interger points  65.35K Hz      65.35K Hz
                timer interrupt mode
            
            (5) 8 ch, multi interger points     33K Hz         35K Hz
                timer interrupt mode    
        

        40M CPU                              MSC lib         BC lib
            (1) 1 ch, one floating point     2.8K   Hz       2.5K  Hz
            (2) 1 ch, one integer point      5.2K   Hz       7.7K  Hz
            (3) 1 ch, multi interger points   47K   Hz        60K  Hz 
                polling mode
                  
            (4) 1 ch, multi interger points  65.35K Hz      65.35K Hz
                timer interrupt mode
            
            (5) 8 ch, multi interger points     21K Hz         26K Hz
                timer interrupt mode            
------------------------------------------------------------------------
        
Ver 1.0.2 [18,Feb,2004] by Kevin
    Support both 40/80M CPU
    
    Performance test: 
        80M CPU 
            polling mode: 98K sps (sample per second)
            interrupt mode: 65535 sps (sample per second)
        40M CPU
            polling mode: 60K sps (sample per second)
            interrupt mode: 50K sps (sample per second)