📄 measure.h
字号:
/*----------------------------------------------------------------------------
* Name: MEASURE.H
* Purpose: struct type and extern definitions for MEASURE project
* Version: V1.10
*----------------------------------------------------------------------------
* This file is part of the uVision/ARM development tools.
* This software may only be used under the terms of a valid, current,
* end user licence from KEIL for a compatible version of KEIL software
* development tools. Nothing else gives you the right to use it.
*
* Copyright (c) 2005-2007 Keil Software.
*---------------------------------------------------------------------------*/
struct clock { /* structure of the clock record */
unsigned char hour; /* hour */
unsigned char min; /* minute */
unsigned char sec; /* second */
unsigned short msec; /* milliseconds */
};
struct mrec { /* structure for measurement records */
struct clock time; /* time of measurement */
unsigned short gpioa; /* state of GPIO port A */
unsigned short gpioc; /* state of GPIO port C */
unsigned short analog [3]; /* voltage on analog Pins PA1 .. PA3 */
};
struct interval { /* structure for interval record */
unsigned char min; /* minute */
unsigned char sec; /* second */
unsigned short msec; /* milli second */
};
/* external functions: */
extern void init_serial (void); /* initialize serial interface */
extern int sendchar (int ch); /* write character to serial port */
extern int getkey (void); /* read character from serial port */
extern void getline (char *line, int n); /* input line */
extern void measure_display (struct mrec disp); /* display mrec */
extern void set_time (char *buffer); /* set current time */
extern void set_interval (char *buffer); /* set interval time */
extern char ERROR_STR []; /* ERROR message string */
extern struct mrec current; /* current measurements */
extern struct interval setinterval; /* interval setting values */
extern struct interval interval; /* interval counter */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -