User manual

57
typedef bool (CHAPI * __chapi_get_license_no_procedure_p)
(const struct __chapi_in * ci,
unsigned int *license_serial_no);
typedef void (CHAPI * __chapi_decrypt_data_block_procedure_p)
(const struct __chapi_in * ci,
void * buf, unsigned int len);
typedef void (CHAPI * __chapi_encrypt_data_block_procedure_p)
(const struct __chapi_in * ci,
void * buf, unsigned int len);
//-----------------------------------------------------------------------------
// Message logging / debugging routines
//
// Possible types of messages to log
typedef enum _log_message_type_t {
error_msg_type,
warning_msg_type,
info_msg_type
} log_message_type_t;
//
// CHAPI message code decoding. CHAPI message code is used as subcode within
// CHARON message preallocated for CHAPI use... the format is as follows:
//
// 31 24 23 16 15 0
// <vendor_id> <device_id> <message_id>
//
// Note: CHAPI messages subcoding is used now to distinguish between different
// CHAPI messages mapped to single CHARON message code from message
database.
// It is planned in the future to add some kind of CHAPI message database
// and primitives to get the message from that database in different
languages
// instead of hardcoding these messages withing the device code like it is
// done for the moment.
//
typedef unsigned int log_message_id_t;
// vendor_id = 0 is reserved for STROMASYS devices
enum {
VENDOR_ID_SRI = 0
};
// A few STROMASYS device ids - some for libraries, others for devices...
enum {
DEVICE_ID_HW = 0, // CHAPI_HW.DLL objects
DEVICE_ID_SERIAL, // CHAPI_SERIAL.DLL objects
DEVICE_ID_STORAGE, // CHAPI_STORAGE.DLL objects
DEVICE_ID_PARALLEL, // CHAPI_PARALLEL.DLL objects
DEVICE_ID_QBUS, // CHAPI QBUS adapter implementatiion
DEVICE_ID_UNIBUS, // CHAPI UNIBUS adapter implementatiion
DEVICE_ID_DHV11, // CHAPI DHV11 device implementation
DEVICE_ID_DLV11, // CHAPI DLV11/DL11 devices implementation
DEVICE_ID_DRV11, // CHAPI DRV11/DR11-C devices implementation
DEVICE_ID_DRV11_621_PORT, // CHAPI DRV11/DR11-C port mapped to SENSORAY
621 adapter
DEVICE_ID_DRV11WA, // CHAPI DCI-1100 based DRV11-WA implementation
DEVICE_ID_DRV11WA_621, // CHAPI DRV11WA mapped to SENSORAY 621 adapter
DEVICE_ID_DRV11WA_621_PORT, // CHAPI DRV11WA port mapped to SENSORAY 621
adapter
DEVICE_ID_HTIME, // CHAPI HTIME pseudo device
DEVICE_ID_RLV12, // CHAPI RL11/RLV12 devices implementation
DEVICE_ID_TSV05, // CHAPI TS11/TSV05 devices implementation
DEVICE_ID_VCB02, // CHAPI VCB02 device implementation