Support for the emWin GUI library from Segger.

Dependents:   lpc4088_displaymodule_emwin

Embed: (wiki syntax)

« Back to documentation index

EwHAL Class Reference

EwHAL Class Reference

This is the main class to get Segger's emwin library up-and-running with the mbed online tools. More...

#include <EwHAL.h>

Public Member Functions

void * getMemoryBlockAddress ()
 Returns the address to a memory block which may be used by emwin to allocate objects.
uint32_t getMemoryBlockSize ()
 Returns the size of the memory block returned by getMemoryBlockAddress().
uint32_t getDisplayWidth ()
 Returns the width of the display.
uint32_t getDisplayHeight ()
 Returns the height of the display.
void * getFrameBufferAddress ()
 Returns the address of the framebuffer (video RAM).
uint32_t getFrameBufferSize ()
 Returns the size in bytes of the framebuffer (video RAM).
int getNumFrameBuffers ()
 Returns the number of frame buffers to use, default is 1 meaning that drawing takes place on the same buffer that is being shown.
void showFrameBuffer (int id)
 Shows frame buffer number id.
int32_t getTouchX ()
 Returns the x coordinate of the latest touch event.
int32_t getTouchY ()
 Returns the y coordinate of the latest touch event.

Detailed Description

This is the main class to get Segger's emwin library up-and-running with the mbed online tools.

This class handles the porting/integration layer in emwin.

Definition at line 14 of file EwHAL.h.


Member Function Documentation

uint32_t getDisplayHeight (  )

Returns the height of the display.

Definition at line 41 of file EwHAL.h.

uint32_t getDisplayWidth (  )

Returns the width of the display.

Definition at line 36 of file EwHAL.h.

void* getFrameBufferAddress (  )

Returns the address of the framebuffer (video RAM).

This address will be given to emwin by a call to LCD_SetVRAMAddrEx.

Definition at line 47 of file EwHAL.h.

uint32_t getFrameBufferSize (  )

Returns the size in bytes of the framebuffer (video RAM).

Definition at line 52 of file EwHAL.h.

void* getMemoryBlockAddress (  )

Returns the address to a memory block which may be used by emwin to allocate objects.

The memory block returned will be given to emwin by calling GUI_ALLOC_AssignMemory.

Definition at line 25 of file EwHAL.h.

uint32_t getMemoryBlockSize (  )

Returns the size of the memory block returned by getMemoryBlockAddress().

Definition at line 31 of file EwHAL.h.

int getNumFrameBuffers (  )

Returns the number of frame buffers to use, default is 1 meaning that drawing takes place on the same buffer that is being shown.

Double buffering is 2 and Tripple buffering is 3. No other values should be used.

Definition at line 60 of file EwHAL.h.

int32_t getTouchX (  )

Returns the x coordinate of the latest touch event.

Definition at line 72 of file EwHAL.h.

int32_t getTouchY (  )

Returns the y coordinate of the latest touch event.

Definition at line 77 of file EwHAL.h.

void showFrameBuffer ( int  id )

Shows frame buffer number id.

If getNumFrameBuffers() returns 1 then this id will always be 0, if getNumFrameBuffers() returns N then this function will be called with 0..(N-1).

Definition at line 117 of file EwHAL.cpp.