LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
c_ui.h File Reference
#include "lms2012.h"

Go to the source code of this file.

Data Structures

struct  GRAPH
 
struct  NOTIFY
 
struct  IQUESTION
 
struct  TQUESTION
 
struct  KEYB
 
struct  BROWSER
 
struct  TXTBOX
 
struct  UI_GLOBALS
 

Macros

#define IMAGEBUFFER_SIZE   1000
 
#define KEYBUF_SIZE   100
 
#define UI_WR_BUFFER_SIZE   255
 
#define GRAPH_BUFFERS   (INPUTS + OUTPUTS)
 
#define GRAPH_BUFFER_SIZE   LCD_WIDTH
 
#define MAX_NOTIFY_LINES   8
 
#define MAX_NOTIFY_LINE_CHARS   32
 
#define TEXTSIZE   24
 
#define HWVERS_SIZE   6
 
#define FWVERS_SIZE   7
 
#define FWBUILD_SIZE   11
 
#define OSVERS_SIZE   17
 
#define OSBUILD_SIZE   11
 
#define IPADDR_SIZE   16
 
#define BUTTON_ACTIVE   0x01
 
#define BUTTON_PRESSED   0x02
 button is pressed at the moment More...
 
#define BUTTON_ACTIVATED   0x04
 button has been activated since last read More...
 
#define BUTTON_LONGPRESS   0x08
 button long press detected More...
 
#define BUTTON_BUMBED   0x10
 button has been pressed and released More...
 
#define BUTTON_LONG_LATCH   0x20
 
#define BUTTON_CLR   (BUTTON_ACTIVATED | BUTTON_LONGPRESS | BUTTON_BUMBED | BUTTON_LONG_LATCH)
 
#define BUTTON_FLUSH   (BUTTON_ACTIVATED | BUTTON_LONGPRESS | BUTTON_BUMBED | BUTTON_LONG_LATCH)
 
#define BUTTON_ALIVE   0x01
 
#define BUTTON_CLICK   0x02
 
#define BUTTON_BUFPRINT   0x04
 
#define BUTTON_SET   (BUTTON_ALIVE | BUTTON_CLICK)
 
#define UiInstance   (*gUiInstance)
 

Functions

RESULT cUiInit (void)
 
RESULT cUiOpen (void)
 
void cUiUpdate (UWORD Time)
 
RESULT cUiClose (void)
 
RESULT cUiExit (void)
 
DATA8 cUiEscape (void)
 
void cUiTestpin (DATA8 State)
 
void cUiAlive (void)
 
void cUiFlush (void)
 opUI_FLUSH byte code More...
 
void cUiButton (void)
 opUI_BUTTON byte code More...
 
void cUiRead (void)
 opUI_READ byte code More...
 
void cUiWrite (void)
 opUI_WRITE byte code More...
 
void cUiDraw (void)
 opUI_DRAW byte code More...
 
void cUiKeepAlive (void)
 opKEEP_ALIVE byte code More...
 
void setUiInstance (UI_GLOBALS *_Instance)
 
UI_GLOBALSgetUiInstance ()
 

Variables

UI_GLOBALSgUiInstance
 

Macro Definition Documentation

#define BUTTON_ACTIVATED   0x04

button has been activated since last read

Definition at line 303 of file c_ui.h.

#define BUTTON_ACTIVE   0x01

Definition at line 301 of file c_ui.h.

#define BUTTON_ALIVE   0x01

Definition at line 313 of file c_ui.h.

#define BUTTON_BUFPRINT   0x04

Definition at line 315 of file c_ui.h.

#define BUTTON_BUMBED   0x10

button has been pressed and released

Definition at line 305 of file c_ui.h.

#define BUTTON_CLICK   0x02

Definition at line 314 of file c_ui.h.

Definition at line 308 of file c_ui.h.

Definition at line 309 of file c_ui.h.

#define BUTTON_LONG_LATCH   0x20

Definition at line 306 of file c_ui.h.

#define BUTTON_LONGPRESS   0x08

button long press detected

Definition at line 304 of file c_ui.h.

#define BUTTON_PRESSED   0x02

button is pressed at the moment

Definition at line 302 of file c_ui.h.

#define BUTTON_SET   (BUTTON_ALIVE | BUTTON_CLICK)

Definition at line 317 of file c_ui.h.

#define FWBUILD_SIZE   11

Definition at line 295 of file c_ui.h.

#define FWVERS_SIZE   7

Definition at line 294 of file c_ui.h.

#define GRAPH_BUFFER_SIZE   LCD_WIDTH

Definition at line 32 of file c_ui.h.

#define GRAPH_BUFFERS   (INPUTS + OUTPUTS)

Definition at line 31 of file c_ui.h.

#define HWVERS_SIZE   6

Definition at line 293 of file c_ui.h.

#define IMAGEBUFFER_SIZE   1000

Definition at line 27 of file c_ui.h.

#define IPADDR_SIZE   16

Definition at line 298 of file c_ui.h.

#define KEYBUF_SIZE   100

Definition at line 28 of file c_ui.h.

#define MAX_NOTIFY_LINE_CHARS   32

Definition at line 35 of file c_ui.h.

#define MAX_NOTIFY_LINES   8

Definition at line 34 of file c_ui.h.

#define OSBUILD_SIZE   11

Definition at line 297 of file c_ui.h.

#define OSVERS_SIZE   17

Definition at line 296 of file c_ui.h.

#define TEXTSIZE   24

Definition at line 193 of file c_ui.h.

#define UI_WR_BUFFER_SIZE   255

Definition at line 29 of file c_ui.h.

#define UiInstance   (*gUiInstance)

Definition at line 460 of file c_ui.h.

Function Documentation

void cUiAlive ( void  )

Definition at line 636 of file c_ui.c.

void cUiButton ( void  )

opUI_BUTTON byte code

Definition at line 7487 of file c_ui.c.

RESULT cUiClose ( void  )

Definition at line 878 of file c_ui.c.

void cUiDraw ( void  )

opUI_DRAW byte code

Definition at line 5545 of file c_ui.c.

DATA8 cUiEscape ( void  )

Definition at line 1091 of file c_ui.c.

RESULT cUiExit ( void  )

Definition at line 898 of file c_ui.c.

void cUiFlush ( void  )

opUI_FLUSH byte code

Definition at line 6497 of file c_ui.c.

RESULT cUiInit ( void  )

Definition at line 642 of file c_ui.c.

void cUiKeepAlive ( void  )

opKEEP_ALIVE byte code

Definition at line 7697 of file c_ui.c.

RESULT cUiOpen ( void  )

Definition at line 859 of file c_ui.c.

void cUiRead ( void  )

opUI_READ byte code

Definition at line 6614 of file c_ui.c.

void cUiTestpin ( DATA8  State)

Definition at line 1102 of file c_ui.c.

void cUiUpdate ( UWORD  Time)

Definition at line 2464 of file c_ui.c.

void cUiWrite ( void  )

opUI_WRITE byte code

Definition at line 7115 of file c_ui.c.

UI_GLOBALS* getUiInstance ( )

Definition at line 209 of file c_ui.c.

void setUiInstance ( UI_GLOBALS _Instance)

Definition at line 204 of file c_ui.c.

Variable Documentation

UI_GLOBALS* gUiInstance

Definition at line 202 of file c_ui.c.