/****************************************************************************/
/*  FILE:   ram_card.c                                                      */
/*                                                                          */
/*  PURPOSE:    Provides functions to provide low level access to the       */
/*              TASS Mk IV RAM Buffer card.                                 */
/*                                                                          */
/*  RCS ID:     $Id: ram_card.h,v 1.1 1998/09/28 06:41:51 chris Exp $  */
/****************************************************************************/
#ifndef RAM_CARD_H
#define RAM_CARD_H


#define RAM_CLOSED     -999
#define RAM_OPEN4READ     O_RDONLY
#define RAM_OPEN4WRITE    O_WRONLY 

#define RAM_OK            0
#define RAM_ERROR        -1

/* Prototypes */
int ram_open(int open_type);
int ram_close(void);
int ram_read_block (char *buffer, int *buffer_len);
int ram_write_block(char *buffer, int *buffer_len);
int ram_set_user_status(char stat);
int ram_set_buffer_full(int bytes);
int ram_set_expected(int bytes);
int ram_hard_reset(void);


#endif /* RAM_CARD_H */
