#include <VLCD.hh>
|
virtual void | on_event (uint8_t type, uint16_t value) |
|
Virtual LCD Slave device
Definition at line 133 of file VLCD.hh.
VLCD::Slave::Slave |
( |
LCD::Device * |
lcd, |
|
|
uint8_t |
addr = 0x5a |
|
) |
| |
|
inline |
Construct Virtual LCD Slave with given LCD and TWI address.
- Parameters
-
[in] | lcd | implementation. |
[in] | addr | TWI address (default 0x5a). |
Definition at line 144 of file VLCD.hh.
void TWI::Driver::async_request |
( |
| ) |
|
|
inlineinherited |
Set asynchronous request mode.
Definition at line 94 of file TWI.hh.
void TWI::Slave::begin |
( |
| ) |
|
|
inherited |
Start TWI bus logic for the slave device.
Definition at line 290 of file TWI.cpp.
bool TWI::Driver::is_async |
( |
| ) |
const |
|
inlineinherited |
Return true(1) if the request is asyncrhonous otherwise false(0).
Definition at line 78 of file TWI.hh.
virtual void TWI::Slave::on_completion |
( |
uint8_t |
type, |
|
|
int |
count |
|
) |
| |
|
inlinevirtualinherited |
Service completion callback when a read/write has been completed.
- Parameters
-
[in] | type | event code. |
[in] | count | number of bytes in request. |
Reimplemented from TWI::Driver.
Definition at line 163 of file TWI.hh.
void TWI::Slave::on_event |
( |
uint8_t |
type, |
|
|
uint16_t |
value |
|
) |
| |
|
protectedvirtualinherited |
Filter Event::WRITE_COMPLETED_TYPE(size) and calls on_request() with given write block as argument. The device is marked as ready when the request has been completed and a possible result block is available.
- Parameters
-
[in] | type | the event type. |
[in] | value | the event value. |
Reimplemented from Event::Handler.
Definition at line 302 of file TWI.cpp.
void VLCD::Slave::on_request |
( |
void * |
buf, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
Slave request handler; parse and dispatch LCD functions.
- Parameters
-
[in] | buf | buffer pointer. |
[in] | size | of buffer. |
Implements TWI::Slave.
Definition at line 25 of file VLCD.cpp.
void TWI::Slave::read_buf |
( |
void * |
buf, |
|
|
size_t |
size |
|
) |
| |
|
inherited |
Set read (result) buffer. Must be called before starting TWI.
- Parameters
-
[in] | buf | buffer pointer. |
[in] | size | of buffer. |
Definition at line 319 of file TWI.cpp.
void TWI::Driver::sync_request |
( |
| ) |
|
|
inlineinherited |
Set synchronous request mode.
Definition at line 86 of file TWI.hh.
void TWI::Slave::write_buf |
( |
void * |
buf, |
|
|
size_t |
size |
|
) |
| |
|
inherited |
Set write (argument) buffer. Must be called before starting TWI.
- Parameters
-
[in] | buf | buffer pointer. |
[in] | size | of buffer. |
Definition at line 312 of file TWI.cpp.
const uint8_t VLCD::Slave::BUF_MAX = 40 |
|
static |
uint8_t TWI::Driver::m_addr |
|
protectedinherited |
Device bus address.
Definition at line 114 of file TWI.hh.
bool TWI::Driver::m_async |
|
protectedinherited |
Asynchronious mode.
Definition at line 117 of file TWI.hh.
const uint8_t TWI::Slave::READ_IX = 1 |
|
staticprotectedinherited |
const uint8_t TWI::Slave::WRITE_IX = 0 |
|
staticprotectedinherited |
Internal index in io-vector for read/write buffers.
Definition at line 183 of file TWI.hh.
The documentation for this class was generated from the following files: