#include <LCD.hh>
LCD IO adapter for 3 wire SPI (MOSI, SCK and SCE).
Definition at line 300 of file LCD.hh.
Construct display device driver adapter with given pins. Implicit usage of SPI SCK(D13/D4) and MOSI(D11/D5).
- Parameters
-
[in] | sce | screen chip enable pin (default D9/D3). |
Definition at line 308 of file LCD.hh.
virtual void LCD::SPI3W::begin |
( |
| ) |
|
|
inlinevirtual |
Start of data/command transfer block.
Implements LCD::IO.
Definition at line 317 of file LCD.hh.
static Clock SPI::Driver::clock |
( |
uint32_t |
freq | ) |
|
|
inlinestaticinherited |
Calculate SPI clock rate (scale factor) for given frequency.
- Parameters
-
[in] | freq | device max frequency (in Hz). |
- Returns
- clock rate.
Definition at line 117 of file SPI.hh.
static Clock SPI::Driver::cycle |
( |
uint16_t |
ns | ) |
|
|
inlinestaticinherited |
Calculate SPI clock rate (scale factor) for given clock cycle time in nano seconds.
- Parameters
-
[in] | ns | min device clock cycle time. |
- Returns
- clock rate.
Definition at line 135 of file SPI.hh.
virtual void LCD::SPI3W::end |
( |
| ) |
|
|
inlinevirtual |
End of data/command transfer block.
Implements LCD::IO.
Definition at line 327 of file LCD.hh.
void SPI::Driver::set_clock |
( |
Clock |
rate | ) |
|
|
inherited |
Set SPI master clock rate.
- Parameters
-
Definition at line 297 of file SPI.cpp.
void SPI::Driver::set_clock |
( |
uint32_t |
freq | ) |
|
|
inlineinherited |
Set SPI master clock frequency.
- Parameters
-
[in] | freq | device max frequency (in Hz). |
Definition at line 157 of file SPI.hh.
virtual void LCD::SPI3W::write |
( |
uint8_t |
data | ) |
|
|
inlinevirtual |
Write byte (8bit) to display. Must be in data/command transfer block.
- Parameters
-
Implements LCD::IO.
Definition at line 339 of file LCD.hh.
virtual void LCD::SPI3W::write |
( |
const void * |
buf, |
|
|
size_t |
size |
|
) |
| |
|
inlinevirtual |
Write character buffer to display. Must be in data/command transfer block.
- Parameters
-
[in] | buf | pointer to buffer. |
[in] | size | number of bytes in buffer. |
Implements LCD::IO.
Definition at line 351 of file LCD.hh.
Device chip select pin.
Definition at line 166 of file SPI.hh.
List of drivers.
Definition at line 164 of file SPI.hh.
Pulse SPI::Driver::m_pulse |
|
protectedinherited |
Chip select pulse width.
Definition at line 167 of file SPI.hh.
uint8_t SPI::Driver::m_spcr |
|
protectedinherited |
SPI/SPCR hardware control register setting.
Definition at line 173 of file SPI.hh.
uint8_t SPI::Driver::m_spsr |
|
protectedinherited |
SPI/SPSR hardware status register.
Definition at line 174 of file SPI.hh.
The documentation for this class was generated from the following file: