// Definitions for types and error codes #ifndef _~ACCESh~_ #define _~ACCESh~_ #ifndef uint #define uint unsigned int #endif #ifndef word #define word unsigned int #endif #ifndef uchar #define uchar unsigned char #endif #ifndef byte #define byte unsigned char #endif #ifndef boolean #define boolean unsigned char #endif #ifndef FALSE #define FALSE 0 #endif #ifndef TRUE #define TRUE 1 #endif // Card names #define AD128CARD 1 #define AD1216CARD 2 #define AD128GCARD 4 #define AIO8CARD 8 #define ONE_BIT 1 #define TWO_BIT 3 #define THREE_BIT 7 #define FOUR_BIT 15 // Constant to return value #define VALUE 0 // Error messages returned by drivers #define ERR_INVALID_ADDRESS -1 #define ERR_CHANNEL_RANGE -2 #define ERR_AD_TIMEOUT -3 #define ERR_NULL_POINTER -4 #define ERR_NO_POINTS -5 #define ERR_IRQ_RANGE -6 #define ERR_BUFFER_OVERFLOW -7 #define ERR_BAD_MODE -8 #define ERR_BAD_PARAMETER_LIST -9 #define ERR_PARAMETER1 -10 #define ERR_PARAMETER2 -11 #define ERR_PARAMETER3 -12 #define ERR_PARAMETER4 -13 #define ERR_PARAMETER5 -14 #define ERR_PARAMETER6 -15 #define ERR_PARAMETER7 -16 #define ERR_PARAMETER8 -17 #define ERR_PARAMETER9 -18 #define ERR_PARAMETER10 -19 #define ERR_USER_ABORT -20 #define ERR_BAD_COUNTER -21 #define ERR_BAD_CORNER_FREQUENCY -22 // Warnings returned by drivers #define WARN_CAL_OUT_OF_RANGE 1 #define WARN_CAL_ABOVE_SCALE 2 #define WARN_CAL_BELOW_SCALE 3 #define WARN_RATE_TOO_FAST 4 #define WARN_RATE_TOO_SLOW 5 #endif