8 class Spi
: public avr::Hardware
{
10 Spi(Bus
& bus
, unsigned int stcVec
);
15 * Attach a register with name \e name to the hardware.
17 bool attachReg(const char *name
, IORegister
*reg
);
20 * Finishes the construction of the hardware.
21 * This should verify the registers and parameters
22 * @returns true if build was successful.
27 * An attached register changed state.
29 void regChanged( IORegister
*reg
);
32 * Perform a single step.
37 * Reset the internal hardware.
42 * Called just before an interrupt handler is invoked.
44 void beforeInvokeInterrupt(unsigned int vector
);
47 void setSpcr(unsigned char val
);
48 void setSpdr(unsigned char val
);
61 unsigned char spdrWrite
;
62 unsigned char spdrRead
;