OpenCBM
|
Shared library / DLL for accessing the driver. More...
Go to the source code of this file.
Macros | |
#define | DBG_USERMODE |
#define | DBG_PROGNAME "OPENCBM.DLL" |
#define | DLL |
mark: We are building the DLL */ | |
Functions | |
int CBMAPIDECL | cbm_identify (CBM_FILE HandleDevice, unsigned char DeviceAddress, enum cbm_device_type_e *CbmDeviceType, const char **CbmDeviceString) |
Identify the connected floppy drive. More... | |
#define DBG_PROGNAME "OPENCBM.DLL" |
#define DBG_USERMODE |
int CBMAPIDECL cbm_identify | ( | CBM_FILE | HandleDevice, |
unsigned char | DeviceAddress, | ||
enum cbm_device_type_e * | CbmDeviceType, | ||
const char ** | CbmDeviceString | ||
) |
Identify the connected floppy drive.
This function tries to identify a connected floppy drive. For this, it performs some M-R operations.
HandleDevice | A CBM_FILE which contains the file handle of the driver. |
DeviceAddress | The address of the device on the IEC serial bus. This is known as primary address, too. |
CbmDeviceType | Pointer to an enum which will hold the type of the device. |
CbmDeviceString | Pointer to a pointer which will point on a string which tells the name of the device. |
If cbm_driver_open() did not succeed, it is illegal to call this function.
Definition at line 66 of file detect.c.
References cbm_dt_cbm1541, cbm_dt_cbm1570, cbm_dt_cbm1571, cbm_dt_cbm1581, cbm_dt_cbm3040, cbm_dt_cbm4040, cbm_dt_cbm8050, cbm_dt_cbm8250, cbm_dt_unknown, cbm_exec_command(), cbm_raw_read(), cbm_talk(), cbm_untalk(), FUNC_ENTER, and FUNC_LEAVE_INT.
Referenced by cbm_identify_xp1541(), and vdd_identify().