vs1001.h

来自「e1c0df5d-c8bc-48a5-bc02-a2b7c51c0dbf是做mp」· C头文件 代码 · 共 107 行

H
107
字号
/* ***************************************************************************  Copyright (C) 2002  Jesper Hansen <jesperh@telia.com> and **			Romuald Bialy (MIS) <romek_b@o2.pl>.******  Yampp-7/USB - low level support library*********************************************************************************   This file is part of the yampp system.****  This program is free software; you can redistribute it and/or**  modify it under the terms of the GNU General Public License**  as published by the Free Software Foundation; either version 2**  of the License, or (at your option) any later version.****  This program is distributed in the hope that it will be useful,**  but WITHOUT ANY WARRANTY; without even the implied warranty of**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the**  GNU General Public License for more details.****  You should have received a copy of the GNU General Public License**  along with this program; if not, write to the Free Software Foundation, **  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.*******************************************************************************  Revision History****  when         what  who	why****  2002-09-22   1.0   MIS      initial public release************************************************************************* *///// VS1001 registers//#define VS1001_MODE		0x00#define VS1001_STATUS	0x01#define VS1001_INTFCTLH	0x02#define VS1001_CLOCKF	0x03#define VS1001_PLAYTIME	0x04#define VS1001_AUDATA	0x05#define VS1001_VOLUME	0x0B//// setup I/O pins and directions for// communicating with the VS1001//void vs1001_init_io(void);//// reset the VS1001//void vs1001_reset(unsigned char bLoud);//// set the VS1001 volume//void vs1001_setvolume(unsigned char volume, char balance);//// send a number of zero's to the VS1001//void vs1001_nulls(unsigned int nNulls);//// send a 16 bit value to a VS1001 register//void vs1001_write(unsigned char address, unsigned int data);//// read a 16 bit value from a VS1001 register//unsigned int vs1001_read(unsigned char address);//// send MP3 data//void vs1001_send_data(unsigned char b);//// send MP3 data in 32 byte blocks//void vs1001_send32(unsigned char *p);//// Set the crystal compensation value//void vs1001_setcomp(unsigned int comp);//// read one or more word(s) from the VS1001 Control registers//void vs1001_readmultiple(unsigned char address, unsigned char count, unsigned int *pData);//// write one or more word(s) to the VS1001 Control registers//void vs1001_writemultiple(unsigned char address, unsigned char count, unsigned int *pData);

⌨️ 快捷键说明

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