datatype.h
来自「应用于测试LCD driver」· C头文件 代码 · 共 41 行
H
41 行
#ifndef __DATATYPES__
#define __DATATYPES__
typedef char int8;
typedef int int16;
typedef long int32;
typedef unsigned char uint8;
typedef unsigned int uint16;
typedef unsigned long uint32;
typedef uint8* str;
// ---------------------------- Data Structures --------------------------------
// The structure of color data
typedef struct ColorInfo
{
uint8 Rdata;
uint8 Gdata;
uint8 Bdata;
}tColor;
// Information for drawing a rectangle
typedef struct RectInfo
{
uint8 X0; // Upleft
uint8 Y0;
uint8 X1; // Downright
uint8 Y1;
}tRect;
// Information for LCM
typedef struct LCM_Info
{
str Name;
str Interface;
str Customer;
}tLCM;
// -----------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?