9 class Usart
: public avr::Hardware
{
11 Usart(Bus
& bus
, const std::string
& name
, unsigned int udreVec
,
12 unsigned int rxVec
, unsigned int txVec
);
17 * Attach a register with name \e name to the hardware.
19 bool attachReg(const char *name
, IORegister
*reg
);
22 * Finishes the construction of the hardware.
23 * This should verify the registers and parameters
24 * @returns true if build was successful.
29 * An attached register changed state.
31 void regChanged( IORegister
*reg
);
34 * Perform a single step.
39 * Reset the internal hardware.
44 * Called just before an interrupt handler is invoked.
46 void beforeInvokeInterrupt(unsigned int vector
);
51 void checkForNewSetIrq(unsigned char val
);
52 void checkForNewClearIrq(unsigned char val
);
53 void setUdr(unsigned char udr
);
54 void setUcsra(unsigned char ucsra
);
55 void setUcsrb(unsigned char ucsrb
);
56 void setFramelength();
71 unsigned char udrWrite
;
72 unsigned char udrRead
;
101 unsigned char ucsra_old
;
102 unsigned char ucsrb_old
;
108 #endif /*AVR_USART_H*/