#include <opencbm.h>
Go to the source code of this file.
Typedefs | |
| typedef enum FUNCTIONCODE | FUNCTIONCODE |
Enumerations | |
| enum | FUNCTIONCODE { FC_DRIVER_OPEN, FC_DRIVER_CLOSE, FC_LISTEN, FC_TALK, FC_OPEN, FC_CLOSE, FC_RAW_READ, FC_RAW_WRITE, FC_UNLISTEN, FC_UNTALK, FC_GET_EOI, FC_CLEAR_EOI, FC_RESET, FC_PP_READ, FC_PP_WRITE, FC_IEC_POLL, FC_IEC_GET, FC_IEC_SET, FC_IEC_RELEASE, FC_IEC_WAIT, FC_UPLOAD, FC_DEVICE_STATUS, FC_EXEC_COMMAND, FC_IDENTIFY, FC_GET_DRIVER_NAME, FC_VDD_INSTALL_IOHOOK, FC_VDD_UNINSTALL_IOHOOK, FC_VDD_USLEEP, FC_IEC_SETRELEASE, FC_IDENTIFY_XP1541 } |
Functions | |
| BOOLEAN | vdd_driver_open (VOID) |
| Opens the driver. | |
| BOOLEAN | vdd_driver_close (CBM_FILE) |
| Closes the driver. | |
| BOOLEAN | vdd_raw_write (CBM_FILE) |
| Write data to the IEC serial bus. | |
| BOOLEAN | vdd_raw_read (CBM_FILE) |
| Read data from the IEC serial bus. | |
| BOOLEAN | vdd_listen (CBM_FILE) |
| Send a LISTEN on the IEC serial bus. | |
| BOOLEAN | vdd_talk (CBM_FILE) |
| Send a TALK on the IEC serial bus. | |
| BOOLEAN | vdd_open (CBM_FILE) |
| Open a file on the IEC serial bus. | |
| BOOLEAN | vdd_close (CBM_FILE) |
| Close a file on the IEC serial bus. | |
| BOOLEAN | vdd_unlisten (CBM_FILE) |
| Send an UNLISTEN on the IEC serial bus. | |
| BOOLEAN | vdd_untalk (CBM_FILE) |
| Send an UNTALK on the IEC serial bus. | |
| BOOLEAN | vdd_get_eoi (CBM_FILE) |
| Get EOI flag after bus read. | |
| BOOLEAN | vdd_clear_eoi (CBM_FILE) |
| Reset the EOI flag. | |
| BOOLEAN | vdd_reset (CBM_FILE) |
| RESET all devices. | |
| BOOLEAN | vdd_pp_read (CBM_FILE) |
| Read a byte from a XP1541/XP1571 cable. | |
| BOOLEAN | vdd_pp_write (CBM_FILE) |
| Write a byte to a XP1541/XP1571 cable. | |
| BOOLEAN | vdd_iec_poll (CBM_FILE) |
| Read status of all bus lines. | |
| BOOLEAN | vdd_iec_set (CBM_FILE) |
| Activate a line on the IEC serial bus. | |
| BOOLEAN | vdd_iec_release (CBM_FILE) |
| Deactivate a line on the IEC serial bus. | |
| BOOLEAN | vdd_iec_setrelease (CBM_FILE) |
| Activate and deactive a line on the IEC serial bus. | |
| BOOLEAN | vdd_iec_wait (CBM_FILE) |
| Wait for a line to have a specific state. | |
| BOOLEAN | vdd_iec_get (CBM_FILE) |
| Get the (logical) state of a line on the IEC serial bus. | |
| BOOLEAN | vdd_upload (CBM_FILE) |
| Upload a program into a floppy's drive memory. | |
| BOOLEAN | vdd_device_status (CBM_FILE) |
| Read the drive status from a floppy. | |
| BOOLEAN | vdd_exec_command (CBM_FILE) |
| Executes a command in the floppy drive. | |
| BOOLEAN | vdd_identify (CBM_FILE) |
| Identify the connected floppy drive. | |
| BOOLEAN | vdd_identify_xp1541 (CBM_FILE) |
| Identify the cable connected to a specific floppy drive. | |
| BOOLEAN | vdd_get_driver_name (VOID) |
| Get the name of the driver for a specific parallel port. | |
| BOOLEAN | vdd_install_iohook (CBM_FILE) |
| Install the I/O hook. | |
| BOOLEAN | vdd_uninstall_iohook (CBM_FILE) |
| Uninstall the I/O hook. | |
| USHORT | vdd_uninstall_iohook_internal (VOID) |
| Uninstall the I/O hook. | |
| BOOLEAN | vdd_usleep (VOID) |
| Sleep some microseconds. | |
| CBM_FILE | vdd_cbmfile_get (WORD) |
| WORD | vdd_cbmfile_store (CBM_FILE) |
| CBM_FILE | vdd_cbmfile_delete (WORD) |
| VOID | vdd_cbmfile_closeall (VOID) |
Variables | |
| HANDLE | vdd_handle |
**************************************************************
Definition in file vdd.h.
|
|
Reset the EOI flag. This function resets the EOI ("End of Information") flag which might be still set after reading the IEC serial bus.
Definition at line 534 of file execute.c. References cbm_clear_eoi(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Close a file on the IEC serial bus. This function closes a file on the IEC serial bus.
Definition at line 418 of file execute.c. References cbm_close(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Read the drive status from a floppy. This function reads the drive status of a connected floppy drive.
If an error occurs, this function returns a "99, DRIVER ERROR,00,00\r" and the value 99. If vdd_driver_open() did not succeed, it is illegal to call this function. Definition at line 913 of file execute.c. References cbm_device_status(). Referenced by VDDDispatch(). |
|
|
Closes the driver. Closes the driver, which has be opened with vdd_driver_open() before.
If vdd_driver_open() did not succeed, it is illegal to call vdd_driver_close(). Definition at line 175 of file execute.c. References cbm_driver_close(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Opens the driver. This function Opens the driver.
Definition at line 130 of file execute.c. References cbm_driver_close(), cbm_driver_open(), CBM_FILE, FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Executes a command in the floppy drive. This function Executes a command in the connected floppy drive.
Definition at line 946 of file execute.c. References cbm_exec_command(). Referenced by VDDDispatch(). |
|
|
Get the name of the driver for a specific parallel port. Get the name of the driver for a specific parallel port.
Definition at line 209 of file execute.c. References cbm_get_driver_name(). Referenced by VDDDispatch(). |
|
|
Get EOI flag after bus read. This function gets the EOI ("End of Information") flag after reading the IEC serial bus.
If vdd_driver_open() did not succeed, it is illegal to call this function. Definition at line 509 of file execute.c. References cbm_get_eoi(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Identify the connected floppy drive. This function tries to identify a connected floppy drive. For this, it performs some M-R operations.
Definition at line 984 of file execute.c. References cbm_identify(). Referenced by VDDDispatch(). |
|
|
Identify the cable connected to a specific floppy drive. This function tries to identify if the given floppy drive has an XP1541 cable connected.
Definition at line 1030 of file execute.c. References cbm_identify_xp1541(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Get the (logical) state of a line on the IEC serial bus. This function gets the (logical) state of a line on the IEC serial bus.
Definition at line 824 of file execute.c. References cbm_iec_get(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Read status of all bus lines. This function reads the state of all lines on the IEC serial bus.
If vdd_driver_open() did not succeed, it is illegal to call this function.
Definition at line 663 of file execute.c. References cbm_iec_poll(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Deactivate a line on the IEC serial bus. This function deactivates (sets to 5V) a line on the IEC serial bus.
Definition at line 720 of file execute.c. References cbm_iec_release(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Activate a line on the IEC serial bus. This function activates (sets to 0V) a line on the IEC serial bus.
Definition at line 692 of file execute.c. References cbm_iec_set(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Activate and deactive a line on the IEC serial bus. This function activates (sets to 0V, L) and deactivates (set to 5V, H) lines on the IEC serial bus.
Definition at line 757 of file execute.c. References cbm_iec_setrelease(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Wait for a line to have a specific state. This function waits for a line to enter a specific state on the IEC serial bus.
Definition at line 793 of file execute.c. References cbm_iec_wait(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Install the I/O hook. This function installs the I/O hook for accessing the VDD via IN and OUT assembler instructions
Definition at line 1274 of file execute.c. References FUNC_ENTER, FUNC_LEAVE_BOOLEAN, PP_XA_ATN_IN, PP_XA_ATN_OUT, PP_XA_CLK_IN, PP_XA_CLK_OUT, PP_XA_DATA_IN, PP_XA_DATA_OUT, PP_XA_OUTEOR, PP_XA_RESET_IN, PP_XA_RESET_OUT, PP_XE_ATN_IN, PP_XE_ATN_OUT, PP_XE_CLK_IN, PP_XE_CLK_OUT, PP_XE_DATA_IN, PP_XE_DATA_OUT, PP_XE_OUTEOR, PP_XE_RESET_IN, PP_XE_RESET_OUT, PP_XM_ATN_IN, PP_XM_ATN_OUT, PP_XM_CLK_IN, PP_XM_CLK_OUT, PP_XM_DATA_IN, PP_XM_DATA_OUT, PP_XM_OUTEOR, PP_XM_RESET_IN, PP_XM_RESET_OUT, and vdd_handle. Referenced by VDDDispatch(). |
|
|
Send a LISTEN on the IEC serial bus. This function sends a LISTEN on the IEC serial bus. This prepares a LISTENer, so that it will wait for our bytes we will write in the future.
Definition at line 318 of file execute.c. References cbm_listen(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Open a file on the IEC serial bus. This function opens a file on the IEC serial bus.
Definition at line 389 of file execute.c. References cbm_open(). Referenced by VDDDispatch(). |
|
|
Read a byte from a XP1541/XP1571 cable. This function reads a single byte from the parallel portion of an XP1541/1571 cable.
If vdd_driver_open() did not succeed, it is illegal to call this function.
Definition at line 601 of file execute.c. References cbm_pp_read(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Write a byte to a XP1541/XP1571 cable. This function writes a single byte to the parallel portion of a XP1541/1571 cable.
If vdd_driver_open() did not succeed, it is illegal to call this function.
Definition at line 632 of file execute.c. References cbm_pp_write(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Read data from the IEC serial bus. This function retrieves data after a vdd_talk().
If vdd_driver_open() did not succeed, it is illegal to call this function. Definition at line 287 of file execute.c. References cbm_raw_read(). Referenced by VDDDispatch(). |
|
|
Write data to the IEC serial bus. This function sends data after a vdd_listen().
If vdd_driver_open() did not succeed, it is illegal to call this function. Definition at line 255 of file execute.c. References cbm_raw_write(). Referenced by VDDDispatch(). |
|
|
RESET all devices. This function performs a hardware RESET of all devices on the IEC serial bus.
Control is returned after a delay which ensures that all devices are ready again. If vdd_driver_open() did not succeed, it is illegal to call this function. Definition at line 565 of file execute.c. References cbm_reset(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Send a TALK on the IEC serial bus. This function sends a TALK on the IEC serial bus. This prepares a TALKer, so that it will prepare to send us some bytes in the future.
Definition at line 351 of file execute.c. References cbm_talk(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Uninstall the I/O hook. This function uninstalls the I/O hook for accessing the VDD via IN and OUT assembler instructions
Definition at line 1411 of file execute.c. References DBG_PREFIX, DBG_PRINT, FUNC_ENTER, FUNC_LEAVE_BOOLEAN, and vdd_uninstall_iohook_internal(). Referenced by VDDDispatch(). |
|
|
Uninstall the I/O hook. This function uninstalls the I/O hook for accessing the VDD via IN and OUT assembler instructions
Definition at line 1372 of file execute.c. References FUNC_ENTER, FUNC_LEAVE_USHORT, and vdd_handle. Referenced by vdd_uninstall_iohook(), and VDDInitialize(). |
|
|
Send an UNLISTEN on the IEC serial bus. This function sends an UNLISTEN on the IEC serial bus. Other than LISTEN and TALK, an UNLISTEN is not directed to just one device, but to all devices on that IEC serial bus.
If vdd_driver_open() did not succeed, it is illegal to call this function. Definition at line 448 of file execute.c. References cbm_unlisten(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Send an UNTALK on the IEC serial bus. This function sends an UNTALK on the IEC serial bus. Other than LISTEN and TALK, an UNTALK is not directed to just one device, but to all devices on that IEC serial bus.
If vdd_driver_open() did not succeed, it is illegal to call this function. Definition at line 478 of file execute.c. References cbm_untalk(), FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
Upload a program into a floppy's drive memory. This function writes a program into the drive's memory via use of "M-W" commands.
Definition at line 870 of file execute.c. References cbm_upload(). Referenced by VDDDispatch(). |
|
|
Sleep some microseconds. This function allows the DOS box to sleep a specified amount of microseconds.
Definition at line 1436 of file execute.c. References FUNC_ENTER, and FUNC_LEAVE_BOOLEAN. Referenced by VDDDispatch(). |
|
|
The handle of the vdd (for being accessed by the I/O hook install functions Definition at line 55 of file vdd.c. Referenced by vdd_install_iohook(), vdd_uninstall_iohook_internal(), and VDDInitialize(). |
1.4.2