Set handshaking mode

Command Code:

Binary: [1 0 1 1 1 1 1 1] [0 0 0 1 0 0 0 0] [0 0 0 0 0 0 in out]

Description:

Sets the input and output handshaking mode for the Parallel Port. Only the bits in and out are used.

in = 0 : Disable Input Handshaking (default at startup). Disable the use of DISTB/DIO7 as a handshaking pin, in turn freeing it for general I/O use. When input handshaking is enabled, rising edges on the DISTB input cause the Parallel Port data to be sampled and sent to the host in the form of a port receive message. When disabled, sampling of the Parallel Port only occurs when a  sample port message is issued.
in = 1 : Enable Input Handshaking  Enables the use of DISTB/DIO7 as a handshaking pin, in turn removing it from general I/O use. When input handshaking is enabled, rising edges on the DISTB input cause the Parallel Port data to be sampled and sent to the host in the form of a port receive message. When disabled, sampling of the Parallel Port only occurs when a  sample port message is issued.
out= 0 : Disable Output Handshaking (default at startup). Disable the use of DOSTB/DIO6 as a handshaking pin, in turn freeing it for general I/O use. When output handshaking is enabled, each data byte sent out the Parallel Port using the port send command will be accompanied by a positive DOSTB pulse lasting one IR sampling period.
out = 1 : Enable Output Handshaking Enable the use of DOSTB/DIO6 as a handshaking pin, in turn removing  it from general I/O use. When output handshaking is enabled, each data byte sent out the Parallel Port using the port send command will be accompanied by a positive DOSTB pulse lasting one IR sampling period.