📄 hal_lcd.h
字号:
/***********************************************************************************
Filename: hal_lcd.h
Description: hal lcd library header file
***********************************************************************************/
#ifndef HAL_LCD_H
#define HAL_LCD_H
#ifdef __cplusplus
extern "C" {
#endif
/***********************************************************************************
* INCLUDES
*/
#include "hal_types.h"
/***********************************************************************************
* CONSTANTS AND DEFINES
*/
enum {
HAL_LCD_RADIX_DEC,
HAL_LCD_RADIX_HEX
};
enum {
HAL_LCD_LINE_1 = 1,
HAL_LCD_LINE_2,
HAL_LCD_LINE_3
};
/***********************************************************************************
* GLOBAL FUNCTIONS
*/
void halLcdInit(void);
void halLcdClear(void);
void halLcdSetContrast(uint8 value);
uint8 halLcdGetLineLength(void);
uint8 halLcdGetNumLines(void);
void halLcdWriteChar(uint8 line, uint8 col, char text);
void halLcdWriteLine(uint8 line, const char XDATA *text);
void halLcdWriteLines(const char XDATA *line1, const char XDATA *line2, const char XDATA *line3);
void halLcdDisplayValue(uint8 line, char XDATA *pLeft, int32 value, char XDATA *pRight);
void halLcdDisplayCounters(uint8 line, int32 lValue, char lChar, int32 rValue, char rChar);
void halLcdDisplayUint16(uint8 line, uint8 radix, uint16 value);
void halLcdClearAllSpecChars(void);
void halLcdCreateSpecChar(uint8 index, const char XDATA *p5x8Spec);
void halLcdWriteSpecChar(uint8 line, uint8 col, uint8 index);
#ifdef ASSY_EXP4618_CC2420
#include "hal_lcd_sblcda4.h"
#endif
#ifdef __cplusplus
}
#endif
/**********************************************************************************/
#endif
/***********************************************************************************
Copyright 2007 Texas Instruments Incorporated. All rights reserved.
IMPORTANT: Your use of this Software is limited to those specific rights
granted under the terms of a software license agreement between the user
who downloaded the software, his/her employer (which must be your employer)
and Texas Instruments Incorporated (the "License"). You may not use this
Software unless you agree to abide by the terms of the License. The License
limits your use, and you acknowledge, that the Software may not be modified,
copied or distributed unless embedded on a Texas Instruments microcontroller
or used solely and exclusively in conjunction with a Texas Instruments radio
frequency transceiver, which is integrated into your product. Other than for
the foregoing purpose, you may not use, reproduce, copy, prepare derivative
works of, modify, distribute, perform, display or sell this Software and/or
its documentation for any purpose.
YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
PROVIDED 揂S IS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -