libsidplayfp  0.3.5
component.h
1 /***************************************************************************
2  component.h - Standard IC interface functions.
3  -------------------
4  begin : Fri Apr 4 2001
5  copyright : (C) 2001 by Simon White
6  email : s_a_white@email.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef _component_h_
19 #define _component_h_
20 
21 #include "sidtypes.h"
22 
23 class component
24 {
25 public:
26  virtual void reset (void) = 0;
27  virtual uint8_t read (uint_least8_t addr) = 0;
28  virtual void write (uint_least8_t addr, uint8_t data) = 0;
29  virtual const char *credits (void) = 0;
30  virtual const char *error (void) = 0;
31 };
32 
33 #endif // _component_h_