Miscellaneous - Metrologic Optimus S Programming Manual

"c" programming guide
Table of Contents

Advertisement

3.16 Miscellaneous

DownLoadPage
prc_menu
To stop the application and force the program to jump to the System Menu for
Purpose
downloading new programs.
Syntax
void DownLoadPage (void);
Example
open_com (1, 0x80);
DownLoadPage();
Description
This routine sets the terminal to the "Download mode". The "Download" page
will be displayed, and user can select the COM port and baud rate for program
downloading.
For the Optimus S and Optimus R, it is possible to pass arguments to suppress
the download submenu. For example,
DownLoadPage(NO_MENU, COMM_DIRECT, BAUD_115200);
In this case, the terminal will be set to the "Ready to download" state without
prompting the download submenu.
Parameter #1
Parameter #2
Parameter #3
For constants of the #2 and #3 parameters, check the header files.
Return
None
Purpose
To create a menu-driven interface.
Syntax
int prc_menu (MENU *menu);
Example
MENU MyMenu = {3, 1, 0, "My Menu", {&Collect, &Upload, &Download}};
MENU_ENTRY Collect = {0, 1, "1. Collect", FuncCollect, 0};
MENU_ENTRY Upload = {0, 2, "2. Upload", FuncUpload, 0};
MENU_ENTRY Download = {0, 3, "3. Download", FuncDownload, 0};
void FuncCollect (void)
{
/* to do: add your own program code here */
Chapter 3 Terminal Specific Function Library
The constant NO_MENU is a must.
Communication type
Transmission baud rate
215
/* 38400, N, 8 */
/* enter "Download" mode */

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents