Navigation bar
  Start Previous page
 284 of 323 
Next page End  

ZBasic System Library
274
ZX Microcontroller Family
StatusX10
Type
Function returning Byte
Invocation
StatusX10(chan) 
Parameter
Method
Type
Description
chan
ByVal
Byte
The X-10 communication channel of interest.
Discussion
This function returns a set of flag bits that indicate the status of the specified X-10 channel.  The bits and
their meanings are shown in the table below.  The return value may comprise zero or more of the status
bits.
X-10 Channel Status Bit Values
Value
Meaning
Cleared by
ResetX10
&H01
The channel number is valid but may or may not be open.
No
&H02
The channel is open.
No
&H04
The channel has data yet to be transmitted.
No
&H40
An end-of-command condition was detected during reception.
Yes
&H80
A collision was detected during transmission.
Yes
The remaining bits are currently undefined but may convey additional information in the future.  Some of
the status bits represent state information for the channel that can be cleared by calling ResetX10(); see
the third column of the table above.
Compatibility
This function is not available on ZX models that are based on the ATmega32 processor (e.g. the ZX-24). 
Moreover, it is not available in BasicX compatibility mode.  
See Also
Previous page Top Next page