#include <otTextUI.h>
Inheritance diagram for otTextUI:

Public Types | |
| enum | DisplayType { LCD_TEXT_20X4 } |
| enum | KeyCode { KEY_RET = 0x8001, KEY_ESCAPE = 0x8002, KEY_BACKSPACE = 0x8003, KEY_DEL = 0x8004, KEY_LEFT = 0x8005, KEY_RIGHT = 0x8006, KEY_UP = 0x8007, KEY_DOWN = 0x8008, KEY_F1 = 0x8009, KEY_F2 = 0x800A, KEY_F3 = 0x800B, KEY_F4 = 0x800C, KEY_PLUS_MINUS = 0x800D, KEY_MUL_DIV = 0x800E, KEY_0 = 15, KEY_1 = 16, KEY_2 = 17, KEY_3 = 18, KEY_4 = 19, KEY_5 = 20, KEY_6 = 21, KEY_7 = 22, KEY_8 = 23, KEY_9 = 24 } |
| enum | Actions { U_REFRESH = 32768, U_INC = 32769, U_DEC = 32770 } |
| enum | Attribute { A_DISPLAY = 0, A_NUMBER = 1, A_MENU = 2, A_TEXT = 3 } |
| enum | VarTypes { V_INT, V_UNSIGNED, V_DOUBLE, V_STRING, V_U8, V_S8, V_U16, V_S16, V_F32 } |
Public Member Functions | |
| otTextUI () | |
| void | init (keyScanMethod key, U8 pAdd=0x27) |
| void | panel (const char *master, const char *helpSrc, U8 helpDisplaySize) |
| void | panelVariables (int par,...) |
| U32 | panelVarAttribute (U8 attribute, U32 varCount,...) |
| void | panelVarChangeType (U8 newType, U32 varCount,...) |
| void | panelMenuSetup (const char *menuText[], U32 menuItems, U32 selected) |
| void | panelMenuDisplay (const char *menuText[], U32 selected) |
| S32 | panelMenuSelection (const char *menuText[]) |
| void | panelUpdate (U16 upDwn) |
| bool | update (const char *dsp) |
| void | stringRotate (U8 page=0) |
| void | stringsRotate () |
| void | slidingText (const char *helpSrc, U8 helpDisplaySize, U8 page) |
| void | slidingTextIndex (U8 page=0) |
| void | setScancode (U16 who, U16 val) |
| U32 | edit () |
| U32 | menu (U32 items, const char *title, const char *menuText[]) |
| U8 * | progressPtr () |
| U8 * | progressOpen (U32 numOfChars) |
| void | progressRange (U32 minValue, U32 maxValue) |
| void | progressClear () |
| void | progressValue (U32 value) |
| U16 | getKey (bool release) |
| char * | help (U8 page=0) |
| void | setHelp (U8 page, const char *helpText, U16 size) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Create the class |
|
|
In the EDIT mode it is possible to modify all the variables belonging to the panel that can be modified. These are the commands associated with the various keys:
|
|
|
Get a key
|
|
|
Return the address of an help page
|
|
||||||||||||
|
Init the class
|
|
||||||||||||||||
|
Create a menu
|
|
||||||||||||||||
|
Create a panel from a string definition.
|
|
||||||||||||
|
Select an item in the menu defined in a panel
|
|
|
Return selected item in the menu efined in a panel
|
|
||||||||||||||||
|
Create a menu in the panel
|
|
|
Update display (LCD) contents
|
|
||||||||||||||||
|
Specify an attribute for a used variable in the panel. As default a variable can't be edited or changed, with this command you can change this setting
|
|
||||||||||||||||
|
Default variable type are: V_INT and V_UNSIGNED for 32 bit integer; V_DOUBLE for 64 bit floating point; V_STRING for string. With this function you can change a default type to a different.
|
|
||||||||||||
|
Create an association between panel field and a variable
|
|
|
Clear progress bar |
|
|
Create a progress bar
|
|
|
Return pointer to progress data
|
|
||||||||||||
|
Set the operating progress range
|
|
|
Set current value of the progress bar
|
|
||||||||||||||||
|
Set an help page
|
|
||||||||||||
|
Define a scan code associated to a specific KEY
|
|
||||||||||||||||
|
|
|
|
|
|
|
Rotate a defined string in the panel. * ______________________\n * STRING TO [ DISPLAY IS VERY LONG ] ABOVE DISPLAY SIZE\n * ---------------------- \n *
|
|
|
Rotate all defined string in the panel |
|
|
Copy a string into display. String size must be below 20x4 ...
|