File: component.h

package info (click to toggle)
sidplay-libs 2.1.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,496 kB
  • ctags: 2,567
  • sloc: cpp: 18,544; sh: 15,479; ansic: 711; makefile: 225; perl: 35
file content (33 lines) | stat: -rw-r--r-- 1,408 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************************************************
                          component.h  -  Standard IC interface functions.
                             -------------------
    begin                : Fri Apr 4 2001
    copyright            : (C) 2001 by Simon White
    email                : s_a_white@email.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef _component_h_
#define _component_h_

#include "sidtypes.h"

class component
{
public:
    virtual void    reset (void) = 0;
    virtual uint8_t read  (uint_least8_t addr) = 0;
    virtual void    write (uint_least8_t addr, uint8_t data) = 0;
    virtual const   char *credits (void) = 0;
    virtual const   char *error   (void) = 0;
};

#endif // _component_h_