1 #ifndef  __Z80_CTC_H
2 #define  __Z80_CTC_H
3 
4 #include "../z80-global"
5 
6 enum ctc_triggers { trg0, trg1, trg2, trg3, clk };
7 enum ctc_control_pins { ctc_rd, ctc_m1, ctc_iorq, ctc_reset};
8 
9 extern int init_ctc(void);
10 extern void reset_ctc(void);
11 extern bool is_ctc_port(unsigned char port);
12 extern void send_pulse_to_ctc(unsigned channel);
13 extern void set_ctc_pin(unsigned c_pin, bit level);
14 extern unsigned char ctc_supplies_byte(unsigned char channel);
15 
16 #endif
17