The text of a manual · part 3 of 18
Qlarity-Based Terminal Programmer's Reference Manual: Contents, pages 9 to 12
Pages 9 to 12 of 134, from Qlarity-Based Terminal Programmer's Reference Manual
The original document is the PDF (1.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the QSI Corp QTERM-G70
Page 9
QSI Qlarity-based Terminal Programmer’s Reference v
4.9.14 Replace .......................................................................................................................................................... 71 4.10 Conversion Functions .............................................................................................................................................. 71 4.10.1 Str .................................................................................................................................................................. 71 4.10.2 Val ................................................................................................................................................................. 71 4.10.3 FromBytes ..................................................................................................................................................... 72 4.10.4 GetBytes ........................................................................................................................................................ 72 4.10.5 LowerCase..................................................................................................................................................... 72 4.10.6 UpperCase ..................................................................................................................................................... 73 4.11 Math Functions ........................................................................................................................................................ 73 4.11.1 Sin.................................................................................................................................................................. 73 4.11.2 Cos................................................................................................................................................................. 73 4.11.3 Tan................................................................................................................................................................. 73 4.11.4 Asin ............................................................................................................................................................... 73 4.11.5 Acos............................................................................................................................................................... 73 4.11.6 Atan ............................................................................................................................................................... 73 4.11.7 Power............................................................................................................................................................. 73 4.11.8 Exp................................................................................................................................................................. 74 4.11.9 Ln................................................................................................................................................................... 74 4.11.10 Sqrt .............................................................................................................................................................. 74 4.12 User Message Functions.......................................................................................................................................... 74 4.12.1 UserBroadcastMsg ........................................................................................................................................ 74 4.12.2 UserSendMsg ................................................................................................................................................ 74 4.12.3 UserDirectMsg .............................................................................................................................................. 75 4.12.4 FakeKeyMsg ................................................................................................................................................. 75 4.12.5 FakeScreenMsg ............................................................................................................................................. 75 4.13 User Input Capture................................................................................................................................................... 76 4.13.1 SetCapture ..................................................................................................................................................... 76 4.13.2 GetCapture..................................................................................................................................................... 76 4.13.3 RemoveCapture ............................................................................................................................................. 76 4.14 Exception Functions ................................................................................................................................................ 77 4.14.1 Throw ............................................................................................................................................................ 77 4.14.2 GetException ................................................................................................................................................. 77 4.14.3 Rethrow ......................................................................................................................................................... 77 4.15 User Non-Volatile Configuration Functions ........................................................................................................... 77 4.15.1 ReadUserConfig ............................................................................................................................................ 78 4.15.2 WriteUserConfig ........................................................................................................................................... 78 4.16 File System Functions ............................................................................................................................................. 78 4.16.1 GetAvailFilespace ......................................................................................................................................... 78 4.16.2 MakeDir......................................................................................................................................................... 78 4.16.3 ChangeCurDir ............................................................................................................................................... 78 4.16.4 GetCurDir ...................................................................................................................................................... 79 4.16.5 GetDirEntry ................................................................................................................................................... 79 4.16.6 EraseFile ........................................................................................................................................................ 79 4.16.7 GetFileInfo .................................................................................................................................................... 79 4.16.8 OpenFile ........................................................................................................................................................ 80 4.16.9 CloseFile........................................................................................................................................................ 80 4.16.10 ReadFile....................................................................................................................................................... 80 4.16.11 WriteFile...................................................................................................................................................... 81 4.16.12 SetFilePos .................................................................................................................................................... 81 4.16.13 GetFilePos ................................................................................................................................................... 81 4.16.14 EndOfFile .................................................................................................................................................... 81
QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770
Page 10
vi
QSI Qlarity-based Terminal Programmer’s Reference
4.16.15 EraseFileSpace ............................................................................................................................................ 81 4.16.16 RenameFile.................................................................................................................................................. 81 4.17 Qlarity Foundry Functions....................................................................................................................................... 82 4.17.1 Tool_Persist................................................................................................................................................... 82 4.17.2 Tool_Trace .................................................................................................................................................... 82 4.18 Miscellaneous Functions ......................................................................................................................................... 82 4.18.1 SetGPIO......................................................................................................................................................... 82 4.18.2 ReadGPIO ..................................................................................................................................................... 82 4.18.3 SetGPIODirection ......................................................................................................................................... 83 4.18.4 GetVersion..................................................................................................................................................... 83 4.18.5 GetHardwareInfo........................................................................................................................................... 83 4.18.6 SetContrast .................................................................................................................................................... 84 4.18.7 SetBacklight .................................................................................................................................................. 85 4.18.8 EnableKeypadBacklight ................................................................................................................................ 85 4.18.9 SetLED .......................................................................................................................................................... 85 4.18.10 GetTime....................................................................................................................................................... 85 4.18.11 SetTime ....................................................................................................................................................... 86 4.18.12 GetTemperature........................................................................................................................................... 86 4.18.13 TypeOf......................................................................................................................................................... 86 4.18.14 SetSystemSetting......................................................................................................................................... 87 4.18.15 GetSystemSetting ........................................................................................................................................ 92 4.18.16 SoftReset ..................................................................................................................................................... 93 4.18.17 GetRandomNum.......................................................................................................................................... 93 4.18.18 SeedRandomNum........................................................................................................................................ 93 4.18.19 SetSeedRandomNum................................................................................................................................... 93 4.18.20 WatchdogEnable ......................................................................................................................................... 93 4.18.21 WatchdogReset............................................................................................................................................ 94 4.18.22 GetProfileTick ............................................................................................................................................. 94 4.18.23 DelayMS...................................................................................................................................................... 94 4.18.24 GetBinaryResource ..................................................................................................................................... 94 4.18.25 SetArrayData ............................................................................................................................................... 94 4.18.26 CreateCRCTable ......................................................................................................................................... 95 4.18.27 CalculateCRC .............................................................................................................................................. 95 4.18.28 ZlibCompress .............................................................................................................................................. 96 4.18.29 ZlibDecompress........................................................................................................................................... 96 4.18.30 SetPalette ..................................................................................................................................................... 96 APPENDIX A. BUILT-IN CONSTANTS AND DEFINED TYPES ......................................................................................................................... 97 A.1 Constants................................................................................................................................................................... 97 A.2 Tool Types .............................................................................................................................................................. 101 A.3 Colors...................................................................................................................................................................... 101 A.4 Key Codes............................................................................................................................................................... 101 APPENDIX B. EXCEPTION LIST ................................................................................................................................................................... 105 B.1 Special Exceptions .................................................................................................................................................. 105 B.2 Memory Exceptions ................................................................................................................................................ 105 B.3 Message System Exceptions ................................................................................................................................... 105 B.4 Font Exceptions ...................................................................................................................................................... 105 B.5 Drawing Exceptions................................................................................................................................................ 105
QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770
Page 11
QSI Qlarity-based Terminal Programmer’s Reference vii
B.6 Array Exceptions .................................................................................................................................................... 106 B.7 Z-Order Exceptions................................................................................................................................................. 106 B.8 Miscellaneous Exceptions....................................................................................................................................... 106 B.9 Communications/Networking Exceptions .............................................................................................................. 106 B.10 Math Exceptions ................................................................................................................................................... 107 B.11 Flash Write Exceptions ......................................................................................................................................... 107 B.12 File System Exceptions......................................................................................................................................... 107 B.13 Compiler Error Exceptions ................................................................................................................................... 108 B.14 Fatal Memory Exceptions ..................................................................................................................................... 108 B.15 Fatal Flash Exceptions .......................................................................................................................................... 108 B.16 Fatal Initialization Exceptions .............................................................................................................................. 109 B.17 Fatal Message System Exceptions ........................................................................................................................ 109 B.18 Network Fatal Exceptions..................................................................................................................................... 109 B.19 Miscellaneous Fatal Exceptions............................................................................................................................ 109 B.20 Fatal Qlarity Foundry Exceptions ......................................................................................................................... 109 APPENDIX C. QLARITY COMMAND LINE COMPILER ................................................................................................................................ 111 APPENDIX D. QLARITY API FUNCTIONS QUICK REFERENCE LIST ......................................................................................................... 113
QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770
Page 12
viii
QSI Qlarity-based Terminal Programmer’s Reference
QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770