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

📄 acprd_song.h

📁 source code for a sample alarm control panel system using Freescale MC9S12DP256 . The project was im
💻 H
字号:
//=============================================================================
// File: ACPRD_SONG.H - V1.00
// Rem.: The ACPRD Project Page on the Web -> http://hc12web.de/acprd
//=============================================================================

#ifndef __ACPRD_SONG_H
#define __ACPRD_SONG_H

//-- Note Definitions ---------------------------------------------------------

// note codes (Bit0..3)
#define _C	    0x0001
#define _CIS    0x0002
#define _D	    0x0003
#define _DIS    0x0004
#define _E	    0x0005
#define _F	    0x0006
#define _FIS    0x0007
#define _G	    0x0008
#define _GIS    0x0009
#define _A	    0x000a
#define _AIS    0x000b
#define _H	    0x000c
// pause
#define _PP		0x0000

// octave codes (Bit4..7)
#define _HIGH	0x0000
#define _DEEP	0x0010

// duration codes (Bit8..13)
#define _1_8    0x0400
#define _1_4	0x0800
#define _3_8	0x0c00
#define _1_2	0x1000
#define _1_1	0x2000

// end of song code (all zero)
#define _STOP	0x0000

//-- Function Prototypes ------------------------------------------------------

void initSong(void);
void startSong(const UINT16 *asong);
UINT16 *hasSong(void);
void handleSong(void);

#endif //__ACPRD_SONG_H =======================================================

⌨️ 快捷键说明

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