Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

cbmcopy_int.h

00001 /*
00002  *      This program is free software; you can redistribute it and/or
00003  *      modify it under the terms of the GNU General Public License
00004  *      as published by the Free Software Foundation; either version
00005  *      2 of the License, or (at your option) any later version.
00006  *
00007  *  Copyright 2001 Michael Klein <michael(dot)klein(at)puffin(dot)lb(dot)shuttle(dot)de>
00008 */
00009 
00010 /* $Id: cbmcopy_int.h,v 1.6 2006/04/10 15:46:59 trikalio Exp $ */
00011 
00012 #ifndef CBMCOPY_INT_H
00013 #define CBMCOPY_INT_H
00014 
00015 #include "opencbm.h"
00016 
00017 typedef struct {
00018     int  (*write_byte)(CBM_FILE, unsigned char); 
00019     unsigned char (*read_byte)(CBM_FILE); 
00020     int  (*check_error)(CBM_FILE,int); 
00021     int  (*upload_turbo)(CBM_FILE, unsigned char, enum cbm_device_type_e,int);
00022     int  (*start_turbo)(CBM_FILE,int);
00023     void (*exit_turbo)(CBM_FILE,int);
00024 } transfer_funcs;
00025 
00026 #define DECLARE_TRANSFER_FUNCS(x) \
00027     transfer_funcs cbmcopy_ ## x = {write_byte, read_byte, check_error, \
00028                         upload_turbo, start_turbo, exit_turbo}
00029 
00030 #endif

Generated on Sun Apr 30 18:45:44 2006 for opencbm by  doxygen 1.4.2