|
INOS
|
#include <cinossiotft.h>
Public Member Functions | |
| const char * | GetName () |
| Get name of display. More... | |
| XMLNode | GetConfig () |
| Get config node of display. More... | |
| uint16 | GetWidth () |
| Get number of horizontal pixels. More... | |
| uint16 | GetHeight () |
| Get number of vertical pixels. More... | |
| ETftError | ClearDisplay () |
| Clear whole display. More... | |
| ETftError | ResetDisplay () |
| Init display and clear it. More... | |
| bool | GetFontInfo (uint8 auNumber, STFTFontInfo &arInfo) |
| Get info about font. More... | |
| bool | GetEvent (STFTEvent &arEvent) |
| Get display event (pressed/released buttons, touches, keys). More... | |
| uint32 | EditEnterValue (const char *apName, STFTFontInfo &arFontInfo, const char *apDefaultText, char *apInputText, uint32 auBufferSize, const char *apKbdDef=NULL, const char *apKbdLayoutName=NULL, uint32 auReqKeyBoard=0) |
| Start editing a value. More... | |
| ETftError | TFT_TermColor (uint8 auForeColor, uint8 auBackColor) |
| Set terminal colors (text, background). More... | |
| ETftError | TFT_TermCursorPos (uint8 auColumn, uint8 auRow) |
| Set terminal cursor position. More... | |
| ETftError | TFT_TermCursorEnable (uint8 auSet) |
| Switch terminal cursor on or off. More... | |
| ETftError | TFT_TermOutput (char *apText) |
| Write text in terminal. More... | |
| ETftError | TFT_DisplayColor (uint8 auForeColor, uint8 auBackColor) |
| Set graphic colors. More... | |
| ETftError | TFT_DisplayClear () |
| Clear display content (with background color). More... | |
| ETftError | TFT_DisplayFill (uint8 auColorNr) |
| Fill display with given color. More... | |
| ETftError | TFT_TextColor (uint8 auForeColor, uint8 auBackColor) |
| Set graphic text colors. More... | |
| ETftError | TFT_TextFont (uint8 auFontNr) |
| Set graphical text font. More... | |
| ETftError | TFT_TextZoom (uint8 auZoomX, uint8 auZoomY) |
| Set graphical text zoom. More... | |
| ETftError | TFT_TextOutput (ETextAlignment aeAlignment, uint16 auCoordX, uint16 auCoordY, char *apText, uint8 auLength=255, uint8 auEndChar=0) |
| Write graphical text. More... | |
| ETftError | TFT_TextOutputBlock (uint16 auStartCoordX, uint16 auStartCoordY, uint16 auEndCoordX, uint16 auEndCoordY, EBlockTextAlignment aeBlockAlignment, char *apText, uint8 auLength=255, uint8 auEndChar=0) |
| Write graphical text inside a block, filled with back color. More... | |
| ETftError | TFT_GraphicColor (uint8 auForeColor, uint8 auBackColor) |
| Set graphical colors (text, background). More... | |
| ETftError | TFT_RectangleDraw (uint16 auStartCoordX, uint16 auStartCoordY, uint16 auEndCoordX, uint16 auEndCoordY) |
| Draw a rectangle. More... | |
| ETftError | TFT_LineDraw (uint16 auStartCoordX, uint16 auStartCoordY, uint16 auEndCoordX, uint16 auEndCoordY) |
| Draw a line. More... | |
| ETftError | TFT_LineContinue (uint16 auEndCoordX, uint16 auEndCoordY) |
| Draw a line continuing from last end position. More... | |
| ETftError | TFT_PointDraw (uint16 auCoordX, uint16 auCoordY) |
| Draw a point. More... | |
| ETftError | TFT_GraphicZoom (uint8 auZoomX, uint8 auZoomY) |
| Set graphical zoom (point and line thickness). More... | |
| ETftError | TFT_GraphicPattern (uint8 auPatternNr) |
| Select graphical pattern, used for filled objects. More... | |
| ETftError | TFT_RectangleFill (uint16 auStartCoordX, uint16 auStartCoordY, uint16 auEndCoordX, uint16 auEndCoordY, uint8 auColorNo) |
| Draw a filled rectangle. More... | |
| ETftError | TFT_FrameColor (uint8 auColOut, uint8 auColIn, uint8 auColFill) |
| Set graphical frame colors. More... | |
| ETftError | TFT_FrameShape (uint8 auFrameNr, uint8 auFrameOrient) |
| Define the graphical frame. More... | |
| ETftError | TFT_FrameDraw (uint16 auStartCoordX, uint16 auStartCoordY, uint16 auEndCoordX, uint16 auEndCoordY) |
| Draw a frame with current definition at given position. More... | |
| ETftError | TFT_Brightness (uint16 auBrightness) |
| Set display brightness. More... | |
| ETftError | TFT_BitmapInternal (uint16 auStartCoordX, uint16 auStartCoordY, uint8 auPictureNr) |
| Paint a picture from internal memory. More... | |
| ETftError | TFT_BitmapLoad (uint16 auStartCoordX, uint16 auStartCoordY, uint8 *apData, uint16 auDataLen) |
| Transfer and paint a picture. More... | |
| ETftError | TFT_HardCopy (STFTHardcopy aInstr) |
| Stores a hard copy (screenshot) of the current display to the buffer. More... | |
| ETftError | TFT_AnimSingle (uint16 auStartCoordX, uint16 auStartCoordY, uint8 auAnimNr, uint8 auPictureNr) |
| Show a single picture of an animation. More... | |
| ETftError | TFT_InstrumentClear (uint8 auInstrumentNr=0) |
| Clear instrument (one or all). More... | |
| ETftError | TFT_MacroDisable (char acTyp, uint8 auFirst, uint8 auLast) |
| Disable macro (range). More... | |
| ETftError | TFT_MacroStop (uint8 auStopRun) |
| Stop/start all macros and animations. More... | |
| ETftError | TFT_MatrixSize (uint8 auNrOfInp, uint8 auNrOfOut, uint8 auFilter) |
| Define matrix of external keyboard. More... | |
| ETftError | TFT_Beep (uint8 auStopRun) |
| Set beeper. More... | |
| ETftError | TFT_ProjectName (char *apBuffer, uint16 auSize) |
| Get name of project burned into display. More... | |
| ETftError | TFT_InternalInfos (STFTInternalInfo &arInfo) |
| Get internal info of display (e.g. resolution). More... | |
| ETftError | TFT_LoadMacroFile (const char *sTableName) |
| Load the .df file from the database to the TFT. More... | |
| ETftError | TFT_TouchFrameColor (uint8 auColNormOut, uint8 auColNormIn, uint8 auColNormFill, uint8 auColSelOut, uint8 auColSelIn, uint8 auColSelFill) |
| Set touch button frame color. More... | |
| ETftError | TFT_TouchFrameShape (uint8 auFrameNr, uint8 auFrameOrient) |
| Set touch button frame shape. More... | |
| ETftError | TFT_TouchFontColor (uint8 auColNormal, uint8 auColSelect) |
| Set touch button font color. More... | |
| ETftError | TFT_TouchFont (uint8 auFontNr) |
| Set touch button text font. More... | |
| ETftError | TFT_TouchFontZoom (uint8 auZoomX, uint8 auZoomY) |
| Set touch button text font zoom. More... | |
| ETftError | TFT_TouchKey (uint16 auCoordX, uint16 auCoordY, uint16 auSizeX, uint16 auSizeY, uint8 auUpCode, uint8 auDownCode, char *apText, ETextAlignment aeAlignment=eTACenter) |
| Define touch button. More... | |
| ETftError | TFT_TouchSwitch (uint16 auCoordX, uint16 auCoordY, uint16 auSizeX, uint16 auSizeY, uint8 auUpCode, uint8 auDownCode, char *apText) |
| Define manually switchable touch button. More... | |
| ETftError | TFT_TouchArea (uint16 auCoordX, uint16 auCoordY, uint16 auSizeX, uint16 auSizeY) |
| Define free touch area. More... | |
| ETftError | TFT_TouchReaction (ETouchReaction aeReaction, uint8 auValue) |
| Define how display should react on touches. More... | |
| ETftError | TFT_TouchInvert (uint8 auBtnCode, ETouchInvert eSet=eTIToggle) |
| Invert a touch button. More... | |
| ETftError | TFT_TouchClearButton (uint8 auBtnCode=0, uint8 auValue=1) |
| Clear a touch button. More... | |
| ETftError | TFT_TouchClearArea (uint16 auCoordX=480, uint16 auCoordY=272, uint8 auValue=1) |
| Clear touch area surrounding given coordinate. More... | |
| ETftError | TouchButton (STouchButton aBtn) |
| Define a touch button with all possible properties. More... | |
| ETftError | TouchClear () |
| Clear all touch buttons and areas. More... | |
| ETftError | SendData (uint8 *apData, uint8 auLength) |
| CINOSSioTft (XMLNode axConfig) | |
| Cconstructor. | |
| virtual | ~CINOSSioTft () |
| Sio Tft display destructor. | |
| int | operator< (CINOSSioTft &aObject) |
| binary tree operators | |
| int | operator== (CINOSSioTft &aObject) |
| int | operator< (const char *aName) |
| int | operator== (const char *aName) |
| virtual void | PostCreate (void *apParent) |
| called after creation | |
| virtual bool | PreDestroy (bool &bDeleteSelf) |
| called before destruction (return false if destruction not allowed) | |
| virtual CINCOObject * | GetRegister (CINCOObject *apObject=NULL) |
| Do inco registration and return pointer to it. More... | |
| void | SetWidth (uint16 auWidth) |
| Set the display width e.g. as read from display info. More... | |
| void | SetHeight (uint16 auHeight) |
| Set the display height e.g. as read from display info. More... | |
Static Public Member Functions | |
| static CINOSSioTft * | Find (const char *apName) |
| Find display object by name. More... | |
| static void | Add (CINOSSioTft *apTft) |
| Add display to list. More... | |
| static uint32 | GetNumber () |
| Get number of displays in list. More... | |
| static CINOSSioTft * | GetAt (uint32 auIndex) |
| Get display by index. More... | |
| static void | Create () |
| Create and initialize display handler. | |
Protected Member Functions | |
| void | ComHandler () |
| Communication handler, runs in separate task. | |
| ETftError | GetData (uint8 RecBuf[]) |
| Get data from display. More... | |
| ETftError | RetryGetData (uint8 RecBuf[]) |
| Retry to get data from display (see GetData) More... | |
| ETftError | GetBufferInfo (uint8 &auSend, uint8 &auReceive, bool abEnableRetry=false, bool abAcceptTimeout=false) |
| Get number of bytes in display's send and receive buffer. More... | |
| void | ParseReply (uint8 *apRecBuffer, uint16 auRecBufferSize) |
| Parse buffer for replies. More... | |
| char | MapChar (char acChar) |
| Map char code to lcd code if necessary. More... | |
| void | ActivateKeyboard (XMLNode axKbdLayout, const char *apName) |
| Show keyboard on screen. More... | |
| uint8 | CalcBcc (uint8 auBuffer[], uint16 auStart, uint16 auLength) |
| Calculate checksum. More... | |
| uint8 | SendReceive (bool abSynch=true) |
| Send out data and wait for acknowledge. More... | |
| ETftError | SendData (uint16 auLength, bool abSynch=true) |
| Send data in tx fifo to display. More... | |
| uint32 | SendTest () |
| Test function. More... | |
| DECLARE_DYNAMIC (CINOSSioTft) | |
Protected Attributes | |
| XMLNode | m_xConfigNode |
| Xml config node. | |
| const char * | m_pName |
| Display name. | |
| const char * | m_pInterface |
| Display interface name (Sio). | |
| CINOSSerialInOut * | m_pSio |
| Interface object. | |
| CINCOObject * | m_pRegister |
| Inco registration object. | |
| uint16 | m_uWidth |
| Number of pixels of whole display width. | |
| uint16 | m_uHeight |
| Number of pixels of whole display height. | |
| char | m_cInputBuffer [128] |
| Edit value input buffer. | |
| uint16 | m_uEditCoordX |
| Edit field X coord. | |
| uint16 | m_uEditCoordY |
| Edit field Y coord. | |
| uint16 | m_uEditSizeX |
| Edit field X size. | |
| uint16 | m_uEditSizeY |
| Edit field Y size. | |
| uint8 | m_uEditBackCol |
| Backgound color of "input field". | |
| SComBuffer | m_TxBuffer |
| Transmit buffer. | |
| SComFifo | m_RxFifo |
| Receive fifo. | |
| SComFifo | m_TxFifo |
| Transmit fifo. | |
| CINOSTask * | m_pHandler |
| STFTEvent | m_EventQueue [16] |
| Queue of received events from display. | |
| uint8 | m_uEventRead |
| Read index in event queue. | |
| uint8 | m_uEventWrite |
| Write index in event queue. | |
| uint32 | m_uReplyMask |
| Mask of successful replies. | |
| char | m_cProjectName [256] |
| Project name as read from display. | |
| STFTInternalInfo | m_Info |
| Internal info as read from display. | |
| uint8 * | m_pHardCopyBuffer = nullptr |
| int32 | m_iHardCopyDataSize = 0 |
| uint32 | m_uHardCopyBufferSize = 0 |
| Hard copy buffer size. | |
| uint32 | m_uReadRetries = 0 |
| Number of retries to read data from display. | |
Static Protected Attributes | |
| static CINOSContainer< CINOSSioTft > * | m_pTfts |
| List of available displays. | |
Handle TFT display over SIO.
|
protected |
Show keyboard on screen.
| axKbdLayout | XML config of layout. |
| apName | Name of value to edit. |
|
inlinestatic |
Add display to list.
| apTft | Pointer of display object to add. |
|
protected |
Calculate checksum.
| auBuffer | Buffer with data to checksum. |
| auStart | Offset in buffer of first data. |
| auLength | Length of data to checksum. |
| ETftError CINOSSioTft::ClearDisplay | ( | ) |
Clear whole display.
| uint32 CINOSSioTft::EditEnterValue | ( | const char * | apName, |
| STFTFontInfo & | arFontInfo, | ||
| const char * | apDefaultText, | ||
| char * | apInputText, | ||
| uint32 | auBufferSize, | ||
| const char * | apKbdDef = NULL, |
||
| const char * | apKbdLayoutName = NULL, |
||
| uint32 | auReqKeyBoard = 0 |
||
| ) |
Start editing a value.
| apName | Name of value to show (not editable). |
| arFontInfo | Font to use for editing. |
| apDefaultText | Value default text to show initially. |
| apInputText | Buffer to get entered text. |
| auBufferSize | Size of text buffer. |
| apKbdDef | Xml file with keyboard definition. |
| apKbdLayoutName | Name of keyboard layout to start with. |
| auReqKeyBoard | Index of required keyboard (first index is '0') |
|
inlinestatic |
Find display object by name.
| apName | Name of display to find. |
|
inlinestatic |
Get display by index.
| auIndex | Index of display in list. |
|
protected |
Get number of bytes in display's send and receive buffer.
| auSend | Number of bytes in display's send buffer ready to send. |
| auReceive | Number of free bytes in display's receive buffer. |
| abEnableRetry | After a retry it is sometimes needed to throw away first received character. Default: false. |
| abAcceptTimeout | Set to true, to avoid timeout errors and continue execution anyway. (Default: false) |
|
inline |
Get config node of display.
|
protected |
Get data from display.
| RecBuf | Buffer to receive data. |
| bool CINOSSioTft::GetEvent | ( | STFTEvent & | arEvent | ) |
Get display event (pressed/released buttons, touches, keys).
| arEvent | Object to receive event info. |
| bool CINOSSioTft::GetFontInfo | ( | uint8 | auNumber, |
| STFTFontInfo & | arInfo | ||
| ) |
Get info about font.
| auNumber | Number of font as used in display. |
| arInfo | Object to receive font info. |
|
inline |
Get number of vertical pixels.
|
inline |
Get name of display.
|
inlinestatic |
Get number of displays in list.
|
virtual |
Do inco registration and return pointer to it.
| apObject | Use this object as main registry, create new if NULL. |
|
inline |
Get number of horizontal pixels.
|
protected |
Map char code to lcd code if necessary.
| acChar | Char to map. |
|
protected |
Parse buffer for replies.
| apRecBuffer | Buffer with received data. |
| auRecBufferSize | Size of buffer. |
| ETftError CINOSSioTft::ResetDisplay | ( | ) |
Init display and clear it.
|
protected |
Retry to get data from display (see GetData)
| RecBuf | Buffer to receive data. |
|
protected |
Send data in tx fifo to display.
| auLength | Length of data in fifo buffer. |
| abSynch | True for synchronous sending, false for immediate return. |
|
protected |
Send out data and wait for acknowledge.
| abSynch | True for synchronous sending, false for immediate return. |
|
protected |
Test function.
|
inline |
Set the display height e.g. as read from display info.
| auHeight | New height in pixels. |
|
inline |
Set the display width e.g. as read from display info.
| auWidth | New width in pixels. |
| ETftError CINOSSioTft::TFT_AnimSingle | ( | uint16 | auStartCoordX, |
| uint16 | auStartCoordY, | ||
| uint8 | auAnimNr, | ||
| uint8 | auPictureNr | ||
| ) |
Show a single picture of an animation.
| auStartCoordX | Horizontal coordinate of start point (upper left). |
| auStartCoordY | Vertical coordinate of start point (upper left). |
| auAnimNr | Number of animation to draw a picture from. |
| auPictureNr | Number of anime picture to draw (starts at 1). |
| ETftError CINOSSioTft::TFT_Beep | ( | uint8 | auStopRun | ) |
Set beeper.
| auStopRun | 0=off, 1=on, 2..255=time in 1/10 s. |
| ETftError CINOSSioTft::TFT_BitmapInternal | ( | uint16 | auStartCoordX, |
| uint16 | auStartCoordY, | ||
| uint8 | auPictureNr | ||
| ) |
Paint a picture from internal memory.
| auStartCoordX | Horizontal coordinate of start point (upper left). |
| auStartCoordY | Vertical coordinate of start point (upper left). |
| auPictureNr | Number of picture to draw. |
| ETftError CINOSSioTft::TFT_BitmapLoad | ( | uint16 | auStartCoordX, |
| uint16 | auStartCoordY, | ||
| uint8 * | apData, | ||
| uint16 | auDataLen | ||
| ) |
Transfer and paint a picture.
| auStartCoordX | Horizontal coordinate of start point (upper left). |
| auStartCoordY | Vertical coordinate of start point (upper left). |
| apData | Picture data in g16 format. |
| auDataLen | Size of data in bytes. |
| ETftError CINOSSioTft::TFT_Brightness | ( | uint16 | auBrightness | ) |
Set display brightness.
| auBrightness | Brightness in %, range 0..100 %. |
| ETftError CINOSSioTft::TFT_DisplayClear | ( | ) |
Clear display content (with background color).
| ETftError CINOSSioTft::TFT_DisplayColor | ( | uint8 | auForeColor, |
| uint8 | auBackColor | ||
| ) |
Set graphic colors.
| auForeColor | Foreground color. |
| auBackColor | Background color. |
| ETftError CINOSSioTft::TFT_DisplayFill | ( | uint8 | auColorNr | ) |
Fill display with given color.
| auColorNr | Index of color to use for filling. |
| ETftError CINOSSioTft::TFT_FrameColor | ( | uint8 | auColOut, |
| uint8 | auColIn, | ||
| uint8 | auColFill | ||
| ) |
Set graphical frame colors.
| auColOut | Color for outline. |
| auColIn | Color for inline. |
| auColFill | Color for filling. |
| ETftError CINOSSioTft::TFT_FrameDraw | ( | uint16 | auStartCoordX, |
| uint16 | auStartCoordY, | ||
| uint16 | auEndCoordX, | ||
| uint16 | auEndCoordY | ||
| ) |
Draw a frame with current definition at given position.
| auStartCoordX | Horizontal coordinate of start point (upper left). |
| auStartCoordY | Vertical coordinate of start point (upper left). |
| auEndCoordX | Horizontal coordinate of end point (lower right). |
| auEndCoordY | Vertical coordinate of end point (lower right). |
| ETftError CINOSSioTft::TFT_FrameShape | ( | uint8 | auFrameNr, |
| uint8 | auFrameOrient | ||
| ) |
Define the graphical frame.
| auFrameNr | Number of frame to use. |
| auFrameOrient | Orientation of frame to use. |
| ETftError CINOSSioTft::TFT_GraphicColor | ( | uint8 | auForeColor, |
| uint8 | auBackColor | ||
| ) |
Set graphical colors (text, background).
| auForeColor | Foreground color. |
| auBackColor | Background color. |
| ETftError CINOSSioTft::TFT_GraphicPattern | ( | uint8 | auPatternNr | ) |
Select graphical pattern, used for filled objects.
| auPatternNr | Number of pattern to set. |
| ETftError CINOSSioTft::TFT_GraphicZoom | ( | uint8 | auZoomX, |
| uint8 | auZoomY | ||
| ) |
Set graphical zoom (point and line thickness).
| auZoomX | Zoom factor in horizontal direction. |
| auZoomY | Zoom factor in vertical direction. |
| ETftError CINOSSioTft::TFT_HardCopy | ( | STFTHardcopy | aInstr | ) |
Stores a hard copy (screenshot) of the current display to the buffer.
| aHardcopyCmd | Hardcopy command data |
| ETftError CINOSSioTft::TFT_InstrumentClear | ( | uint8 | auInstrumentNr = 0 | ) |
Clear instrument (one or all).
| auInstrumentNr | Number of instrument to clear (0 for all). |
| ETftError CINOSSioTft::TFT_InternalInfos | ( | STFTInternalInfo & | arInfo | ) |
Get internal info of display (e.g. resolution).
| arInfo | Structure to receive display info. |
| ETftError CINOSSioTft::TFT_LineContinue | ( | uint16 | auEndCoordX, |
| uint16 | auEndCoordY | ||
| ) |
Draw a line continuing from last end position.
| auEndCoordX | Horizontal coordinate of end point. |
| auEndCoordY | Vertical coordinate of end point. |
| ETftError CINOSSioTft::TFT_LineDraw | ( | uint16 | auStartCoordX, |
| uint16 | auStartCoordY, | ||
| uint16 | auEndCoordX, | ||
| uint16 | auEndCoordY | ||
| ) |
Draw a line.
| auStartCoordX | Horizontal coordinate of start point. |
| auStartCoordY | Vertical coordinate of start point. |
| auEndCoordX | Horizontal coordinate of end point. |
| auEndCoordY | Vertical coordinate of end point. |
| ETftError CINOSSioTft::TFT_LoadMacroFile | ( | const char * | sTableName | ) |
Load the .df file from the database to the TFT.
| sTableName | Name of the table containing the .df file |
| ETftError CINOSSioTft::TFT_MacroDisable | ( | char | acTyp, |
| uint8 | auFirst, | ||
| uint8 | auLast | ||
| ) |
Disable macro (range).
| acTyp | Type of macro to disable (N/T/P/B/X/C/V, A=all). |
| auFirst | Number of first macro to disable. |
| auLast | Number of last macro to disable. |
| ETftError CINOSSioTft::TFT_MacroStop | ( | uint8 | auStopRun | ) |
Stop/start all macros and animations.
| auStopRun | 0 for stopping, 1 for starting. |
| ETftError CINOSSioTft::TFT_MatrixSize | ( | uint8 | auNrOfInp, |
| uint8 | auNrOfOut, | ||
| uint8 | auFilter | ||
| ) |
Define matrix of external keyboard.
| auNrOfInp | Number of inputs of matrix. |
| auNrOfOut | Number of outputs of matrix. |
| auFilter | Filtering for debouncing (0..7) |
| ETftError CINOSSioTft::TFT_PointDraw | ( | uint16 | auCoordX, |
| uint16 | auCoordY | ||
| ) |
Draw a point.
| auCoordX | Horizontal coordinate of point. |
| auCoordY | Vertical coordinate of point. |
| ETftError CINOSSioTft::TFT_ProjectName | ( | char * | apBuffer, |
| uint16 | auSize | ||
| ) |
Get name of project burned into display.
| apBuffer | Buffer to receive project name (max 32). |
| auSize | Size of buffer. |
| ETftError CINOSSioTft::TFT_RectangleDraw | ( | uint16 | auStartCoordX, |
| uint16 | auStartCoordY, | ||
| uint16 | auEndCoordX, | ||
| uint16 | auEndCoordY | ||
| ) |
Draw a rectangle.
| auStartCoordX | Horizontal coordinate of start point (upper left). |
| auStartCoordY | Vertical coordinate of start point (upper left). |
| auEndCoordX | Horizontal coordinate of end point (lower right). |
| auEndCoordY | Vertical coordinate of end point (lower right). |
| ETftError CINOSSioTft::TFT_RectangleFill | ( | uint16 | auStartCoordX, |
| uint16 | auStartCoordY, | ||
| uint16 | auEndCoordX, | ||
| uint16 | auEndCoordY, | ||
| uint8 | auColorNo | ||
| ) |
Draw a filled rectangle.
| auStartCoordX | Horizontal coordinate of start point (upper left). |
| auStartCoordY | Vertical coordinate of start point (upper left). |
| auEndCoordX | Horizontal coordinate of end point (lower right). |
| auEndCoordY | Vertical coordinate of end point (lower right). |
| auColorNo | Number of color to use. |
| ETftError CINOSSioTft::TFT_TermColor | ( | uint8 | auForeColor, |
| uint8 | auBackColor | ||
| ) |
Set terminal colors (text, background).
| auForeColor | Foreground color. |
| auBackColor | Background color. |
| ETftError CINOSSioTft::TFT_TermCursorEnable | ( | uint8 | auSet | ) |
Switch terminal cursor on or off.
| auSet | 0 for no cursor, 1 for flashing cursor. |
| ETftError CINOSSioTft::TFT_TermCursorPos | ( | uint8 | auColumn, |
| uint8 | auRow | ||
| ) |
Set terminal cursor position.
| auColumn | Terminal column of cursor. |
| auRow | Terminal row of cursor. |
| ETftError CINOSSioTft::TFT_TermOutput | ( | char * | apText | ) |
Write text in terminal.
| apText | Text to output in terminal. |
| ETftError CINOSSioTft::TFT_TextColor | ( | uint8 | auForeColor, |
| uint8 | auBackColor | ||
| ) |
Set graphic text colors.
| auForeColor | Foreground color. |
| auBackColor | Background color. |
| ETftError CINOSSioTft::TFT_TextFont | ( | uint8 | auFontNr | ) |
Set graphical text font.
| auFontNr | Number of font to set. |
| ETftError CINOSSioTft::TFT_TextOutput | ( | ETextAlignment | aeAlignment, |
| uint16 | auCoordX, | ||
| uint16 | auCoordY, | ||
| char * | apText, | ||
| uint8 | auLength = 255, |
||
| uint8 | auEndChar = 0 |
||
| ) |
Write graphical text.
| aeAlignment | Alignment to use (L/C/R). |
| auCoordX | Horizontal coordinate of start point. |
| auCoordY | Vertical coordinate of start point. |
| apText | Text to write. |
| auLength | Length of text to write (or NULL terminated). |
| auEndChar | Char to use as text terminator (NULL/CR/LF). |
| ETftError CINOSSioTft::TFT_TextOutputBlock | ( | uint16 | auStartCoordX, |
| uint16 | auStartCoordY, | ||
| uint16 | auEndCoordX, | ||
| uint16 | auEndCoordY, | ||
| EBlockTextAlignment | aeBlockAlignment, | ||
| char * | apText, | ||
| uint8 | auLength = 255, |
||
| uint8 | auEndChar = 0 |
||
| ) |
Write graphical text inside a block, filled with back color.
| auStartCoordX | Horizontal coordinate of start point. |
| auStartCoordY | Vertical coordinate of start point. |
| auEndCoordX | Horizontal coordinate of end point. |
| auEndCoordY | Vertical coordinate of end point. |
| aeBlockAlignment | Alignment of text in block. |
| apText | Text to write. |
| auLength | Length of text to write (or NULL terminated). |
| auEndChar | Char to use as text terminator (NULL/CR/LF). |
| ETftError CINOSSioTft::TFT_TextZoom | ( | uint8 | auZoomX, |
| uint8 | auZoomY | ||
| ) |
Set graphical text zoom.
| auZoomX | Zoom factor in horizontal direction. |
| auZoomY | Zoom factor in vertical direction. |
| ETftError CINOSSioTft::TFT_TouchArea | ( | uint16 | auCoordX, |
| uint16 | auCoordY, | ||
| uint16 | auSizeX, | ||
| uint16 | auSizeY | ||
| ) |
Define free touch area.
| auCoordX | Horizontal coordinate of start point. |
| auCoordY | Vertical coordinate of start point. |
| auSizeX | Horizontal size of area. |
| auSizeY | Vertical size of area. |
| ETftError CINOSSioTft::TFT_TouchClearArea | ( | uint16 | auCoordX = 480, |
| uint16 | auCoordY = 272, |
||
| uint8 | auValue = 1 |
||
| ) |
Clear touch area surrounding given coordinate.
| auCoordX | Horizontal coordinate of point. |
| auCoordY | Vertical coordinate of point. |
| auValue | 0 for keeping it displayed, 1 for clearing it. |
| ETftError CINOSSioTft::TFT_TouchClearButton | ( | uint8 | auBtnCode = 0, |
| uint8 | auValue = 1 |
||
| ) |
Clear a touch button.
| auBtnCode | Code identifying the touch button (0=all). |
| auValue | 0 for keeping it displayed, 1 for clearing it. |
| ETftError CINOSSioTft::TFT_TouchFont | ( | uint8 | auFontNr | ) |
Set touch button text font.
| auFontNr | Number of font to set. |
| ETftError CINOSSioTft::TFT_TouchFontColor | ( | uint8 | auColNormal, |
| uint8 | auColSelect | ||
| ) |
Set touch button font color.
| auColNormal | Color in normal state. |
| auColSelect | Color in selected state. |
| ETftError CINOSSioTft::TFT_TouchFontZoom | ( | uint8 | auZoomX, |
| uint8 | auZoomY | ||
| ) |
Set touch button text font zoom.
| auZoomX | Zoom factor in horizontal direction. |
| auZoomY | Zoom factor in vertical direction. |
| ETftError CINOSSioTft::TFT_TouchFrameColor | ( | uint8 | auColNormOut, |
| uint8 | auColNormIn, | ||
| uint8 | auColNormFill, | ||
| uint8 | auColSelOut, | ||
| uint8 | auColSelIn, | ||
| uint8 | auColSelFill | ||
| ) |
Set touch button frame color.
| auColNormOut | Color in normal state for outline. |
| auColNormIn | Color in normal state for inline. |
| auColNormFill | Color in normal state for filling. |
| auColSelOut | Color in selected state for outline. |
| auColSelIn | Color in selected state for inline. |
| auColSelFill | Color in selected state for filling. |
| ETftError CINOSSioTft::TFT_TouchFrameShape | ( | uint8 | auFrameNr, |
| uint8 | auFrameOrient | ||
| ) |
Set touch button frame shape.
| auFrameNr | Number of frame to use. |
| auFrameOrient | Orientation of frame to use. |
| ETftError CINOSSioTft::TFT_TouchInvert | ( | uint8 | auBtnCode, |
| ETouchInvert | eSet = eTIToggle |
||
| ) |
Invert a touch button.
| auBtnCode | Code identifying the touch button. |
| eSet | Set/clear/toggle button state. |
| ETftError CINOSSioTft::TFT_TouchKey | ( | uint16 | auCoordX, |
| uint16 | auCoordY, | ||
| uint16 | auSizeX, | ||
| uint16 | auSizeY, | ||
| uint8 | auUpCode, | ||
| uint8 | auDownCode, | ||
| char * | apText, | ||
| ETextAlignment | aeAlignment = eTACenter |
||
| ) |
Define touch button.
| auCoordX | Horizontal coordinate of start point. |
| auCoordY | Vertical coordinate of start point. |
| auSizeX | Horizontal size of button. |
| auSizeY | Vertical size of button. |
| auUpCode | Code returned upon button release. |
| auDownCode | Code returned upon button press. |
| apText | Text of button. |
| aeAlignment | Text alignment in button. |
| ETftError CINOSSioTft::TFT_TouchReaction | ( | ETouchReaction | aeReaction, |
| uint8 | auValue | ||
| ) |
Define how display should react on touches.
| aeReaction | Reaction of display (invertion, beeper). |
| auValue | 0 to switch off, 1 to enable. |
| ETftError CINOSSioTft::TFT_TouchSwitch | ( | uint16 | auCoordX, |
| uint16 | auCoordY, | ||
| uint16 | auSizeX, | ||
| uint16 | auSizeY, | ||
| uint8 | auUpCode, | ||
| uint8 | auDownCode, | ||
| char * | apText | ||
| ) |
Define manually switchable touch button.
| auCoordX | Horizontal coordinate of start point. |
| auCoordY | Vertical coordinate of start point. |
| auSizeX | Horizontal size of button. |
| auSizeY | Vertical size of button. |
| auUpCode | Code returned upon button release. |
| auDownCode | Code returned upon button press. |
| apText | Text of button. |
| ETftError CINOSSioTft::TouchButton | ( | STouchButton | aBtn | ) |
Define a touch button with all possible properties.
| aBtn | Object containing button properties. |
| ETftError CINOSSioTft::TouchClear | ( | ) |
Clear all touch buttons and areas.
|
protected |
Number of valid bytes in buffer
|
protected |
Pointer to memory buffer for storing the hard copy (screen shots) in format g16 (with / without RLE).