Motorola SE955 Integration Manual page 231

Table of Contents

Advertisement

A - 6
SE955 Integration Guide
Sample Code for Host Receive Procedure
void host_receive()
IF (a character has been received) THEN
set up intercharacter time out
WHILE (not timed out AND not the last character) DO
IF (host can receive right now) THEN
ELSE
END
END
process received message and prepare response
RETURN
END
RETURN
deassert host RTS /* in case host was holding off decoder */
IF (a character was received) THEN
reset intercharacter time out
END
IF (host wants to send to decoder) THEN
RETURN /* so host can transmit */
ELSE
request to send /* to hold off the decoder */
set up new intercharacter time-out
END

Advertisement

Table of Contents
loading

Table of Contents