// Define error return codes
#define SUCCESS                        0
#define GENERIC_ERROR                  -1
#define ERROR_IO_ADDRESS_BAD           -2
#define ERROR_BOARD_NOT_WORKING        -3
#define ERROR_SERIAL_LINK_BAD          -4
#define ERROR_CAPTURE_TIME_OUT         -5
#define ERROR_MEMORY_ALLOCATION_FAILED -6
#define ERROR_INVALID_BOARDID          -7
#define ERROR_NOT_ENOUGH_MEM           -8
#define ERROR_NO_DRIVER                -9
#define ERROR_INVALID_CHANNEL          -10
#define ERROR_BAD_PARAMETER            -11
#define ERROR_BUSY_CAPTURING           -12
#define ERROR_REGISTRY                 -13
#define ERROR_SERIAL_INPUT_LINK_BAD    -14
#define ERROR_SERIAL_NO_ACK            -15
#define ERROR_CANT_OPEN_PORT           -16
#define ERROR_BAD_CAMERA_TYPE          -17
#define ERROR_SERIAL_NO_RESPONSE       -18
#define ERROR_SERIAL_BAD_RESPONSE      -19
#define ERROR_SERIAL_WRITE_ERROR       -20
#define ERROR_SERIAL_READ_ERROR        -21
#define ERROR_SERIAL_CANT_OPEN_PORT    -22
#define ERROR_SERIAL_PORT_INIT_ERROR   -23
#define ERROR_NO_MORE_CHANNELS         -24
#define ERROR_NOT_CAPTURING            -25
#define ERROR_CAPTURE_CANCELED         -26
#define ERROR_INVALID_ORIENTATION      -27
#define ERROR_NOT_INITIALIZED          -28
#define ERROR_BAD_CAMERA               -29
#define ERROR_NOT_ENOUGH_RAM           -30
#define ERROR_INVALID_BINNING          -31
#define ERROR_INVALID_INTERRUPT_MODE   -32
#define ERROR_NOT_TRIGGERED	       -33
#define STATUS_NOT_IMPLEMENTED	       -34
#define ERROR_DUPLICATE_BOARDID	       -35
