home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 6
/
AACD06.ISO
/
AACD
/
Emulation
/
Atari800
/
sio.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-02-27
|
921b
|
38 lines
#ifndef __SIO__
#define __SIO__
#include "atari.h"
#define MAX_DRIVES 8
#define FILENAME_LEN 256
extern char sio_status[256];
extern char sio_filename[MAX_DRIVES][FILENAME_LEN];
int SIO_Mount (int diskno, char *filename);
void SIO_Dismount (int diskno);
void SIO_DisableDrive (int diskno);
void SIO (void);
#define SIO_NoFrame (0x00)
#define SIO_CommandFrame (0x01)
#define SIO_StatusRead (0x02)
#define SIO_ReadFrame (0x03)
#define SIO_WriteFrame (0x04)
#define SIO_FinalStatus (0x05)
#define SIO_FormatFrame (0x06)
void SwitchCommandFrame(int onoff);
void SIO_PutByte(int byte);
int SIO_GetByte(void);
void SIO_Initialize(void);
void SIO_Initialise(int *argc, char *argv[]);
/* Some defines about the serial I/O timing. Currently fixed! */
#define XMTDONE_INTERVAL 15
#define SERIN_INTERVAL 15
#define SEROUT_INTERVAL 15
#define VBI_INTERVAL 165
#define ACK_INTERVAL 50
#endif