⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 evm5509_lcd.h

📁 dsp 5509a MMC 卡 ID号读取 12Mhzx16=192M
💻 H
字号:
/*
 *  Copyright 2004 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 */
 
/*
 *  ======== evm5509_lcd.h ========
 *
 *  Interface for LCD on 5509 EVM keypad/display module
 */
#ifndef EVM5509_LCD_
#define EVM5509_LCD_

#ifdef __cplusplus
extern "C" {
#endif

#include <csl.h>

/* LCD command codes (SED1565 command set) */
#define EVM5509_LCD_SETCOLL       0x00
#define EVM5509_LCD_SETCOLH       0x10
#define EVM5509_LCD_SETRATIO      0x20
#define EVM5509_LCD_SETPOWER      0x28
#define EVM5509_LCD_SETLINE       0x40
#define EVM5509_LCD_DISPLAY_OFF   0xae
#define EVM5509_LCD_SETBIAS_HI    0xa2
#define EVM5509_LCD_SETBIAS_LO    0xa3
#define EVM5509_LCD_NONE          0xa4
#define EVM5509_LCD_ALL           0xa5
#define EVM5509_LCD_REVERSE_ON    0xa7
#define EVM5509_LCD_REVERSE_OFF   0xa6
#define EVM5509_LCD_DISPLAY_ON    0xaf
#define EVM5509_LCD_SETPAGE       0xb0
#define EVM5509_LCD_RESET         0xe2
#define EVM5509_LCD_SETCOMDIR_FWD 0xc0
#define EVM5509_LCD_SETCOMDIR_REV 0xc8

#define EVM5509_LCD_ROWS          8
#define EVM5509_LCD_COLS          21
#define EVM5509_LCD_PIXELROWS     64
#define EVM5509_LCD_PIXELCOLS     128

/* Write 8 bits as command (a0 = 0) or data (a0 = 1) */
void EVM5509_LCD_rset(Int16 a0, Uint16 data);

/* Set current position */
void EVM5509_LCD_setPos(Int16 x, Int16 y);

/* Send raw display data to LCD */
void EVM5509_LCD_raw(Uint16 *pdata, Int16 len);

/* Display raw data at a specified location */
void EVM5509_LCD_rawPos(Int16 x, Int16 y, Uint16 *pdata, Int16 len);

/* Display a character at the current position */
void EVM5509_LCD_char(Int16 ch);

/* Display a text string at the current position */
void EVM5509_LCD_text(char *str);

/* Display a text string a specified location */
void EVM5509_LCD_textPos(Int16 x, Int16 y, char *str);

/* Display a 16-bit hex value at the current position */
void EVM5509_LCD_hex(Uint16 hexnum);

/* Display a 16-bit hex value at a specified location */
void EVM5509_LCD_hexPos(Int16 x, Int16 y, Uint16 hexnum);

/* Fill the screen with a fixed value */
void EVM5509_LCD_fillScreen(Int16 value);

/* Initialize the LCD module */
void EVM5509_LCD_init();

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -