1 // t6963-tester.h - description. -*- C++ -*-
3 // Copyright (C) 1999, 2000 Red Hat.
4 // This file is part of SID and is licensed under the GPL.
5 // See the file COPYING.SID for conditions for redistribution.
7 #ifndef T6963C_TESTER_DEF_H
8 #define T6963C_TESTER_DEF_H 1
11 #include <sidpinutil.h>
12 #include <sidbusutil.h>
13 #include <sidattrutil.h>
14 #include <sidcomputil.h>
17 using namespace sidutil;
20 typedef unsigned char uchar;
22 class T6963C_tester : public virtual component,
23 public fixed_attribute_map_component,
24 public fixed_accessor_map_component,
25 public fixed_pin_map_component,
26 public no_bus_component,
27 public fixed_relation_map_component
32 callback_pin<T6963C_tester> run_ipin;
37 bool check_status( uchar what );
38 bool send_cmd( uchar cmd );
40 bool send_data( uchar data );
41 bool get_data( uchar& data );
43 bool auto_write( uchar data );
44 bool auto_read( uchar& data );
45 bool reset_auto( uchar mode );
47 bool write_mem( uchar cmd, uchar data );
48 bool read_mem( uchar cmd, uchar& data );
50 bool set_word_reg( uchar cmd, uchar lo, uchar hi );
52 void mem_set( uchar val, unsigned addr, int len );
66 int state, next_state;
67 unsigned long curr_count, wait_count;
71 void yield( int to_state, unsigned long count );
80 void test_attr_mode();
86 void run( host_int_4 );
91 #endif // T6963C_TESTER_DEF_H