Symbol SE955 Integration Manual page 220

Table of Contents

Advertisement

A-4
SE955 Integration Guide
Receiving Data
The decoder can receive data whenever it grants permission to the host to send its data. If the host is transmitting data, the maximum
character-to-character delay allowed is determined by the Host Intercharacter Time-out parameter. The decoder may discard any
received data if the host exceeds this time limit.
Sample Code for Decoder Receive Procedure
void decoder_receive()
IF (host is requesting to send) THEN
give host permission to send
WHILE (no characters received) DO
IF (host is no longer requesting to send) THEN
remove host's permission to send
RETURN /* NULL xmit - do not NAK */
END
END
set up host character time out
WHILE (not timed out AND not the last character) DO
IF (a character was received) THEN
reset host character time out
END
END
WHILE (host is requesting to send) DO
wait /* for host to end handshake */
END
remove host's permission to send
process received message and prepare response
END
RETURN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Se-955

Table of Contents