Navigation bar
  Start Previous page
 51 of 283 
Next page End 46 47 48 49 50 51 52 53 54 55 56  

42
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
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 INT0.  While any X-10 channel is open, a task awaiting an
interrupt on the Int0 pin will be suspended indefinitely.  Once all X-10 channels are closed, Int0 will
function normally again.
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