CipherLab 8 Series User Manual page 75

Hide thumbs Also See for 8 Series:
Table of Contents

Advertisement

3
4
Example
U% = IOPIN_STATUS(2)
' *** Detect Cradle ***
V% = BIT_OPERATOR(1, U%, 15)
' Get the value of Bit 0~3 to check if any cradle detected
IF V% = 2 THEN
PRINT "Seated in Ethernet cradle"
ENDIF
' *** Check if USB cable connected ***
V% = BIT_OPERATOR(1, U%, 32)
' Get the value of Bit 5 to check if USB cable detected
IF V% = 32 THEN
PRINT "USB cable connected"
ENDIF
For 8200/8400/8700 only: To get the status when mass storage is in
use.
A% = A value that indicates the current status.
A%
Meaning
0
USB is disconnected.
1
USB is connected and device is not being accessed.
3
USB is connected and device is being accessed.
For 8000/8300: To get the charging status.
A% = A value that indicates the current status.
A%
Meaning
0
No connection to external power.
1
Battery is being charged.
2
Battery charging done.
3
Charging error occurs.
' Check if Ethernet cradle
' 32 = 0x20
Chapter 4
BASIC Commands
63

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 8 Series and is the answer not in the manual?

This manual is also suitable for:

83008000840087008200

Table of Contents