Download smartBASIC Core Functionality

Transcript
0
smart
BASIC Core Functionality
0
User
0 Manual
0
0
3
1
4
TABLELOOKUP is a core function.
Miscellaneous Routines
This section describes all miscellaneous functions and subroutines
RESET
SUBROUTINE
This routine is used to force a reset of the module.
RESET (nType)
Exceptions

Local Stack Frame Underflow

Local Stack Frame Overflow
Arguments:
nType
byVal nType AS INTEGER.
Interactive
Command
NO
This is for future use. Set to 0.
//Example :: RESET.sb (See in Firmware Zip file)
RESET(0)
//force a reset of the module
Expected Output:
Like when you reset the module using the interactive
command ‘ATZ’, the CTS indicator will momenterally change
from green to red, then back to green.
RESET is a core subroutine.
Random Number Generation Routines
Random numbers are either generated using pseudo random number generator algorithms or
using thermal noise or equivalent in hardware. The routines listed in this section provide the
developer with the capability of generating random numbers.
The Interactive Mode command “AT I 1001” or at runtime SYSINFO(1001) will return 1 if the system
generates random numbers using hardware noise or 0 if a pseudo random number generator.
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/bluetooth
111
Laird Technologies
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852-2268-6567 x026