User manual
154
status - disk drive status after read command completion (can be mixed), see status code
definition in disk drive methods description;
n_of_byte - number of bytes ACTUALLY transferred by READ operations;
Rerurns:
0 – Success;
virtual void get_sys_err( unsigned long err )
System error logging, also callback function, disk drive must calls disk controller’s callback
get_sys_err(...) for system error logging;
err - system error number;
void log_msg(log_message_type_t msg_type, const char *str)
Message logging, also callback function, disk drive must calls disk controller’s callback
log_msg(...) for message logging;
msg_type - type of message;
*str - message;
void debug_trace(unsigned char debug_level, const char *str)
Trace logging, also callback function, disk drive must calls disk controller’s callback
debug_trace(...) for trace logging;
debug_level - debug level;
*str - trace message;
CHAPI disk drive methods
CHAPI disk drive’s methods described in class chapi_disk_drive_iface, so all CHAPI disk
drive classes must be derived from the class chapi_disk_drive_iface.
chapi_disk_drive_iface(void * ctrl, unsigned char disk_number)










