X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-55
Wait for the Data Exchange (Use Mode 2)
!An interrupt packet is received and queued.
7. READ a data packet.
!
!The interrupt packet is transferred to the READ buffer.
!The READ completes successfully.
!Program logic dictates a reset response.
8. WRITEREAD a Reset packet.
!
!A reset packet is sent.
!A Reset Confirmation packet is received.
!Reset Confirmation is transferred to the WRITEREAD buffer.
!The WRITEREAD completes successfully.
9. READ a packet.
!A Data packet (M=0) is received.
!
!The data packet (M=0) is transferred to the buffer.
!The READ completes successfully.
!
!An Invitation to Clear is sent.
10. WRITEREAD a Clear Request.
!
!A clear request packet is sent.
!A Clear Confirmation packet is received.
!Clear Confirmation is transferred to the WRITEREAD buffer.
!The WRITEREAD completes successfully.
11. CLOSE the subdevice.
!
!Nothing is sent or received.
Wait for the Data Exchange (Use Mode 2)
The program waits for the call with a CONTROL 11. It waits for the data exchange by
reading data for a packet. After the initial READ, READs and WRITEs can be in any
order, depending on the program logic and the response expected from the remote
device. The program ends the call with a CONTROL 12.
1. OPEN the subdevice.
!
!Nothing is sent or received.
2. SETMODE 31,2,0.
!