Taiko R2
Legal Information
Overview
Our Language Philosophy
System Components
Objects
Events
Getting Started
Preparing Your Hardware
Starting a New Project
Writing Code
Building, Uploading and Running
Compiling a Final Binary
Programming with TIDE
Managing Projects
The Structure of a Project
Creating, Opening and Saving Projects
Adding, Removing and Saving Files
Resource Files
Built-in Image Editor
Coding Your Project
Project Browser
Code Auto-completion
Code Hinting
Tooltips
Supported HTML Tags
Making, Uploading and Running an Executable Binary
Two Modes of Target Execution
Debugging Your Project
Target States
Exceptions
Program Pointer
Breakpoints
The Call Stack and Stack Pointer
Stepping
The Watch
Scopes in Watch
Code Profiling
Project Settings
Device Explorer
Upload Function
Protecting Your Device with a Password
Programming Fundamentals
Program Structure
Code Basics
Naming Conventions
Introduction to Variables, Constants and Scopes
Variables And Their Types
Type Conversion
Type conversion in expressions
Compile-time Calculations
Arrays
Structures
Enumeration Types
Understanding the Scope of Variables
Declaring Variables
Constants
Introduction to Procedures
Passing Arguments to Procedures
Memory Allocation for Procedures
Introduction to Control Structures
Decision Structures
Loop Structures
Doevents
Using Preprocessor
Scope of Preprocessor Directives
Working with HTML
Embedding Code Within an HTML File
Understanding Platforms
Objects, Events and Platform Functions
Language Reference
Statements
Const Statement
Declare Statement
Dim Statement
Doevents Statement
Do... Loop Statement
Enum Statement
Exit Statement
For... Next Statement
Function Statement
Goto Statement
If.... Then... Else Statement
Include Statement
Includepp Statement
Select-Case Statement
Sub Statement
Type Statement
While-Wend Statement
Keywords
As
Boolean
ByRef
Byte
ByVal
Char
Else
End
False
For
Integer
Next
Public
Short
Step
String
Then
Type
To
True
Word
Operators
Error Messages
C1001
C1002
C1003
C1004
C1005
C1006
C1007
C1008
C1009
C1010
C1011
C1012
C1013
C1014
C1015
C1016
C1017
C1018
C1019
C1020
C1021
C1022
C1023
C1024
L1001
L1002
L1003
L1004
L1005
L1006
L1007
L1008
L1009
Objects, Properties, Methods, Events
Development Environment
Installation Requirements
User Interface
Main Window
Operation Modes
Menu Bar
File Menu
Edit Menu
View Menu
Project Menu
Debug Menu
Image Menu
Window Menu
Help Menu
Toolbars
Project Toolbar
Debug Toolbar
Image Editor Toolbar
Tool Properties Toolbar
Selection Tool Properties
Paint Tool Properties
Eraser Tool Properties
Text Tool Properties
Line Tool Properties
Rectangle Tool Properties
Ellipse Tool Properties
Zoom Tool Properties
Status Bar
Dialogs
Project Settings
New Project
Add File to Project
Graphic File Properties Dialog
Panes
Call Stack
Output
Project
Browser
Files
Watch
Colors
Language Element Icons
Glossary of Terms
Compilation Unit
Compiler
Construct
Cross-Debugging
Identifier
Keyword
Label
Linker
P-Code
Syscall
Target
Virtual Machine
Platforms
Platform Specifications
EM500W
Platform-specific Constants
Enum pl_redir
Enum pl_io_num
Enum pl_io_port_num
Enum pl_int_num
Enum pl_sock_interfaces
Connecting External Flash IC
EM1000 and EM1000W Platforms
Platform-specific Constants
Enum pl_redir
Enum pl_io_num
Enum pl_io_port_num
Enum pl_int_num
Enum pl_sock_interfaces
EM1202 and EM1202W Platforms
Platform-specific Constants
Enum pl_redir
Enum pl_io_num
Enum pl_io_port_num
Enum pl_int_num
Enum pl_sock_interfaces
EM1206 and EM1206W Platforms
Platform-specific Constants
Enum pl_redir
Enum pl_io_num
Enum pl_io_port_num
Enum pl_int_num
Enum pl_sock_interfaces
DS1202 Platform
Platform-specific Constants
Enum pl_redir
Enum pl_io_num
Enum pl_io_port_num
Enum pl_int_num
Enum pl_sock_interfaces
DS1206 Platform
Platform-specific Constants
Enum pl_redir
Enum pl_io_num
Enum pl_io_port_num
Enum pl_int_num
Enum pl_sock_interfaces
Common Information
Supported Variable Types
Supported Functions
GPIO Type
RTS/CTS Remapping
Serial Port FIFOs
Clock Frequency (PLL) Control
Special Configuration Section of the EEPROM
Device Serial Number
Flash Memory Configuration
LEDs
Setup (MD) Button (Line)
Connecting GA1000
Debug Communications
Function Reference
Aes128dec Function
Aes128enc Function
Asc Function
Bin Function
Cfloat Function
Chr Function
Date Function
Daycount Function
Ddstr Function
Ddval Function
Ftostr Function
Hex Function
Hours Function
.Insert Function
Instr Function
Lbin Function
Left Function
Len Function
Lhex Function
Lstr Function
Lstri Function
Lval Function
Md5 Function
Mid Function
Mincount Function
Minutes Function
Month Function
Random Function
Rc4 Function
Right Function
Sha1 Function
Str Function
Strand Function
Strgen Function
Stri Function
Stror Function
Strsum Function
Strtof Function
Strxor Function
Val Function
Vali Function
Weekday Function
Year Function
Object Reference
Beep Object
.Divider Property
On_beep Event
.Play Method
Button Object
On_button_pressed Event
On_button_released Event
.Pressed R/O Property
.Time R/O Property
Fd Object
Overview
Sharing Flash Between Your Application and Data
Fd. Object's Status Codes
Direct Sector Access
Using Checksums
Upgrading the Firmware/Application
File-based Access
Formatting the Flash Disk
Disk Area Allocation Details
Mounting the Flash Disk
Checking Disk Vitals
File Names and Attributes
Creating, Deleting, and Renaming Files
Reading and Writing File Attributes
Walking Through File Directory
Opening Files
Writing To and Reading From Files
Removing Data From Files
Searching Within Files
Closing Files
Using Disk Transactions
Understanding Transaction Capacity
File-based and Direct Sector Access Coexistence
Prolonging Flash Memory Life
Properties and Methods
.Availableflashspace R/O Property
.Buffernum Property
.Capacity R/O Property
.Checksum Method
.Close Method
.Copyfirmware Method
.Copyfirmwarelzo Method
.Cutfromtop Method
.Create Method
.Delete Method
.Filenum Property
.Fileopened R/O Property
.Filesize R/O Property
.Find Method
.Flush Method
.Format Method
.Formatj Method
.Getattributes Method
.Getbuffer Method
.Getdata Method
.Getfreespace Method
.Getnextdirmember Method
.Getnumfiles Method
.Getsector Method
.Laststatus R/O Property
.Maxopenedfiles R/O Property
.Maxstoredfiles R/O Property
.Mount Method
.Numservicesectors R/O Property
.Open Method
.Pointer R/O Property
.Ready R/O Property
.Rename Method
.Resetdirpointer Method
.Sector R/O Property
.Setattributes Method
.Setbuffer Method
.Setdata Method
.Setfilesize Method
.Setsector Method
.Setpointer Method
.Totalsize R/O Property
.Transactioncapacityremaining R/O Property
.Transactioncommit Method
.Transactionstart Method
.Transactionstarted R/O Property
IO Object
Overview
Line/Port Manipulation With Pre-selection
Line/Port Manipulation Without Pre-selection
Controlling Output Buffers
Working With Interrupts
Properties, Events, Methods
.Enabled Property (Selected Platforms Only)
.Intenabled Property
.Intnum Property
.Invert Method
.Lineget Method
.Lineset Method
.Num Property
On_io_int Event
.Portenabled Property (Selected Platforms Only)
.Portget Method
.Portnum Property
.Portset Method
.Portstate property
.State Property
Kp Object
Possible Keypad Configurations
Key States and Transitions
Preparing the Keypad for Operation
Servicing Keypad Events
Properties, Methods, Events
.Autodisablecodes Property
.Enabled Property
.Longpressdelay Property
.Longreleasedelay Property
On_kp Event
On_kp_overflow Event
.Pressdelay Property
.Releasedelay Property
.Repeatdelay Property
.Returnlinesmapping Property
.Scanlinesmapping Property
LCD Object
Overview
Understanging Controller Properties
Preparing the Display for Operation
Working With Pixels and Colors
Lines, Rectangles, and Fills
Working With Text
Raster Font File Format
Displaying Images
Improving Graphical Performance
Supported Controllers/Panels
Samsung S6B0108 (Winstar WG12864F)
Solomon SSD1329 (Ritdisplay RGS13128096)
Himax HX8309 (Ampire AM176220)
Properties and Methods
.Backcolor Property
.Bitsperpixel R/O Property
.Bluebits R/O Property
.Bmp Method
.Enabled Property
.Error R/O Property
.Fill Method
.Filledrectangle Method
.Fontheight R/O Property
.Fontpixelpacking R/O Property
.Forecolor Property
.Getprintwidth Method
.Greenbits R/O Property
.Height Property
.Horline Method
.Inverted Property
.Iomapping Property
.Line Method
.Linewidth Property
.Lock Method
.Lockcount R/O Property
.Paneltype R/O Property
.Pixelpacking R/O Property
.Print Method
.Printaligned Method
.Rectangle Method
.Redbits R/O Property
.Rotated Property
.Setfont Method
.Setpixel Method
.Textalignment Property
.Texthorizontalspacing Property
.Textorientation Property
.Textverticalspacing Property
.Unlock Method
.Verline Method
.Width Property
Net Object
Overview
Main Parameters
Checking Ethernet Status
Properties, Methods, Events
.Mac R/O Property
.Ip Property
.Netmask Property
.Gatewayip Property
.Failure R/O Property
.Linkstate R/O Property
On_net_link_change Event
On_net_overrun Event
Pat Object
.Channel Property
.Greenmap Property
On_pat Event
.Play Method
.Redmap Property
Ppp Object
.Buffrq Method
.Buffsize R/O Property
.Enabled Property
.Ip Property
.Portnum Property
Pppoe Object
.Acmac Property
.Ip Property
.Sessionid Property
Romfile Object
.Find Method
.Find32 Method
.Getdata Method
.Offset R/O Property
.Open Method
.Pointer Property
.Pointer32 Property
.Size R/O Property
RTC Object
.Getdata Method (Previously .Get)
.Running R/O Property
.Setdata Method (Previously .Set)
Ser Object
Overview
Anatomy of a Serial Port
Three Modes of the Serial Port
UART Mode
Wiegand Mode
Clock/Data Mode
Port Selection
Serial Settings
Sending and Receiving Data (TX and RX buffers)
Allocating Memory for Buffers
Using Buffers
Buffer Memory Status
Receiving Data
Sending Data
Handling Buffer Overruns
Redirecting Buffers
Sinking Data
Properties, Methods, Events
.Autoclose Property
.Baudrate Property
.Bits Property
.Ctsmap property (Selected Platforms Only)
.Dircontrol Property
.Div9600 R/O Property
.Enabled Property
.Escchar Property
.Esctype Property
.Flowcontrol Property
.Getdata Method
.Interchardelay Property
.Interface Property
.Mode Property
.Newtxlen R/O Property
.Notifysent Method
.Num Property
.Numofports R/O Property
On_ser_data_arrival Event
On_ser_data_sent Event
On_ser_esc Event
On_ser_overrun Event
.Parity Property
.Redir Method
.Rtsmap Property (Selected Platforms Only)
.Rxbuffrq Method
.Rxbuffsize R/O Property
.Rxclear Method
.Rxlen R/O Property
.Send Method
.Setdata Method
.Sinkdata Property
.Txbuffrq Method
.Txbuffsize R/O Property
.Txclear Method
.Txfree R/O Property
.Txlen R/O Property
Sock Object
Overview
Anatomy of a Socket
Socket Selection
Handling Network Connections
TCP connection basics
UDP "connection" basics
Accepting Incoming Connections
Accepting UDP broadcasts
Understanding TCP Reconnects
Understanding UDP Reconnects and Port Switchover
Incoming Connections on Multiple Sockets
Establishing Outgoing Connections
Sending UDP broadcasts
Closing Connections
Checking Connection Status
More On the Socket's Asynchronous Nature
Sending and Receiving data
Allocating Memory for Buffers
Using Buffers in TCP Mode
Using Buffers in UDP Mode
TX and RX Buffer Memory Status
Receiving Data in TCP Mode
Receiving Data in UDP Mode
Sending TCP and UDP Data
"Split Packet" Mode of TCP Data Processing
Handling Buffer Overruns
Redirecting Buffers
Sinking Data
Working With Inband Commands
Inband Message Format
Inband-related Buffers (CMD, RPL, and TX2)
Processing Inband Commands
Sending Inband Replies
Using HTTP
HTTP-related Buffers
Setting the Socket for HTTP
Socket Behavior in the HTTP Mode
Including BASIC Code in HTTP Files
Generating Dynamic HTML Pages
URL Substitution
Working with HTTP Variables
Simple Case (Small Amount of Variable Data)
Complex Case (Large Amount of Variable Data)
Details on Variable Data
Properties, Methods, and Events
.Acceptbcast Property
.Allowedinterfaces Property
.Availableinterfaces R/O Property
.Bcast R/O Property
.Close Method
.Cmdbuffrq Method
.Cmdlen R/O Property
.Connect Method
.Connectiontout Property
.Currentinterface R/O Property
.Discard Method
.Endchar Property
.Escchar Property
.Event R/O Property (Obsolete)
.Eventsimple R/O Property (Obsolete)
.Getdata Method
.Gethttprqstring Method
.Getinband Method
.Httpmode Property
.Httpnoclose Property
.Httpportlist Property
.Httprqstring R/O Property
.Inbandcommands Property
.Inconenabledmaster Property
.Inconmode Property
.Localport R/O Property
.Localportlist Property
.Newtxlen R/O Property
.Nextpacket Method
.Notifysent Method
.Num Property
.Numofsock R/O Property
.Outport Property
On_sock_data_arrival Event
On_sock_data_sent Event
On_sock_event Event
On_sock_inband Event
On_sock_overrun Event
On_sock_postdata
On_sock_tcp_packet_arrival Event
.Protocol Property
.Reconmode Property
.Redir Method
.Remoteip R/O Property
.Remotemac R/O Property
.Remoteport R/O Property
.Reset Method
.Rplbuffrq Method
.Rplfree R/O Property
.Rpllen R/O Property
.Rxbuffrq Method
.Rxbuffsize R/O Property
.Rxclear Method
.Rxpacketlen R/O Property
.Rxlen R/O Property
.Send Method
.Setdata Method
.Setsendinband Method
Sinkdata Property
.Splittcppackets Property
.State R/O Property
.Statesimple R/O Property
.Targetbcast Property
.Targetinterface Property
.Targetip Property
.Targetport Property
.Toutcounter R/O property
.Tx2buffrq Method
.Tx2len R/O Property
.Txbuffrq Method
.Txbuffsize R/O Property
.Txclear Method
.Txfree R/O Property
.Txlen R/O Property
.Urlsubstitutes
.Varbuffrq Method
Ssi Object
Configuring SSI Channel
CLK, DO, and DI Lines
Baudrate
SSI Modes
Direction
Sending and Receiving Data
More on I2C
Properties, Methods
.Baudrate Property
.Channel Property
.Clkmap Property
.Dimap Property
.Direction Property
.Domap Property
.Enabled Property
.Mode Property
.Str Method
.Value Method
.Zmode Property
Stor Object
.Base Property
.Getdata Method (previously .Get)
.Setdata Method (previously .Set)
.Size R/O Property
Sys Object
Overview
On_sys_init Event
Buffer Management
System Timer
PLL Management
Serial Number
Miscellaneous
Properties, Methods, Events
.Buffalloc Method
.Currentpll R/O Property (Selected Platforms Only)
.Freebuffpages R/O Property
.Halt Method
.Newpll Method (Selected Platforms Only)
On_sys_init Event
On_sys_timer Event
.Onsystimerperiod Property (Selected Platforms Only)
.Reboot Method
.Runmode R/O Property
Serialnum R/O Property (Selected Platforms Only)
Setserialnum Method (Selected Platforms Only)
.Resettype R/O Property
.Timercount R/O Property
.Totalbuffpages R/O Property
.Version R/O Property
Wln Object
Overview
Wi-Fi Parlance Primer
Wln Tasks
Wln State Transitions
Brining Up Wi-Fi Interface
Configuring Interface Lines
Applying Reset
Selecting Domain
Allocating Buffer Memory
Setting MAC Address (Optional)
Booting Up the Hardware
Setting IP, Gateway, and Netmask
Setting TX Power (Optional)
Scanning for Wi-Fi Networks
Discovering All Wireless Networks
Collecting Data About Specific Network
Multiple Access Points With the Same Name
Setting Wi-Fi Security
Setting WEP Mode and Key
Setting WPA Mode and Key
Associating With Selected Network
Creating Own Ad-hoc Network
Communicating via Wln Interface
Disassociating From the Network
Terminating Own Ad-hoc Network
Detecting Disassociation or Offline State
Properties, Methods, Events
.Activescan Method
.Associate Method
.Associationstate R/O Property
.Boot Method
.Buffrq Method
.Buffsize R/O Property
.Clkmap Property
.Csmap Property
.Dimap Property
.Disassociate Method
.Domain Property
.Domap Property
.Enabled R/O Property
.Gatewayip Property
.Ip Property
.Mac Property
.Netmask Property
.Networkstart Method
.Networkstop Method
On_wln_event Event
On_wln_task_complete Event
.Rssi R/O Property
.Scan Method
.Scanresultbssid R/O Property
.Scanresultbssmode R/O Property
.Scanresultchannel R/O Property
.Scanresultrssi R/O Property
.Scanresultssid R/O Property
.Scanresultwpainfo R/O Property
.Settxpower Method
.Setwep Method
.Setwpa Method
.Task R/O Property
Libraries
Common Library Info
Anatomy of Tibbo Libraries
Adding Library Files to Projects
About _get_info() API Functions
Library Reference
DHCP Library
Step-by-step Usage Instructions
Operation Details
Code Examples
Step 1: Code Example for the Ethernet Interface
Step 2: Code Example for the Wi-Fi Interface
Step 3: Adding Bells and Whistles
Step 4: Adding More Bells and Whistles
Library Defines (Options)
En_dhcp_status_codes
Library Procedures
Dhcp_get_info()
Dhcp_start()
Dhcp_stop()
Dhcp_proc_timer()
Dhcp_proc_data()
Callback_dhcp_ok()
Callback_dhcp_failure()
Callback_dhcp_pre_clear_ip()
Callback_dhcp_pre_buffrq()
Callback_dhcp_buff_released()
FILENUM (File Numbers) Library
Step-by-step Usage Instructions
Operation Details
A Code Snippet
Library Defines (Options)
Library Procedures
Filenum_get()
Filenum_who_uses()
Filenum_release()
GPRS (PPP) Library
Step-by-step Usage Instructions
Operation Details
Code Example
Library Defines (Options)
En_gprs_status_codes
Library Procedures
Gprs_get_info()
Gprs_start()
Gprs_stop()
Gprs_proc_timer()
Gprs_proc_sock_data()
Gprs_proc_ser_data()
Callback_gprs_ok()
Callback_gprs_failure()
Callback_gprs_pre_buffrq()
PPPOE Library
Step-by-step Usage Instructions
Operation Details
Code Example
Library Defines (Options)
En_pppoe_status_codes
Library Procedures
Pppoe_get_info()
Pppoe_start()
Pppoe_stop()
Pppoe_proc_timer()
Pppoe_proc_data()
Callback_pppoe_ok()
Callback_pppoe_failure()
Callback_pppoe_pre_buffrq()
SOCK (Socket Numbers) Library
Step-by-step Usage Instructions
Operation Details
A Code Snippet
Library Defines (Options)
Library Procedures
Sock_get()
Sock_who_uses()
Sock_release()
STG (Settings) Library
Setting Descriptor File Format
Step-by-step Usage Instructions
Getting Started
Verifying and Initializing Settings
Writing and Reading Settings
Using Stg_sg()
Using Stg_get() and Stg_set()
Using Setting Numbers
Working With Multi-value Settings
Understanding Timestamps
Using Pre-gets and Post-sets
Operation Details
Sample Project
Step 1: An Embryonic Project
Step 2: Adding Setting Initialization
Step 3: Adding Comms
Step 4: Completing the Project
Library Defines (Options)
Stg_timestamp Global Variable
En_stg_status_codes
Library Procedures
Stg_start()
Stg_check_all()
Stg_get_def()
Stg_restore_multiple()
Stg_restore_member()
Stg_get_num_settings()
Stg_get_num_members()
Stg_find()
Stg_stype_get()
Stg_get()
Stg_set()
Stg_sg()
Stg_set_ts()
Callback_stg_error()
Callback_stg_pre_get()
Callback_stg_post_set()
Callback_stg_vm_read()
Callback_stg_vm_write()
WLN (Wi-Fi Association) Library
Step-by-step Usage Instructions
Operation Details
Code Examples
Step 1: The Simplest Example
Step 2: Adding TCP Comms
Step 3: Trying WPA
Step 4: Roaming Between Access Points
Library Defines (Options)
En_wln_status_codes
Library Procedures
Wln_get_info()
Wln_start()
Wln_stop()
Wln_change()
Wln_rescan()
Wln_wpa_mkey_get()
Wln_check_association()
Wln_proc_timer()
Wln_proc_data()
Wln_proc_task_complete()
Wln_proc_event()
Callback_wln_ok()
Callback_wln_failure()
Callback_wln_pre_buffrq()
Callback_wln_mkey_progress_update()
Callback_wln_rescan_result()
Update History (for this Manual)

©2000-2011 Tibbo Technology Inc.