X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-28
PTP Programming Tasks
The remote network address must be specified before posting the CONTROL. This
is done with the SCF subdevice attribute DESTADDR. Use SETPARAM 1 in your
application to override the configured value.
WRITEREAD (data-exchange mode 2):
Your application writes a Call Request. The network response is returned in the
file-system buffer.
Reading Incoming Data or Other Packets
Use the following command to read incoming data or other packets (depending on the
data mode):
Writing Outgoing Data or Other Packets
Use the following command to write outgoing data or other packets (depending on data
mode):
Writereading Data or Other Packets
Use the following command to writeread data or other packets (depends on data
mode):
Clearing a Call
Use the following functions to clear a call:
CONTROL 12 (data-exchange modes 0, 1, 2, and 3):
A Clear packet is written to the remote device.
The application can set the Cause and Diagnostic bytes. Most networks require the
DTE to use 0 for Cause. If your application does not set these values, they default
to 0,0.
WRITEREAD (data-exchange mode 2):
Your application writes a Clear Request. The network response is returned in the
file-system buffer.
CLOSE:
When all of the application opens are closed, PTP clears the call.
CALL READ (filenum, buffer, read^count,
count^read, nowait^tag)
CALL WRITE (filenum, buffer, write^count,
count^written, nowait^tag)
CALL
WRITEREAD
(filenum, buffer, write^count,
read^count, count^read, nowait^tag)