Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

vs1001k.h File Reference


Detailed Description

Network interface controller definitions.


Defines

#define VS_OPCODE_READ   3
#define VS_OPCODE_WRITE   2
#define VS_MODE_REG   0
#define VS_STATUS_REG   1
#define VS_INT_FCTLH_REG   2
#define VS_CLOCKF_REG   3
#define VS_DECODE_TIME_REG   4
#define VS_AUDATA_REG   5
#define VS_WRAM_REG   6
#define VS_WRAMADDR_REG   7
#define VS_HDAT0_REG   8
#define VS_HDAT1_REG   9
#define VS_A1ADDR_REG   10
#define VS_VOL_REG   11
#define VS_A1CTRL_REG   13
#define VS_SM_DIFF   0x0001
#define VS_SM_FFWD   0x0002
#define VS_SM_RESET   0x0004
#define VS_SM_MP12   0x0008
#define VS_SM_PDOWN   0x0010
#define VS_SM_DAC   0x0020
#define VS_SM_DACMONO   0x0040
#define VS_SM_BASS   0x0080
#define VS_SM_DACT   0x0100
#define VS_SM_BYTEORD   0x0200
#define VS_SM_IBMODE   0x0400
#define VS_SM_IBCLK   0x0800
#define VS_CF_DOUBLER   0x8000
#define VS_FLUSH_BYTES   2048
#define VS_STATUS_STOPPED   0
#define VS_STATUS_RUNNING   1
#define VS_STATUS_EOF   2
#define VS_STATUS_EMPTY   4

Functions

int VsPlayerInit (void)
 Initialize the VS1001 hardware interface.
int VsPlayerReset (u_short mode)
 Software reset the decoder.
int VsPlayerSetMode (u_short mode)
 Set mode register of the decoder.
int VsPlayerKick (void)
 Start playback.
int VsPlayerStop (void)
 Stops the playback.
int VsPlayerFlush (void)
 Sets up decoder internal buffer flushing.
u_char VsPlayerInterrupts (u_char enable)
 Enable or disable player interrupts.
u_charVsBufferInit (u_short size)
u_charVsBufferReset (void)
u_charVsBufferRequest (u_short *sizep)
u_charVsBufferAcknowledge (u_short nbytes)
u_short VsBufferAvailable (void)
u_short VsPlayTime (void)
 Returns play time since last reset.
u_char VsGetStatus (void)
 Returns status of the player.
int VsGetHeaderInfo (VS_HEADERINFO *vshi)
 Query MP3 stream header information.
u_short VsMemoryTest (void)
 Initialize decoder memory test and return result.
int VsSetVolume (u_char left, u_char right)
 Set volume.
int VsBeep (u_char fsin, u_char ms)
 Sine wave beep.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/