📄 lcd.h
字号:
/***************************************************************************
* This code and information is provided "as is" without warranty of any *
* kind, either expressed or implied, including but not limited to the *
* implied warranties of merchantability and/or fitness for a particular *
* purpose. *
* *
* Copyright (C) 2005 Teridian Semiconductor Corp. All Rights Reserved. *
***************************************************************************/
//**************************************************************************
// DESCRIPTION: 71M652x - kWh structures, enumerates, and defines.
//
// AUTHOR: MTF
//
// HISTORY: see end of file.
//***************************************************************************
// File: LCD.H
//
#ifndef _LCD
#define _LCD
/////////////////////////////////////////////////////////////////////////////
//***************************************************************************
//* LCD DEFINITIONS AND DECLARATIONS
//***************************************************************************
/////////////////////////////////////////////////////////////////////////////
void LCD_Command (uint8_t LcdCmd);
// Definitions for LCD_Command.
#define LCD_CLEAR 0x01 // Clears entire LCD.
#define LCD_DISPLAY_ON 0x0C // Display ON.
#define LCD_DISPLAY_OFF 0x08 // Display OFF.
#define MAX_DIGITS 8
void LCD_Config (uint8_t num, enum eLCD_MODE mode, enum eLCD_CLK clock);
// d is the number,
// c is the number of numerals,
// p is the number of numerals after the decimal point
void LCD_Number (int32_t d, int8_t c, int8_t p);
void LCD_Init (void); // Initialize LCD.
#if VIM808
uint16_t LCD_Data_Read (uint8_t Icon); // reads if icon's on
bool LCD_Seg_Get (uint16_t seg);
#endif
void LCD_Data_Write (uint8_t icon, uint16_t Mask);
void LCD_Seg_Set (uint16_t seg);
void LCD_Seg_Clr (uint16_t seg);
extern uint16r_t Digit_Mask[]; // Masks for 7-segment digits.
#include "lcd_symbols.h"
#include "lcd_ext.h"
/***************************************************************************
* History *
* $Log: lcd.h,v $
* Revision 1.15 2006/09/29 09:40:59 tvander
* Build errors
*
* Revision 1.14 2006/09/13 01:38:09 gmikef
* *** empty log message ***
*
* Revision 1.13 2006/09/12 02:43:52 gmikef
* *** empty log message ***
*
* Revision 1.12 2006/09/09 01:09:43 gmikef
* *** empty log message ***
*
* Revision 1.11 2006/09/08 07:35:39 Michael T. Fischer
* *** empty log message ***
*
* Revision 1.10 2006/09/07 05:29:49 Michael T. Fischer
* *** empty log message ***
*
* Revision 1.9 2006/06/29 00:55:48 tvander
* Marked NOAREGS on reentrant routines that needed it.
*
* Revision 1.8 2006/06/14 02:50:32 tvander
* Changes to speed up LCD display:
* The clear was made integral with the main display routine.
* e.g. LCD_Number() clears the display, then places the number.
* This means that the decimal points, mode, etc. have to be written after
* the main display item.
*
* Revision 1.7 2006/04/15 01:06:50 tvander
* It wouldn't display all zeros; fixed.
*
* Revision 1.6 2006/03/06 03:31:41 Michael T. Fischer
* More 6530 prep.
*
* Revision 1.4 2005/11/09 02:21:15 tvander
* Added code to display watt hours from brownout mode.
* Added code to clear EEPROM (lapie command "EEE")
*
* Revision 1.3 2005/10/12 23:00:02 tvander
* Includes demonstratable mission mode, brownout, LCD and sleep modes
*
* Revision 1.2 2005/09/22 23:45:05 tvander
* Clean build all models and unit tests, updated copyright to be fore Teridian
*
* Revision 1.1 2005/08/28 02:17:26 gmikef
* *** empty log message ***
*
* Revision 1.7 2005/07/14 20:15:53 tvander
* ce code concentrated in ce.c
* ce interface concentrated in ce652x.c, .h
* Fixed 0-length read or write using flag protocol.
* display.c is out of the build
* kwh_initialize now reads the LRC.
*
* Revision 1.6 2005/06/25 02:04:45 tvander
* Integrated pulse counting
*
* Revision 1.5 2005/04/30 02:18:21 gmikef
* *** empty log message ***
*
* Revision 1.4 2005/04/28 19:12:26 tvander
* Comments only! Restored history comments.
*
* Revision 1.3 2005/04/27 23:46:38 gmikef
* Some MATH rountines now use 'idata'.
* Added MATH_FAST flag to 'options.h".
* Changed "6521B.Uv2" to max optimization.
*
* Revision 1.2 2005/04/21 02:06:46 gmikef
* *** empty log message ***
* *
* Revision 1.1 2005/04/06 18:11:20 gmikef
* *** empty log message ***
*
* Copyright (C) 2005 Teridian Semiconductor Corp. All Rights Reserved. *
* this program is fully protected by the United States copyright *
* laws and is the property of Teridian Semiconductor Corporation. *
***************************************************************************/
#endif /* lcd.h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -