Navigation bar
  Start Previous page
 58 of 318 
Next page End  

ZBasic System Library
48
ZX Microcontroller Family
CloseX10
Type
Subroutine
Invocation
CloseX10(channel, inQueue, outQueue)
Parameter
Method
Type
Description
channel
ByVal
Byte
The X-10 channel to close.
inQueue
ByRef
array of Byte
The input queue associated with the channel.
outQueue
ByRef
array of Byte
The output queue associated with the channel.
Discussion
This routine shuts down the specified X-10 communication channel.  All communication is terminated
even if there are still data in the output queue that have not yet been sent.  This call does not clear the
queues.  If that is a requirement, calls to ClearQueue() will need to be made.
If the specified X-10 channel is not open or if an invalid channel number is given the call has no effect. 
The inQueue and outQueue parameters are currently not used but are present for congruency with
CloseCom().  Zero values may be used for either or both parameters.
 
Resource Usage
The X-10 communication requires the use of a zero-crossing signal input to the ZX as noted in the table
below.  When one or more of the X-10 channels are open the zero-crossing input pin may not be used for
any other purpose.  When all X-10 channels are closed, zero-crossing input pin will again be available for
other uses.
X-10 Zero-Crossing Pin
Underlying CPU
Pin
mega328P, mega644P, mega1284P
INT0
mega1281, mega1280
INT0
xmega128A1, xmega32A4
A.5
Compatibility
This subroutine 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