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

📄 spl162001.h

📁 GPL162001聲音錄音與播放的demo程式
💻 H
📖 第 1 页 / 共 4 页
字号:
		UInt16	CAPXSEL		: 2;
		UInt16	Reserve3	: 4;
		UInt16	CCPXEN		: 2;
	} B;
} P_TimerX_CCP_Ctrl_DEF;

typedef union   // TimerX_Preload registers definition (X=A,B,C,D,E,F)
{
	UInt16	W;
	struct
	{
		UInt16	TMXPLR		:16;
	} B;
} P_TimerX_Preload_DEF;

typedef union   // TimerX_CCP registers definition (X=A,B)
{
	UInt16	W;
	struct
	{
		UInt16	TMXCCPR		:16;
	} B;
} P_TimerX_CCP_DEF;

typedef union   // TimerX_UpCount registers definition (X=A,B,C,D,E,F)
{
	UInt16	W;
	struct
	{
		UInt16	TMXUCR		:16;
	} B;
} P_TimerX_UpCount_DEF;
#define TimerA_Ctrl_Reg			  ((volatile P_TimerX_Ctrl_DEF *)(P_TimerA_Ctrl))
#define	TimerA_CCP_Ctrl_Reg       ((volatile P_TimerX_CCP_Ctrl_DEF *)(P_TimerA_CCP_Ctrl))
#define	TimerA_Preload_Reg        ((volatile P_TimerX_Preload_DEF *)(P_TimerA_Preload))
#define	TimerA_CCP_Reg            ((volatile P_TimerX_CCP_DEF *)(P_TimerA_CCP))
#define	TimerA_CCP_UpCount_Reg    ((volatile P_TimerX_UpCount_DEF *)(P_TimerA_CCP_UpCount))
#define TimerB_Ctrl_Reg			  ((volatile P_TimerX_Ctrl_DEF *)(P_TimerB_Ctrl))
#define	TimerB_CCP_Ctrl_Reg       ((volatile P_TimerX_CCP_Ctrl_DEF *)(P_TimerB_CCP_Ctrl))
#define	TimerB_Preload_Reg        ((volatile P_TimerX_Preload_DEF *)(P_TimerB_Preload))
#define	TimerB_CCP_Reg            ((volatile P_TimerX_CCP_DEF *)(P_TimerB_CCP))
#define	TimerB_CCP_UpCount_Reg    ((volatile P_TimerX_UpCount_DEF *)(P_TimerB_CCP_UpCount))
#define TimerC_Ctrl_Reg			  ((volatile P_TimerX_Ctrl_DEF *)(P_TimerC_Ctrl))
#define	TimerC_Preload_Reg        ((volatile P_TimerX_Preload_DEF *)(P_TimerC_Preload))
#define	TimerC_CCP_UpCount_Reg    ((volatile P_TimerX_UpCount_DEF *)(P_TimerC_CCP_UpCount))
#define TimerD_Ctrl_Reg			  ((volatile P_TimerX_Ctrl_DEF *)(P_TimerD_Ctrl))
#define	TimerD_Preload_Reg        ((volatile P_TimerX_Preload_DEF *)(P_TimerD_Preload))
#define	TimerD_CCP_UpCount_Reg    ((volatile P_TimerX_UpCount_DEF *)(P_TimerD_CCP_UpCount))
#define TimerE_Ctrl_Reg			  ((volatile P_TimerX_Ctrl_DEF *)(P_TimerE_Ctrl))
#define	TimerE_Preload_Reg        ((volatile P_TimerX_Preload_DEF *)(P_TimerE_Preload))
#define	TimerE_CCP_UpCount_Reg    ((volatile P_TimerX_UpCount_DEF *)(P_TimerE_CCP_UpCount))
#define TimerF_Ctrl_Reg			  ((volatile P_TimerX_Ctrl_DEF *)(P_TimerF_Ctrl))
#define	TimerF_Preload_Reg        ((volatile P_TimerX_Preload_DEF *)(P_TimerF_Preload))
#define	TimerF_CCP_UpCount_Reg    ((volatile P_TimerX_UpCount_DEF *)(P_TimerF_CCP_UpCount))

/*****************************************************************************/
/* Analog input (touch panel / voice recorder) registers	           		 */
/*****************************************************************************/
typedef union   // ADC_Setup register
{
	UInt16	W;
	struct
	{
		UInt16	ASTMS		: 2;
		UInt16	ASMEN		: 1;
		UInt16	Reserve1	: 1;
		UInt16	ASSEL		: 2;
		UInt16	MICEN		: 1;
		UInt16	ASEN		: 1;
		UInt16	CLKSEL		: 2;
		UInt16	Reserve2	: 3;
		UInt16	AGCEN		: 1;
		UInt16	ADCEN		: 1;
		UInt16	ADBEN		: 1;
	} B;
} P_ADC_Setup_DEF;

typedef union   // MADC_Ctrl register
{
	UInt16	W;
	struct
	{
		UInt16	CHSEL		: 3;
		UInt16	Reserve1	: 1;
		UInt16	ASIME   	: 1;
		UInt16	MIASE		: 1;
		UInt16	STRCNV		: 1;
		UInt16	CNVRDY		: 1;
		UInt16	Reserve2	: 6;
		UInt16	ADCRIEN		: 1;
		UInt16	ADCRIF_C	: 1;
	} B;
} P_MADC_Ctrl_DEF;

typedef union   // MADC_Data register
{
	UInt16	W;
	struct
	{
		UInt16	Reserve1	: 4;
		UInt16	MADCDATA   	:12;
	} B;
} P_MADC_Data_DEF;

typedef union   // ASADC_Ctrl register
{
	UInt16	W;
	struct
	{
		UInt16	FIFOLEV		: 4;
		UInt16	ASFIL		: 4;
		UInt16	Reserve1   	: 2;
		UInt16	OVER		: 1;
		UInt16	DMA			: 1;
		UInt16	ASFOV		: 1;
		UInt16	ASFF		: 1;
		UInt16	ASIEN		: 1;
		UInt16	ASIF_C		: 1;
	} B;
} P_ASADC_Ctrl_DEF;

typedef union   // ASADC_Data register
{
	UInt16	W;
	struct
	{
		UInt16	Reserve1	: 4;
		UInt16	ASADC	    :12;
	} B;
} P_ASADC_Data_DEF;

typedef union   // TP_Ctrl register
{
	UInt16	W;
	struct
	{
		UInt16	DBTSEL		: 2;
		UInt16	Reserve1	: 2;
		UInt16	DBEN	    : 1;
		UInt16	Reserve2	: 6;
		UInt16	TMOD	    : 1;
		UInt16	TPST	    : 1;
		UInt16	TPEN	    : 1;
		UInt16	TPIEN	    : 1;
		UInt16	TPIF_C	    : 1;
	} B;
} P_TP_Ctrl_DEF;
#define ADC_Setup_Reg			((volatile P_ADC_Setup_DEF *)(P_ADC_Setup))
#define MADC_Ctrl_Reg			((volatile P_MADC_Ctrl_DEF *)(P_MADC_Ctrl))
#define MADC_Data_Reg			((volatile P_MADC_Data_DEF *)(P_MADC_Data))
#define ASADC_Ctrl_Reg			((volatile P_ASADC_Ctrl_DEF *)(P_ASADC_Ctrl))
#define ASADC_Data_Reg			((volatile P_ASADC_Data_DEF *)(P_ASADC_Data))
#define TP_Ctrl_Reg				((volatile P_TP_Ctrl_DEF *)(P_TP_Ctrl))

/*****************************************************************************/
/* Interrupt registers										           		 */
/*****************************************************************************/
typedef union   // INT_Status1 register
{
	UInt16	W;
	struct
	{
		UInt16	EXTAIF_C	: 1;
		UInt16	EXTBIFC		: 1;
		UInt16	DMA		    : 1;
		UInt16	USB			: 1;
		UInt16	AUDAIF	    : 1;
		UInt16	AUDBIF	    : 1;
		UInt16	SPBIF	    : 1;
		UInt16	ASIF	    : 1;
		UInt16	TPIF	    : 1;
		UInt16	FPIF		: 1;
		UInt16	SPIIF	    : 1;
		UInt16	UTIRIF		: 1;
		UInt16	SBHFIF	    : 1;
		UInt16	SBFIF	    : 1;
		UInt16	ADCRIF	    : 1;
		UInt16	KEYIF_C	    : 1;
	} B;
} P_INT_Status1_DEF;

typedef union   // INT_Status2 register
{
	UInt16	W;
	struct
	{
		UInt16	HMSIF		: 1;
		UInt16	ALMIF		: 1;
		UInt16	SCHIF	    : 1;
		UInt16	ST			: 1;
		UInt16	NAND	    : 1;
		UInt16	I2C		    : 1;
		UInt16	SD		    : 1;
		UInt16	Reserve1    : 1;
		UInt16	TMBAIF	    : 1;
		UInt16	TMBBIF		: 1;
		UInt16	TMBCIF	    : 1;
		UInt16	KSIF		: 1;
		UInt16	TMAIF	    : 1;
		UInt16	TMBIF	    : 1;
		UInt16	TMCIF	    : 1;
		UInt16	TMDIF	    : 1;
	} B;
} P_INT_Status2_DEF;

typedef union   // INT_Priority1 register
{
	UInt16	W;
	struct
	{
		UInt16	EXTAIP		: 1;
		UInt16	EXTBIP		: 1;
		UInt16	DMAIP	    : 1;
		UInt16	USBIP		: 1;
		UInt16	AUDAIP	    : 1;
		UInt16	AUDBIP	    : 1;
		UInt16	SPBIP	    : 1;
		UInt16	ASPIP	    : 1;
		UInt16	TPIP	    : 1;
		UInt16	FPIP		: 1;
		UInt16	SPIIP	    : 1;
		UInt16	UTIRIP		: 1;
		UInt16	SBHFIP	    : 1;
		UInt16	SBFIP	    : 1;
		UInt16	ADCRIP	    : 1;
		UInt16	KEYIP	    : 1;
	} B;
} P_INT_Priority1_DEF;

typedef union   // INT_Priority2 register
{
	UInt16	W;
	struct
	{
		UInt16	Reserve1	: 1;
		UInt16	ST			: 1;
		UInt16	NAND	    : 1;
		UInt16	I2C			: 1;
		UInt16	SD		    : 1;
		UInt16	Reserve2    : 1;
		UInt16	KSIP	    : 1;
		UInt16	TMAIP	    : 1;
		UInt16	TMBIP	    : 1;
		UInt16	TMCIP		: 1;
		UInt16	TMDIP	    : 1;
	} B;
} P_INT_Priority2_DEF;

typedef union   // MINT_Ctrl register
{
	UInt16	W;
	struct
	{
		UInt16	EXTAIEN		: 1;
		UInt16	EXTBIEN		: 1;
		UInt16	Reserve1    : 1;
		UInt16	STIEN		: 1;
		UInt16	EXTAIS	    : 1;
		UInt16	EXTBIS	    : 1;
		UInt16	Reserve2    : 9;
		UInt16	KEYIEN	    : 1;
	} B;
} P_MINT_Ctrl_DEF;

#define INT_Status1_Reg			((volatile P_INT_Status1_DEF *)(P_INT_Status1))
#define INT_Status2_Reg			((volatile P_INT_Status2_DEF *)(P_INT_Status2))
#define INT_Priority1_Reg		((volatile P_INT_Priority1_DEF *)(P_INT_Priority1))
#define INT_Priority2_Reg		((volatile P_INT_Priority2_DEF *)(P_INT_Priority2))
#define MINT_Ctrl_Reg		    ((volatile P_MINT_Ctrl_DEF *)(P_MINT_Ctrl))

//========================================================================================
// End of include file
//========================================================================================


#endif

⌨️ 快捷键说明

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