Nut/OS  4.10.3
API Reference
vs1011.h
Go to the documentation of this file.
00001 #ifndef _DEV_VS1011_H_
00002 #define _DEV_VS1011_H_
00003 /*
00004  * Copyright (C) 2009 by egnite GmbH
00005  *
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions
00010  * are met:
00011  *
00012  * 1. Redistributions of source code must retain the above copyright
00013  *    notice, this list of conditions and the following disclaimer.
00014  * 2. Redistributions in binary form must reproduce the above copyright
00015  *    notice, this list of conditions and the following disclaimer in the
00016  *    documentation and/or other materials provided with the distribution.
00017  * 3. Neither the name of the copyright holders nor the names of
00018  *    contributors may be used to endorse or promote products derived
00019  *    from this software without specific prior written permission.
00020  *
00021  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00022  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00023  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00024  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
00025  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00026  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00027  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00028  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00029  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00030  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00031  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00032  * SUCH DAMAGE.
00033  *
00034  * For additional information see http://www.ethernut.de/
00035  */
00036 
00037 /*
00038  * $Id: vs1011.h 2702 2009-09-17 11:01:21Z haraldkipp $
00039  */
00040 
00041 #define VS_HAS_SM_LAYER12       0
00042 #define VS_HAS_SM_FFWD          0
00043 #define VS_HAS_SM_MP12          0
00044 #define VS_HAS_SM_OUTOFWAV      1
00045 #define VS_HAS_SM_CANCEL        0
00046 #define VS_HAS_SM_PDOWN         0
00047 #define VS_HAS_SM_EARSPEAKER    0
00048 #define VS_HAS_SM_DAC           0
00049 #define VS_HAS_SM_TESTS         1
00050 #define VS_HAS_SM_DACMONO       0
00051 #define VS_HAS_SM_STREAM        1
00052 #define VS_HAS_SM_BASS          0
00053 #define VS_HAS_SM_IBMODE        0
00054 #define VS_HAS_SM_SDISHARE      1
00055 #define VS_HAS_SM_IBCLK         0
00056 #define VS_HAS_SM_SDINEW        1
00057 #define VS_HAS_SM_ADPCM         0
00058 #define VS_HAS_SM_ADPCM_HP      0
00059 #define VS_HAS_SM_LINE_IN       0
00060 #define VS_HAS_SM_CLK_RANGE     0
00061 
00062 #define VS_HAS_SS_AVOL          1
00063 #define VS_HAS_SS_VREF_1_65     0
00064 #define VS_HAS_SS_AD_CLOCK      0
00065 #define VS_HAS_SS_VCM_DISABLE   0
00066 #define VS_HAS_SS_VCM_OVERLOAD  0
00067 #define VS_HAS_SS_SWING         0
00068 #define VS_HAS_SS_DO_NOT_JUMP   0
00069 
00070 #define VS_HAS_INT_FCTLH_REG    0
00071 #define VS_HAS_BASS_REG         1
00072 #define VS_HAS_SC_FREQ          1
00073 #define VS_HAS_SC_X3FREQ        0
00074 #define VS_HAS_SC_ADD           0
00075 #define VS_HAS_SC_ADD2          0
00076 #define VS_HAS_SC_MULT          0
00077 #define VS_HAS_SC_MULT5         0
00078 #define VS_HAS_CF_DOUBLER       1
00079 
00080 #define VS_HAS_AD_STEREO_BIT0   1
00081 #define VS_HAS_AD_SAMRATE       1
00082 #define VS_HAS_AD_BITRATE       0
00083 #define VS_HAS_AD_SAMRATE_IDX   0
00084 
00085 #define VS_HAS_HDAT0_REG        1
00086 #define VS_HAS_IN0_REG          0
00087 #define VS_HAS_HDAT1_REG        1
00088 #define VS_HAS_IN1_REG          0
00089 #define VS_HAS_MIXERVOL_REG     0
00090 #define VS_HAS_ADPCMRECCTL_REG  0
00091 #define VS_HAS_AICTRL0_REG      1
00092 #define VS_HAS_AICTRL_REG       0
00093 #define VS_HAS_AICTRL1_REG      1
00094 #define VS_HAS_AICTRL2_REG      1
00095 #define VS_HAS_AICTRL3_REG      1
00096 
00097 #define VS_FLUSH_BYTES          1024
00098 
00099 #define VS_XDATA_USR_WRAM_START 0x1380
00100 #define VS_XDATA_USR_RAM_SIZE   128
00101 #define VS_YDATA_USR_WRAM_START 0x4780
00102 #define VS_YDATA_USR_RAM_SIZE   128
00103 #define VS_I_USR_WRAM_START     0x8030
00104 #define VS_I_USR_RAM_SIZE       1232
00105 #define VS_IO_START             0xC000
00106 #define VS_IO_SIZE              16384
00107 
00108 #define VS_DECODER_CAPS         (AUDIO_FMT_WAV_PCM | AUDIO_FMT_MPEG1_L1 | AUDIO_FMT_MPEG1_L2 | AUDIO_FMT_MPEG1_L3)
00109 #define VS_ENCODER_CAPS         (0)
00110 
00111 #endif
00112