www.pudn.com > Audio.rar > waveplayer.h, change:2008-12-17,size:2425b


/******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** 
* File Name          : waveplayer.h 
* Author             : MCD Application Team 
* Version            : V1.1.1 
* Date               : 06/13/2008 
* Description        : This file contains all the functions prototypes for the 
*                      wave player driver. 
******************************************************************************** 
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. 
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, 
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE 
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING 
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 
*******************************************************************************/ 
 
/* Define to prevent recursive inclusion -------------------------------------*/ 
#ifndef __WAVEPLAYER_H 
#define __WAVEPLAYER_H 
 
/* Includes ------------------------------------------------------------------*/ 
#include "stm32f10x_lib.h" 
#if STM3210E 
  #include "i2s_codec.h" 
#else 
  #include "dac_codec.h" 
#endif 
 
/* Exported types ------------------------------------------------------------*/ 
/* Exported constants --------------------------------------------------------*/ 
/* Audio file location */ 
#if STM3210E 
  #define AUDIO_FILE_ADDRESS  0x64060000 
#else 
  #define AUDIO_FILE_ADDRESS  0x00000000 
#endif 
 
#define  NOKEY  0 
#define  SEL    1 
#define  RIGHT  2 
#define  LEFT   3 
#define  UP     4 
#define  DOWN   5 
#define  KEY    6 
 
/* LCD display update parameters */ 
#define STOP        0x10000000 
#define PLAY        0x01000000 
#define PAUSE       0x00100000  
#define VOL         0x00010000 
#define PROGRESS    0x00001000 
#define FRWD        0x00000100 
#define ALL         0x11110100 
 
/* Exported macro ------------------------------------------------------------*/ 
/* Exported functions ------------------------------------------------------- */ 
void WavePlayer_StartSpeaker (void); 
void LCD_Update(u32 Status); 
void LCD_DisplayError(u32 err); 
void I2S_CODEC_LCDConfig(void); 
 
#endif /* __WAVEPLAYER_H */ 
 
/******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/