![]() ZBasic System Library
282
ZBasic Microcontrollers
Type
Subroutine
Invocation
SetQueueX10(chan, forTransmit, phase, queue)
Parameter
Method
Type
Description
chan
ByVal
Byte
The X-10 communication channel of interest.
forTransmit
ByVal
Boolean
True for specifying a transmit queue, false for receive.
phase
ByVal
Byte
The phase to be associated with the queue.
queue
ByRef
array of Byte
The queue of to assign.
Discussion
This subroutine assigns a queue for X-10 operation. In single phase mode, the queues are usually
assigned with the call to OpenX10(). In three phase mode, the queues for phase 1 are assigned with the
call to OpenX10() and the additional queues needed, if any, are assigned using subsequent calls to this
subroutine. If the forTransmit parameter is True, the queue will be used for the transmit operation of
the specified phase (1, 2 or 3). Otherwise, the queue will be used for the receive operation of the
specified phase.
Note that in three phase mode, if a transmit queue is not specified for phase 2, any data sent on phase 1
will also be sent on phase 2. The same is true for phase 3. In contrast, if no receive queue is specified
for phase 2, any data received on phase 2 in three phase mode will be ignored; the same is true for
phase 3.
Compatibility
This function is only available on native mode devices it is not available in BasicX compatibility mode.
See Also
|