Bare Metal Programming Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Protected Member Functions | List of all members
bmptk::chips::pcd8544< arg_sce, arg_res, arg_dc, arg_sdin, arg_sclk, x_size, y_size > Class Template Reference

create a frame controlled by a pcd8544 LCD controller More...

#include <pcd8544.h>

Inheritance diagram for bmptk::chips::pcd8544< arg_sce, arg_res, arg_dc, arg_sdin, arg_sclk, x_size, y_size >:
bmptk::graphics::frame

Public Member Functions

 pcd8544 ()
 construct the controller
 
void checked_write (const bmptk::graphics::vector p, const bmptk::graphics::color c)
 write one pixel
 
void clear (const bmptk::graphics::color c=bmptk::graphics::color::white())
 fill the full frame with the indicated color
 
- Public Member Functions inherited from bmptk::graphics::frame
 frame (const vector size)
 create a frame of specified size
 
vector size_get () const
 get the size of the frame
 
virtual vector translate_outfrom (const vector p) const
 translate a subframe coordinate to a master frame coordinate
 
virtual vector translate_into (const vector p) const
 translate a master frame coordinate to a subframe coordinate
 
bool is_valid (vector p)
 whether p is within the frame
 
color bg_get ()
 get the backround color
 
void write (const vector p, const color c)
 write one pixel, address specified by vector
 
virtual void flush ()
 for buffered frames: write the changes to the underlying frame
 

Static Protected Member Functions

static void command (unsigned char d)
 send command to the controller chip
 

Additional Inherited Members

- Protected Attributes inherited from bmptk::graphics::frame
const vector size
 frame size
 
color bg
 most recently applied background color (as used in clear())
 

Detailed Description

template<typename arg_sce, typename arg_res, typename arg_dc, typename arg_sdin, typename arg_sclk, int x_size, int y_size>
class bmptk::chips::pcd8544< arg_sce, arg_res, arg_dc, arg_sdin, arg_sclk, x_size, y_size >

create a frame controlled by a pcd8544 LCD controller

Definition at line 44 of file pcd8544.h.

Constructor & Destructor Documentation

template<typename arg_sce, typename arg_res, typename arg_dc, typename arg_sdin, typename arg_sclk, int x_size, int y_size>
bmptk::chips::pcd8544< arg_sce, arg_res, arg_dc, arg_sdin, arg_sclk, x_size, y_size >::pcd8544 ( )
inline

construct the controller

The argument is the size of the frame The initialization of the controller is LCD-specific and must be done by the derived type.

Definition at line 96 of file pcd8544.h.

Member Function Documentation

template<typename arg_sce, typename arg_res, typename arg_dc, typename arg_sdin, typename arg_sclk, int x_size, int y_size>
void bmptk::chips::pcd8544< arg_sce, arg_res, arg_dc, arg_sdin, arg_sclk, x_size, y_size >::checked_write ( const bmptk::graphics::vector  p,
const bmptk::graphics::color  c 
)
inlinevirtual

write one pixel

A concrete frame class must implement this function. It can safely assume that the address is within the frame.

Implements bmptk::graphics::frame.

Definition at line 118 of file pcd8544.h.

template<typename arg_sce, typename arg_res, typename arg_dc, typename arg_sdin, typename arg_sclk, int x_size, int y_size>
void bmptk::chips::pcd8544< arg_sce, arg_res, arg_dc, arg_sdin, arg_sclk, x_size, y_size >::clear ( const bmptk::graphics::color  c = bmptk::graphics::color::white())
inlinevirtual

fill the full frame with the indicated color

This method fills the screen with the indicated color and save this color for bg_get().

Reimplemented from bmptk::graphics::frame.

Definition at line 133 of file pcd8544.h.


The documentation for this class was generated from the following file: