|
COSA
An Object-Oriented Platform for Arduino Programming
|
#include <TWI.hh>


Public Member Functions | |
| Driver (uint8_t addr) | |
| bool | is_async () const |
| void | sync_request () |
| void | async_request () |
| virtual void | on_completion (uint8_t type, int count) |
Protected Attributes | |
| uint8_t | m_addr |
| bool | m_async |
Friends | |
| class | TWI |
| void | TWI_vect (void) |
TWI Device Driver support class. Holds the address of the device. Should be sub-classed to implement a device driver and access functions.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Service completion callback when a read/write has been completed.
| [in] | type | event code. |
| [in] | count | number of bytes in request. |
Reimplemented in TWI::Slave.
|
inline |
|
friend |