📄 lcdstats.h
字号:
/***************************************************************************
*
* Module: LcdStats.h
*
* Description: Phone-On-A-Chip LCD Display and Menu Routines.
*
* Author: Doug Oucharek
*
* Copyright 2000, Trillium Digital Systems, Inc., All rights reserved
*
*
* Change Log:
*
* Date By Description
* ======== === ====================================================
* 01/31/00 DSO Created
* 11/06/2000 mwb Revamped configuration, so deleted unused declarations
*
***************************************************************************/
#ifndef __LCDSTATS_H__
#define __LCDSTATS_H__
#include "rvwpt.h"
/*
* TypeDef's:
*/
typedef enum {
menu_forward,
menu_backward,
menu_select,
menu_onhook
} action_type;
typedef enum {
ip_id,
string_id,
dig_id
} id_type;
typedef struct
{
char *string;
unsigned long value; /* default value */
unsigned long min; /* minimum */
unsigned long max; /* maximum */
} config_menu_type;
/***************************************************************************
*
* LcdShowRemote()
*
* Arguments
* Input: typ - type of remote id received.
* id - the remote id.
* length - number of bytes in remote id.
* flag - whether to indicate extra info, such as transferred call
*
* Returns: Nothing
*
* Description:
* 1. Display the remote id on the LCD display.
*
**************************************************************************/
void LcdShowRemote( id_type typ, char *id, int length, char *localID, int flag );
/***************************************************************************
*
* LcdShowDigit()
*
* Arguments
* Input: digit - the digit to be displayed.
* reset_lcd - indicates if we should clear the LCD first.
*
* Returns: Nothing
*
* Description:
* 1. Display the given numeric digit on the LCD.
*
**************************************************************************/
void LcdShowDigit( char digit, char reset_lcd );
/***************************************************************************
*
* LcdShowString()
*
* Arguments
* Input: string - null terminated string to be displayed on the LCD.
*
* Returns: Nothing
*
* Description:
* 1. Display string on the LCD. Split it over two lines if necessary.
*
**************************************************************************/
void LcdShowString( char *string );
#if 0
short LcdConvertIP(char *str, unsigned int *numIP);
/***************************************************************************
*
* LcdGetAction()
*
* Arguments
* Input: None
*
* Returns: action_type - the user selected action.
*
* Description:
* 1. Collect the action from the user. One of '#', '#', or '0'.
*
**************************************************************************/
action_type LcdGetAction( void );
/***************************************************************************
*
* LcdGetKeyPress()
*
* Arguments
* Input: None
*
* Returns: char - digit pressed by the user.
*
* Description:
* 1. Get the next key pressed by the user.
*
**************************************************************************/
char LcdGetKeyPress( void );
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -