User Manual Part 5

User Guide to Q4000/QPRO
Document Number 1135-4713 Rev G
THIS DOCUMENT CONTAINS CONFIDENTIAL AND PROPRIETARY INFORMATION OF QUAKE GLOBAL CORPORATION. IT MAY BE USED BY
RECIPIENT ONLY FOR THE PURPOSE FOR WHICH IT WAS TRANSMITTED AND WILL BE RETURNED UPON REQUEST OR WHEN NO LONGER NEEDED
BY RECIPIENT. DISCLOSURE TO UNAUTHORIZED THIRD PARTIES OR DUPLICATION WITHOUT THE EXPRESS WRITTEN PERMISSION OF QUAKE
GLOBAL IS PROHIBITED.
Page 102
CONFIDENTIAL
Information classified Confidential
-
Do not copy (See last page for obligations)
In Figure 12-40, ParseCommandMessage() does the following:
An occurrence of the relayCmd, “RELAY” is sought.
If it is found, the relay number and value are extracted by the atoi() calls and the relay
number is verified to be less than two.
Using the function, RELAY_writeChannel(), a command is sent to the RELAY module
to set the appropriate relay.
Figure 12-40: DemoAppREMOTE - Parsing command message