String.Scanandextract()
Total Page:16
File Type:pdf, Size:1020Kb
PowerView Function Reference TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Documents ...................................................................................................................... PRACTICE Script Language ......................................................................................................... TRACE32 Functions ................................................................................................................... PowerView Function Reference ............................................................................................. 1 History ................................................................................................................................... 9 In This Document ................................................................................................................. 10 AREA Functions ................................................................................................................... 11 In This Section 11 AREA.COUNT() Number of existing message areas 11 AREA.EXIST() Check if message area exists 11 AREA.LINE() Extract line from message area 12 AREA.MAXCOUNT() Maximal number of message areas 12 AREA.NAME() Names of existing message areas 13 AREA.SELECTed() Name of active message area 13 AREA.SIZE.COLUMNS() Columns of a message area 14 AREA.SIZE.LINES() Lines of a message area 14 CLOCK Functions ................................................................................................................ 14 CONFIG Function ................................................................................................................. 15 CONFIG.SCREEN() Check if screen output is switched on 15 CONVert Functions .............................................................................................................. 16 In This Section 16 CONVert.ADDRESSTODUALPORT() Dualport access class 16 CONVert.ADDRESSTONONSECURE() Non-secure access class 17 CONVert.ADDRESSTOSECURE() Secure access class 17 CONvert.BOOLTOINT() Boolean to integer 18 CONVert.CHAR() Integer to ASCII character 18 CONVert.FLOATTOINT() Float to integer 19 CONVert.HEXTOINT() Hex to integer 19 CONVert.INTTOBOOL() Integer to boolean 20 CONVert.INTTOFLOAT() Integer to floating point value 20 CONVert.INTTOHEX() Integer to hex 21 CONVert.INTTOMASK() Compose bit-mask from integer value and mask 21 CONVert.MASKMTOINT() Bits set to don't-care in given bit-mask 22 ©1989-2021 Lauterbach GmbH PowerView Function Reference 1 CONVert.MASKTOINT() Bits set to 1 in given bit-mask 23 CONVert.OCTaltoint() Octal to decimal 23 CONVert.SignedByte() 1 byte to 8 bytes 24 CONVert.SignedLong() 4 bytes to 8 bytes 24 CONVert.SignedWord() 2 bytes to 8 bytes 25 CONVert.TIMEMSTOINT() Time to milliseconds 25 CONVert.TIMENSTOINT() Time to nanoseconds 26 CONVert.TIMERAWTOINT() Time to TRACE32 timer ticks 26 CONVert.TIMESTOINT() Time to seconds 26 CONVert.TIMEUSTOINT() Time to microseconds 27 CONVert.TOLOWER() String to lower case 28 CONVert.TOUPPER() String to upper case 28 DATE Functions ................................................................................................................... 29 In This Section 29 DATE.DATE() Current date 29 DATE.DAY() Today’s date 29 DATE.MakeUnixTime() Date to Unix timestamp 30 DATE.MONTH() Number of current month 31 DATE.SECONDS() Seconds since midnight 31 DATE.TIME() Current time 31 DATE.TimeZone() Time zone identifier and hh:mm:ss 32 DATE.UnixTime() Seconds since Jan 1970 32 DATE.UnixTimeUS() Microseconds since Jan 1970 32 DATE.utcOffset() Offset of current local time to UTC 33 DATE.YEAR() Current year 33 DIALOG Functions ............................................................................................................... 34 In This Section 34 DIALOG.BOOLEAN() Current boolean value of checkbox 34 DIALOG.EXIST() Existence of dialog element 35 DIALOG.STRing() Current string value of dialog element, e.g. EDIT box 36 DIALOG.STRing2() Comma-separated list of values, e.g. from LISTBOX 37 ERROR Functions ................................................................................................................ 38 In This Section 38 ERROR.CMDLINE() Erroneous command 38 ERROR.FIRSTID() ID of first error 38 ERROR.ID() ID of last error message 39 ERROR.MESSAGE() Error text 40 ERROR.OCCURRED() Error status 40 ERROR.POSITION() Error position 40 EVAL Functions .................................................................................................................... 41 In This Section 41 EVAL() Value of expression evaluated with Eval command 41 ©1989-2021 Lauterbach GmbH PowerView Function Reference 2 EVAL.STRing() String composed by expression evaluated with Eval cmd. 41 EVAL.TIme() Value of time evaluated with Eval command 41 EVAL.TYPE() Type of expression evaluated with Eval command 42 FALSE Function ................................................................................................................... 43 FALSE() Boolean expression 43 FILE Functions ..................................................................................................................... 44 In This Section 44 __FILE__() Directory of current PRACTICE script 44 __LINE__() Number of script line to be executed next 44 FILE.EOF() Check if end of read-in file has been reached 44 FILE.EOFLASTREAD() Check if last read from file reached the end of the file 45 FILE.EXIST() Check if file exists 46 FILE.OPEN() Check if file is open 46 FILE.SUM() Get checksum from a file 46 FILE.TYPE() File type of loaded file 47 FORMAT Functions .............................................................................................................. 48 In This Section 48 FORMAT.BINary() Numeric to binary value (leading spaces) 48 FORMAT.CHAR() Numeric to ASCII character (fixed length) 49 FORMAT.Decimal() Numeric to string (leading spaces) 50 FORMAT.DecimalU() Numeric to unsigned decimal as string (leading spaces) 51 FORMAT.DecimalUZ() Numeric to unsigned decimal as string (leading zeros) 52 FORMAT.FLOAT() Floating point value to string 53 FORMAT.HEX() Numeric to hex (leading zeros) 54 FORMAT.STRing() Output string with fixed length 55 FORMAT.TIME() Time to string (leading spaces) 56 FORMAT.UDECIMAL() Refer to FORMAT.DecimalU() 56 FORMAT.UDECIMALZ() Refer to FORMAT.DecimalUZ() 57 FORMAT.UnixTime() Format Unix timestamps 57 FOUND Functions ................................................................................................................ 61 In This Section 61 FOUND() TRUE() if search item was found 61 FOUND.COUNT() Number of occurrences found 62 GDB Function (TRACE32 as GDB Back-End) .................................................................... 63 GDB.PORT() Port number for communication via GDB interface 63 HELP Function ...................................................................................................................... 64 HELP.MESSAGE() Help search item 64 HOST Functions ................................................................................................................... 65 HOSTID() Host ID 65 HOSTIP() Host IP address 65 IFCONFIG and IFTEST Functions ....................................................................................... 66 ©1989-2021 Lauterbach GmbH PowerView Function Reference 3 In This Section 66 IFCONFIG.COLLISIONS() Collisions since start-up 66 IFCONFIG.CONFIGURATION() Connection type 67 IFCONFIG.DEVICENAME() Name of TRACE32 device 67 IFCONFIG.ERRORS() Errors since start-up 67 IFCONFIG.ETHernetADDRESS() MAC address of TRACE32 device 67 IFCONFIG.IPADDRESS() IP address of TRACE32 device 68 IFCONFIG.RESYNCS() Resyncs since start-up 68 IFCONFIG.RETRIES() Retries since start-up 68 IFTEST.DOWNLOAD() Download in KByte/sec 69 IFTEST.LATENCY() Latency in microseconds 69 IFTEST.UPLOAD() Upload in KByte/sec 69 InterCom Functions ............................................................................................................. 70 In This Section 70 InterCom.GetGlobalMacro() Exchange strings between PowerView instances 70 InterCom.GetPracticeState() PRACTICE run-state on other instance 71 InterCom.NAME() InterCom name of this TRACE32 instance 71 InterCom.PING() Check if ping is successful 72 InterCom.PODPORT() Port number of any TRACE32 instance 73 InterCom.PODPORTNAME() InterCom name of any TRACE32 instance 74 InterCom.PODPORTNUMBER() Number of TRACE32 instances 75 InterCom.PORT() Port number of this TRACE32 instance 76 LICENSE Functions .............................................................................................................. 77 In This Section 77 LICENSE.DATE() Expiration date of maintenance contract 77 LICENSE.FAMILY() Name of the CPU family license 77 LICENSE.FEATURES() List of features licensed 78 LICENSE.getINDEX() Index of maintenance contract 78 LICENSE.GRANTED() License state 79 LICENSE.HAVEFEATURE() Checks if license is stored in debugger hardware 79 LICENSE.MSERIAL() Serial number of the maintenance contract 80 LICENSE.MULTICORE() Check if multicore debugging is licensed 80 LICENSE.RequiredForCPU() License required for selected CPU 80 LICENSE.SERIAL() Serial number of debug cable 81 LOG Function ....................................................................................................................... 82 LOG.DO.FILE() Get log file used by LOG.DO 82 Mathematical Functions ...................................................................................................... 83 In This Section 83 math.ABS() Absolute value of decimal