X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-31
PTP Procedure Statements Summary
OPEN
READ
SETMODE 28
Reset the parameter values set by the SETMODE and SETPARAM procedure to the
values configured for the subdevice.
SETMODE 30
Set the NOWAIT completion order for file-system operations.
READ and WRITE requests are queued in separate read and write queues. The write
portion of a WRITEREAD request goes in the write queue. When this completes, the
read portion goes in the read queue. Thus, intermingling READs and WRITEREADs
can produce an unexpected result.
SETMODE 31
Set the data-exchange mode and the size of the data field in the data packet if it is less
than the PACKETSIZE configured for the subdevice.
CALL OPEN (filenum,filename,flags)
CALL READ (filenum,buffer,read^count,count^read,
nowait^tag)
CALL SETMODE (filenum, operation)
filenum
= file number
operation = 28
CALL SETMODE (filenum, operation, param1)
filenum = file number
operation = 30
param1 0 = READ, WRITE, and WRITEREAD requests complete
in the same order that they are issued. They are not
processed in the same order that they are issued.
1 = READ, WRITE, and WRITEREAD requests complete
in any order. The AWAITIO tags are required.
CALL SETMODE (filenum, operation, param1, param2)
filenum = file number
operation = 31
param1.<0> 0 = ignore param2
1 = Look at param2 to specify packet size.