The function Zmenu_KeyConfig() is available in the sample program to allow you to lay
out your own keypad character assignment.
int Zmenu_Config(int MenuNumber, ...);
Sets up a menu for use with keypads and character displays. The function uses identifiers to determine the
course of action. Each call to Zmenu_Config() must incorporate one of the two identifiers,
ZMENU_TITLE or ZMENU_OPTION , and must end with the identifier ZMENU_END .
PARAMETERS
MenuNumber is the menu number to configure.
The remaining parameters are identifiers and parameters used for the menu.
IDENTIFIER MACROS
ZMENU_TITLE identifies the next set of settings to be associated with the menu parameters. A 1 param-
eter following the identifier is the title of the menu, a 2 parameter specifies the characteristics of the menu.
The following characteristics are allowed.
ZMENU_BORDER places a border around the menu.
ZMENU_KEYPAD uses the keypad to control the menu.
These parameters can be OR'ed together as needed.
A 3 parameter after ZMENU_TITLE is a pointer to the font that will be used for the menu and its associ-
ated items. NULL can be used if the menu is being used on a character-style LCD that has no fonts.
ZMENU_OPTION identifies the next set of parameters to be associated with a particular option within the
menu. A 1 parameter following the identifier is always the title of the option. A 2 parameter is the item
action that will be taken if the item is selected. The parameter following the action parameter depends on
the action parameter itself. The following action parameters are allowed.
ZMENU_FUNCTION —The next parameter is a pointer to a user-defined function that will be called
when the item is selected. The function must return a non-zero when completed, and must be non-
blocking.
ZMENU_SUBMENU —The next parameter is the menu number to be displayed when the item is
selected.
ZMENU_LASTMENU —No parameter is entered. The item selected will display the previous menu.
ZMENU_SET_FLAG —Two parameters are required. The first parameter is a pointer to an int that this
item is associated with; the next parameter is the value to place in that int.
ZMENU_LONG is a data-entry function. Two parameters are required. The first parameter is a long
pointer to a long value that will be used for data entry. The second parameter is the maximum number
of digits that the long value will have (in decimal format) when this item is selected. A data-entry
window will be displayed to allow the operator to enter a numeric value.
ZMENU_FLOAT is a data-entry function. Two parameters are required. The first parameter is a float
pointer to a float value that will be used for data entry. The second parameter is the maximum number
of digits that the float value will have (in decimal format) when this item is selected. A data-entry
window will be displayed to allow the operator to enter a numeric value.
154
RabbitNet Peripheral Cards
相关PDF资料
101-0954 KIT DEV RABBIT RCM3360/3370 INTL
101-1050-BE-00025 ADPT USB 2 A FEMALE-2 5PIN .25M
10112627-101LF MINI-SAS HD 1X2 EXT PCB
10112628-101LF MINI-SAS HD 1X4 EXT PCB
10136-3000PC CONN MINI-D 36POS SOLDER PLUG
10136-6000EC CONN MDR PLUG 36POS IDC GOLD
10150-4CZ3PL CONN MDR PLUG 50POS VERT T/H
10150-72E2PC CONN MINI-D 50POS R/A PLUG
相关代理商/技术参数
101-0689 功能描述:开发板和工具包 - 其他处理器 Serial-to-Ethernet RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
101-0690 功能描述:KIT SERIAL-ETHERNET APPLICATION RoHS:否 类别:编程器,开发系统 >> 评估演示板和套件 系列:RabbitCore 3000 产品培训模块:Obsolescence Mitigation Program 标准包装:1 系列:- 主要目的:电源管理,电池充电器 嵌入式:否 已用 IC / 零件:MAX8903A 主要属性:1 芯锂离子电池 次要属性:状态 LED 已供物品:板
101-0691 功能描述:模块化系统 - SOM RCM3300 RABBITCORE RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
101-0697 功能描述:单板计算机 BL2102 Bottom Mnt RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
101-0698 功能描述:模块化系统 - SOM RCM3310 RABBITCORE RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
10-106C 制造商:Datak Corporation 功能描述:
10106DC 制造商:Freescale Semiconductor 功能描述:10106DC
10106F 制造商:North American Philips Discrete Products Div 功能描述:Logic Circuit, Dual 3-Input NOR, 16 Pin, Ceramic, DIP