Specifications

Adding Channels and an SWI to the Configuration File
7-14
mode
. This property determines which end of the pipe the target
program manages, and which end the Host Channel Control plug-in
manages. An input channel sends data from the host to the target.
An output channel sends data from the target to the host.
framesize
. This property sets the size of each frame in the channel.
Use 64 words—the same value as the BUFSIZE defined in section
7.2, page 7-3.
notify, arg0, arg1
. These properties specify the function to run when
this input channel contains a full frame of data and the arguments to
pass to that function. The SWI_andn function provides another way
to manipulate a SWI object’s mailbox.
In Chapter 5, you used the SWI_dec function to decrement the
mailbox value and run the SWI object’s function when the mailbox
value reached zero.
The SWI_andn function treats the mailbox value as a bitmask. It
clears the bits specified by the second argument passed to the
function. So, when this channel contains a full frame (because the
target filled a frame), it calls SWI_andn for the A2DscaleD2A_SWI
object and causes it to clear bit 1 of the mailbox.