00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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