Class Module for EA DOGS102 Graphic LCD display SPI Interface

Dependents:   mDotEVBM2X MTDOT-EVB-LinkCheck-AL MTDOT-EVBDemo-DRH MTDOT_BOX_EVB_LCD_Helloworld ... more

Embed: (wiki syntax)

« Back to documentation index

DOGS102 Class Reference

DOGS102 Class Reference

Using the Multitech MTDOT-EVB. More...

#include <DOGS102.h>

Public Types

enum  DATAMASKS
 

collection of data masks for commands

More...

Public Member Functions

 DOGS102 (SPI &spi, DigitalOut &spi_cs, DigitalOut &cmnd_data)
 Create the DOGS102 object.
void clearBuffer (void)
 Clears the buffer memory This commands clears the display buffer if Update flag is set it clears the display directly if Update flagis cleared.
uint8_t getUpdateState (void)
 Gets state of update semaphore.

Detailed Description

Using the Multitech MTDOT-EVB.

Example:

  #include "mbed.h"
  #include "DOGS102.h"


 
  int main() 
  {

  }

API abstraction for the DOGS102 Liquid Crystal Graphics Display initial version will be polling only. Interrupt service will be added at a later point

Definition at line 72 of file DOGS102.h.


Member Enumeration Documentation

enum DATAMASKS

collection of data masks for commands

Definition at line 81 of file DOGS102.h.


Constructor & Destructor Documentation

DOGS102 ( SPI &  spi,
DigitalOut &  spi_cs,
DigitalOut &  cmnd_data 
)

Create the DOGS102 object.

Parameters:
spi- A defined SPI object
spi_cs- a defined DigitalOut connected to CS pin of LCD
cmnd_data- a defined Digitalout connected to Command/Data pin of LCD

Definition at line 33 of file DOGS102.cpp.


Member Function Documentation

void clearBuffer ( void   )

Clears the buffer memory This commands clears the display buffer if Update flag is set it clears the display directly if Update flagis cleared.

Definition at line 58 of file DOGS102.cpp.

uint8_t getUpdateState ( void   )

Gets state of update semaphore.

Returns:
update semaphore flag state 0 = direct update of LCD >0 is update LCD buffer only

Definition at line 169 of file DOGS102.cpp.