cdevice.h

来自「系统移植 AEDK EMB33实验系统」· C头文件 代码 · 共 66 行

H
66
字号
//------------------------------------------------------------------------------
// File:        cDevice.h
// Date:        2001-5-10 pm 04:42:09
// Written by:  CYu
// Decription:  
// Modification record
//              Leon Zhong modify for PDA CELLULAR L1F10043T00 (4K color)
//------------------------------------------------------------------------------
// Copyright:   EPSON Proprietary Material
//              Copyright (c) 2001, All Rights Reserved
//              SHANGHAI EPSON ELECTRONICS CO., LTD.
//
//              DISTRIBUTION PROHIBITED without written authorization from EPSON
//------------------------------------------------------------------------------
#if !defined _C_DEVICE_H_
#define _C_DEVICE_H_

#include <cBType.h>

#define SCREEN_WIDTH    320
#define SCREEN_HEIGHT   240
#define BYTEPERPIXEL    1
#define BITPERPIXEL     (BYTEPERPIXEL*8)
#define MAXCOLOR        256

#define COPY_PUT        1
#define XOR_PUT         2
#define OR_PUT          3
#define AND_PUT         4
#define NOT_PUT         5

typedef struct tagPHYIMAGEINFO
{
    S16 x;
    S16 y;
    S16 width;
    S16 height;
    U8  *buffer;
    U8  method;
    U16 ColorIndex;
    U16 BkColorIndex;
} PHYIMAGEINFO, *PPHYIMAGEINFO;

#if defined __cplusplus
extern "C"
{
#endif

U16 seGetScreenSize( S16 *width, S16 *height );
U16 seInit( U32 para );
void seSetPixel( S16 x, S16 y, U16 ColorIndex );
void seGetPixel( S16 x, S16 y, U16 *ColorIndex );
void seDrawLine( S16 x1, S16 y1, S16 x2, S16 y2, U16 ColorIndex, U16 mask );
void seInvertLine( S16 x1, S16 y1, S16 x2, S16 y2, U16 mask );
void seSetImage( S16 x, S16 y, S16 width, S16 height , U8 *buffer, U8 method );
void seSetMonoImage( PPHYIMAGEINFO ppii );
void seGetImage( S16 x, S16 y, S16 width , S16 height , U16 *buffer);
void seRGBtoIndex( RGB rgb , U16 *ColorIndex );

#if defined __cplusplus
}
#endif

#endif
//----------------------------- The End of the File ----------------------------

⌨️ 快捷键说明

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