58 of 323
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. See the description of OpenX10() for more information. 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 DefineX10, OpenX10, StatusX10