struct USART : Controller, public library { void enter(); bool quit(); void usleep(unsigned milliseconds); bool readable(); uint8 read(); bool writable(); void write(uint8 data); uint2 data(); void latch(bool data); USART(bool port); ~USART(); private: bool latched; bool data1; bool data2; unsigned counter; uint8 rxlength; uint8 rxdata; vector rxbuffer; uint8 txlength; uint8 txdata; vector txbuffer; function, //quit function, //usleep function, //readable function, //read function, //writable function //write )> init; function main; };