📄 reg.h
字号:
//头文件修改15处 by wf and jzm
// Include the Touch/Audio common declarations
#include <tchaud.h>
#include <p2.h>
//
// Definitions for the penDataFormat, e.g. the point samples DMA'ed into memory.
//
#ifdef TOUCH_AUDIO_UCB1100
#define penDataFormatValidMask 0x03ff
#elif TOUCH_AUDIO_CRYSTAL
#define penDataFormatValidMask 0x0fff
#else // TOUCH_AUDIO_CRYSTAL
#error Undefined touch/audio hardware - reg.h
#endif // TOUCH_AUDIO_CRYSTAL
//
// @doc INTERNAL DRIVERS PDD TOUCH_PANEL
// @const ULONG | NUMBER_SAMPLES_PER_POINT |
//
// Defines the number of samples per point sampled by the ADC.
//
#define NUMBER_SAMPLES_PER_POINT 3
//
// Status field valid values
//
#define TOUCH_PEN_DOWN 0
#define TOUCH_PEN_UP 1
#define TOUCH_PEN_SAMPLE 2
//
// Timeout when talking to UCB
//
#define TOUCH_UCB_TIMEOUT 10000
//
// @doc INTERNAL DRIVERS PDD TOUCH_PANEL
// @type TOUCHPANEL_POINT_SAMPLES |
// Array of NUMBER_SAMPLES_PER_POINT samples.
//
typedef TOUCHPANEL_POINT_SAMPLE TOUCHPANEL_POINT_SAMPLES[ NUMBER_SAMPLES_PER_POINT ];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -