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

📄 ppsm.h

📁 pda点菜宝开机登陆主界面时首先通过查所有员工的编号和姓名
💻 H
📖 第 1 页 / 共 2 页
字号:
#define PIXEL_MASK              0x1
#define BLACK                   1
#define WHITE                   0
#else					/*** ADD CE-006 ***/
#error /* Undefined compile flag - pixel depth */
#endif


/*  RTC periodic values  */
#if defined(EZ328) || defined(VZ328)    /*** VZ-008 ***/
#define RTC_PERI_NONE           0xFFCD
#define RTC_PERI_HOUR		0x0020
#define RTC_PERI_NO_HOUR	0xFFDF
#else
#error /* Undefined compile flag - platform */
#define RTC_PERI_NONE         0xFFED
#endif
#define RTC_PERI_SECOND         0x0010
#define RTC_PERI_MINUTE         0x0002
#define RTC_PERI_MIDNIGHT       0x0008
#define RTC_PERI_NO_SECOND	0xFFEF
#define	RTC_PERI_NO_MINUTE	0xFFFD
#define RTC_PERI_NO_MIDNIGHT	0xFFF7

#define RTC_IRPT_ALARM          0x0004

#define RTC_ALARM_BIT           0x02
#define RTC_PERIOD_BIT          0x01

#define JAN                     1
#define FEB                     2
#define MAR                     3
#define APR                     4
#define MAY                     5
#define JUN                     6
#define JUL                     7
#define AUG                     8
#define SEP                     9
#define OCT                     10
#define NOV                     11
#define DEC                     12


/*
	Define global constant
	The costants here are defined arbitrary
*/
 
#define MAX_F_FIELD   12    
#define NUM_FIELD      7
#define MAX_USER_FIELD 5
#define MAX_NO_DB     16    /* Range from 0 to 15  */
#define MAX_NO_REC   256    /* Range from 0 to 255 */

/*      Global variables      */

/* *************************** RECORD DEFINITION *******************/
typedef struct  sflag_type 
{
	unsigned secret : 1;
	unsigned type   : 3;
} Sflag_Type;

typedef struct db_record_info 
{
	U32 record_id;
	Sflag_Type      sflag_type;
	U32 num_form_field;
	U32 unf_data_size;
}  Db_Record_Info;

typedef struct db_record_data
{ 
	P_TEXT form_data[MAX_F_FIELD];
	P_U32  user_unform_data;
} Db_Record_Data;                   


typedef struct db_record 
{  
	struct db_record *next;
	struct db_record *prev;
	Db_Record_Info rec_info;
	Db_Record_Data rec_data;
}  Db_Record;

/* *************************** DATABASE DEFINITION *******************/

/* A bit field structure is used to implement the two flag.   */

typedef struct db_flag
{
	unsigned full : 1;
	unsigned secret : 1;
} Db_Flag;


typedef struct dbase_info
{ 
	U32 dbase_id;
	Db_Flag  this_db_flag;
	U32 num_record;
} Dbase_Info;

typedef struct database
{ 
	Dbase_Info this_dbase_info;     /* database information         */
	Db_Record  *db_record_ptr; /* pointer to records of a
						particular database */
}Database, *Db_Ptr;

/******* PANNING SCREEN PARAMETERS **************/
typedef struct panScreenPara
{
	U32     panAddress;
	U16     horzSize;
	U16     vertSize;
	U16     displayXOrigin;
	U16     displayYOrigin;
	U32     displayScreenAddr;
	U8      regPOSR;
	U8      regPSW;
}PAN_SCREEN, *P_PAN_SCREEN;


/*
 * UART Definitions Begin
 */

/* operating mode flags */
#define UART_NORMAL_MODE        0
#define UART_IRDA_MODE          1

/* baud rate selection flags */
#if defined(VZ328)
#define UART_600_BPS    0
#define UART_1200_BPS   1
#define UART_2400_BPS   2
#define UART_4800_BPS   3
#define UART_9600_BPS   4
#define UART_19200_BPS  5
#define UART_38400_BPS  6
#define UART_76800_BPS	7
#define UART_28800_BPS	8
#define UART_57600_BPS  9
#define UART_115200_BPS 10
#define UART_230400_BPS	11
#define UART_MIN_BAUD   UART_600_BPS
#define UART_MAX_BAUD   UART_230400_BPS
#define UART_DEF_BAUD   UART_115200_BPS
#elif defined(EZ328)
#define UART_300_BPS    0
#define UART_600_BPS    1
#define UART_900_BPS    2
#define UART_1200_BPS   3
#define UART_2400_BPS   4
#define UART_4800_BPS   5
#define UART_9600_BPS   6
#define UART_14400_BPS  7
#define UART_19200_BPS  8
#define UART_28800_BPS  9
#define UART_38400_BPS  10
#define UART_57600_BPS  11
#define UART_115200_BPS 12
#define UART_MIN_BAUD   UART_300_BPS
#define UART_MAX_BAUD   UART_115200_BPS
#define UART_DEF_BAUD   UART_9600_BPS
#else
#error /* Undefined compile flag - platform */
#endif

/* parity flags */
#define NO_PARITY       0
#define ODD_PARITY      1
#define EVEN_PARITY     2

/* stop bit flags */
#define ONE_STOP_BIT    0
#define TWO_STOP_BIT    1

/* character length flags */
#define SEVEN_BIT_CHAR  0
#define EIGHT_BIT_CHAR  1

/* UARTTimeout() input range (in units of millisecond) */
#define MIN_UART_TMOUT  0
#define MAX_UART_TMOUT  60000

/* UARTSetDelay() input range (in units of 0.1 millisecond) */
#define MAX_TX_DELAY	60000

/* UARTSend() input flags */
#define UART_SEND_REQUEST       0x1
#define UART_SEND_ABORT         0x2
#define UART_INQUIRE_SBYTE     	0
	
/* UARTReceive() input flags */
#define UART_RECEIVE_REQUEST    0x1
#define UART_RECEIVE_ABORT              0x2

/* message data associated with IRPT_UART */
#define UART_DATA_RECEIVED      0x1
#define UART_DATA_SENT          0x2
#define UART_ERROR                      0xFFFF

/* message data associated with UART_ERROR */
#define UART_ERR_TMOUT          0xFF01
#define UART_ERR_FRAME          0xFF02
#define UART_ERR_PARITY         0xFF03
#define UART_ERR_OVERRUN        0xFF04
#define UART_ERR_NODATA         0xFF05

/* UARTDevSendBreak() input flags */
#define UART_SEND_BREAK        	1
#define UART_ABORT_BREAK        0

/* UARTFlowCtrl() */
#define UART_RCTS_ENABLE		1
#define UART_RCTS_DISABLE       0
#define UART_RCTS_PAUSE         3
#define UART_RCTS_CONT          5

/* UARTSetDelay() */
#define UART_TXDELAY_CLEAR		0
#define UART_TXHALF_DELAY		1

/**** UART Definitions End ****/

/*
 * Audio Tools Definitions Begin
 */

#if defined(EZ328) || defined(VZ328)    /*** VZ-008 ***/
	#define SAMPLING_32KHZ 6
	#define SAMPLING_16KHZ 5
	#define SAMPLING_11KHZ 4
	#define SAMPLING_8KHZ  3
	#define SAMPLING_4KHZ  2
	#define AUDIO_USER_DEF 1
	#define AUDIO_OFF      0

	#define TONE_DUR_512HZ 0x80
	#define TONE_DUR_256HZ 0x40
	#define TONE_DUR_128HZ 0x20
	#define TONE_DUR_64HZ  0x10
	#define TONE_DUR_32HZ  0x08
	#define TONE_DUR_16HZ  0x04
	#define TONE_DUR_8HZ   0x02
	#define TONE_DUR_4HZ   0x01

	#define WAVE_IN_USE    1
	#define TONE_IN_USE    2
#else
#error /* Undefined compile flag - platform */
	#define AUDIO_USER_DEF 1
	#define AUDIO_OFF      0

	#define WAVE_IN_USE    1
	#define TONE_IN_USE    2
#endif

/**** Audio Tools Definitions End ****/

/*
	Message passing ...

	messageType :
	Currently, there are only one type of message :
	Interrupt message, MESSAGE_IRPT. 
	In future, new message types can be added.

	message :
	This is the message to send. Eg, for MESSAGE_IRPT, the
	value for this could be IRPT_PEN, IRPT_HWR, IRPT_INPUT ...

	data:
	Data that associated with the message ... if any. Eg, for
	IRPT_HWR, the data will be the recognised characters.

*/

#define MESSAGE_NONE            0x0000          /*  nothing ?  */
#define MESSAGE_IRPT            0x0001          /*  bit 0  */


/*  message structure  */
typedef struct _MESSAGE
{
	U16     messageType;            /*  message type  */
	U16     message;                /*  message  */
	U32     misc;                   /*  short data (32bit)  */
	P_VOID  data;                   /*  associated data, if any */
	U16     size;                   /*  size of data in bytes  */
	U16     reserved;               /*  for future  (broadcast, etc) */
} PPSM_MESSAGE, *P_MESSAGE;

#define	NO_SWAP_TASK		0
#define	SWAP_TASK_LATER	1
#define	SWAP_TASK_BACK_LATER	2
#define	SWAP_TASK			3

#define	LARGEST_MALLOC_SIZE	0xFFFFFFFF /* inquire largest mallocable size */

#endif

 

⌨️ 快捷键说明

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