COSA
An Object-Oriented Platform for Arduino Programming
|
The ATmega/tiny processors contain several module for serial communication with other devices (UART, TWI and SPI). A number of hardware device also use the 1-Wire protocol (OWI). TWI, SPI and OWI are defined with Driver and Device abstract classes to allow both device drivers and slave devices. As a slave device the ATmega/tiny may act as a device on the wire.
Basic UART device handler with internal buffering. The class requires an input- and output IOBuffer instance. UART is a sub-class of IOStream::Device. See Trace for typical usage.
USB Serial communication with internal buffering.
Basic RS485 device handler with internal buffering. An extension of the UART class with 485/DE signal handling on message completion. Simple master/slave protocol inspired by MODBUS.