13 * @brief 16-bit timers
17 class Timer16
: public Hardware
{
19 Timer16(Bus
& bus
, unsigned char tovmask
);
22 bool attachReg(const char *name
, IORegister
*reg
);
23 void regChanged( IORegister
*reg
);
28 void setClock(unsigned char tccr
);
31 unsigned char tovmask
;
35 bool blockCompareMatch
;
36 unsigned char timerMode
;
37 unsigned char compareMode
;
47 inline Timer16::Timer16(Bus
& bus
, unsigned char tovmask
)
48 : Hardware(bus
), tovmask(tovmask
), direction(1) {
49 blockCompareMatch
= false;
57 #endif /*AVR_TIMER16_H*/