(All functions except cbm_driver_open():
f must be a valid file
descriptor)
Opens the driver. port
isn't used by now and should be 0.
After successful completition, 0 is returned along with a valid CBM_FILE
descriptor in f
.
Closes the driver.
Retrive data after cbm_talk();
. At most size
bytes are read.
Return value is the actual number of bytes read. < indicates an error.
Send data after cbm_listen();
. At most size
bytes are written,
Return value is the actual number of bytes written. < indicates an error.
Tell device dev to listen on secondary channel secadr. Return value is 0 on success, < 0 means error.
Tell device dev to talk on secondary channel secadr. Return value is 0 on success, < 0 means error.
Prepare device dev for opening a file. This device listens for the file name after this call which is normally sent by a call to the write()-function followed by an unlisten() call. Return value 0 on success, < 0 means error.
Close file associated with secondary address secadr on device dev. Return value 0 on success, < 0 means error.
Send unlisten on bus. Return value 0 on success, < 0 means error.
Send untalk on bus. Return value 0 on success, < 0 means error. descriptor.
Get EOI flag after bus read, return value is 0 with no EOI, otherwise 1. When EOI is set to 1, the active talker has nothing more to send.
Do a hardware reset on all connected devices. Control is returned after a 5 second delay.
Read byte from XP1541/XP1571 bus. No handshaking or such involved.
Write byte to XP1541/XP1571 bus. No handshaking or such involved.
Read status of all bus lines. Return value is a combination of
IEC_ATN
, IEC_CLOCK
and IEC_DATA
.
Get (logical) status of line line.
Activate line line (set to 0V).
Release line line (set to 5V).
Experimental.
Write prog into device dev's memory space via a series of "M-W"
commands.
Read device status info buf, at most bufsize bytes are read. Returns atoi(buf).
Execute command cmd. Returns number of bytes actually written.
Tries to identify the device drv. The hardware type is returned in t,
type_str contains a descriptive string which also includes the drives'
operating system. Both t and type_str may be NULL
in case the
caller is not interrested in any of both values.
The return value is 0
if the device responded to the "M-R"
command,
even if it could not be identified, < 0 indicates error.
Not documented yet. See libd64copy and d64copy source.
Types and prototypes are defined in d64copy.h
.
Not documented yet. See libcbmcopy and cbmcopy source.
Types and prototypes are defined in cbmcopy.h
.