#include "board.h"
Include dependency graph for vs10xx.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | VS_WRITE_COMMAND 0x02 |
VS10xx SCI Write Command byte is 0x02. | |
#define | VS_READ_COMMAND 0x03 |
VS10xx SCI Read Command byte is 0x03. | |
#define | SPI_MODE 0x0 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_STATUS 0x1 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_BASS 0x2 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_CLOCKF 0x3 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_DECODE_TIME 0x4 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_AUDATA 0x5 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_WRAM 0x6 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_WRAMADDR 0x7 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_HDAT0 0x8 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_HDAT1 0x9 /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_AIADDR 0xa /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_VOL 0xb /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_AICTRL0 0xc /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_AICTRL1 0xd /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_AICTRL2 0xe /**< VS10xx register */ |
VS10xx register. | |
#define | SPI_AICTRL3 0xf /**< VS10xx register */ |
VS10xx register. | |
#define | SM_DIFF 0x01 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_JUMP 0x02 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_RESET 0x04 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_OUTOFWAV 0x08 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_PDOWN 0x10 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_TESTS 0x20 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_STREAM 0x40 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_PLUSV 0x80 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_DACT 0x100 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_SDIORD 0x200 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_SDISHARE 0x400 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_SDINEW 0x800 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_ADPCM 0x1000 /**< VS10xx register */ |
VS10xx register. | |
#define | SM_ADPCM_HP 0x2000 /**< VS10xx register */ |
VS10xx register. | |
#define | Mp3WriteRegister(addressbyte, highbyte, lowbyte) |
Write VS10xx register. | |
#define | Mp3SetVolume(leftchannel, rightchannel) |
Set VS10xx Volume Register. | |
Functions | |
void | VsSineTest () |
Execute VS1011/VS1002 Sine Test Function. | |
void | Mp3Reset () |
Reset VS10xx. | |
void | Mp3SoftReset () |
Soft Reset of VS10xx (Between songs). | |
unsigned int | Mp3ReadRegister (unsigned char addressbyte) |
Read the 16-bit value of a VS10xx register. | |
void | SendZerosToVS10xx () |
Send 2048 zeros. | |
unsigned char | PlayDiskSectors (unsigned int nSectorsToPlay) |
Play disk sectors from disk. | |
void | AvailableProcessorTime () |
This is called when there is free processor time, implement externally. | |
Variables | |
xdata unsigned char | playingState |
Playing State Global, 0=normal playing, 1=abort playing. |
Interfacing the New Way, not handling BSYNC -> not compatible with VS1001.
Definition in file vs10xx.h.
|
Value: Set VS10xx Volume Register.
Definition at line 78 of file vs10xx.h. Referenced by AvailableProcessorTime(), and Mp3Reset(). |
|
Value: Write VS10xx register.
Definition at line 68 of file vs10xx.h. Referenced by AvailableProcessorTime(), LoadPatch(), Mp3Reset(), Mp3SoftReset(), PlayCurrentFile(), PlayDiskSectors(), and Record(). |
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
Definition at line 39 of file vs10xx.h. Referenced by PlayCurrentFile(). |
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
Definition at line 31 of file vs10xx.h. Referenced by Record(). |
|
VS10xx register.
Definition at line 32 of file vs10xx.h. Referenced by AvailableProcessorTime(), and Record(). |
|
VS10xx register.
Definition at line 33 of file vs10xx.h. Referenced by PlayDiskSectors(). |
|
VS10xx register.
|
|
VS10xx register.
Definition at line 24 of file vs10xx.h. Referenced by Mp3Reset(). |
|
VS10xx register.
Definition at line 21 of file vs10xx.h. Referenced by AvailableProcessorTime(). |
|
VS10xx register.
Definition at line 22 of file vs10xx.h. Referenced by Mp3Reset(), Mp3SoftReset(), and Record(). |
|
VS10xx register.
Definition at line 23 of file vs10xx.h. Referenced by Record(), and ScreenSetPlayTime(). |
|
VS10xx register.
Definition at line 27 of file vs10xx.h. Referenced by Record(). |
|
VS10xx register.
Definition at line 28 of file vs10xx.h. Referenced by PlayDiskSectors(), and Record(). |
|
VS10xx register.
Definition at line 19 of file vs10xx.h. Referenced by Mp3SoftReset(), PlayCurrentFile(), and Record(). |
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx register.
|
|
VS10xx SCI Read Command byte is 0x03.
Definition at line 16 of file vs10xx.h. Referenced by Mp3ReadRegister(). |
|
VS10xx SCI Write Command byte is 0x02.
|
|
This is called when there is free processor time, implement externally. The basic task of this function is to implement the player user interface. Local variables:
Bass/Treble setting calculation There are 2 or 4 adjustments possible:
In this software, all are adjusted based from a single setting (0..128) for bass and another for treble. You may wish to allow user to control frequency and level separately or set fixed frequencies for a known speaker type. This algorithm increases the frequency range of adjustment with the increasing level. Definition at line 327 of file player.c. References displayStyle, displayTitle, displayValue, DS_NO_YES, DS_PERCENTAGE, DS_RAWTEXT, DS_TEXT, KEY_BUTTON, KEY_FARLEFT, KEY_FARRIGHT, lcdFont_barchars, lcdFont_vertical_barchars, LcdReset(), LcdSelectFont(), Mp3ReadRegister(), Mp3SetVolume, Mp3WriteRegister, playingState, PS_CUE, PS_END_OF_SONG, PS_NEXT_SONG, PS_NORMAL, PS_PREVIOUS_SONG, PS_RECORDING, PS_REWIND, ScreenSetPlayTime(), SPI_AICTRL1, SPI_BASS, SPIPutChar, SPIWait, UI_BASS, UI_CUE, UI_END_OF_MODES, UI_INFO, UI_RECLEVEL, UI_RETURN_DELAY, UI_SPEC, UI_STOP, UI_TITLE, UI_TREBLE, UI_VOLUME, uiMode, UpdateDisplay(), and userInterfaceDelayElapsed. Referenced by GetAVIBlock(), PlayDiskSectors(), and Record().
Here is the call graph for this function: |
|
Read the 16-bit value of a VS10xx register.
Definition at line 17 of file vs10xx.c. References Mp3DeselectControl, Mp3SelectControl, SPI_RESULT_BYTE, SPIPutChar, SPIPutCharWithoutWaiting, SPIWait, and VS_READ_COMMAND. Referenced by AvailableProcessorTime(), PlayDiskSectors(), Record(), and ScreenSetPlayTime().
|
|
Reset VS10xx.
Definition at line 69 of file vs10xx.c. References Delay(), MP3_DREQ, Mp3DeselectControl, Mp3DeselectData, Mp3PutInReset, Mp3ReleaseFromReset, Mp3SetVolume, Mp3SoftReset(), Mp3WriteRegister, SPI_AUDATA, SPI_CLOCKF, SPIPutCharWithoutWaiting, and SPISetFastClock. Referenced by main(), and Record().
Here is the call graph for this function: |
|
Soft Reset of VS10xx (Between songs).
Definition at line 35 of file vs10xx.c. References Delay(), MP3_DREQ, Mp3DeselectData, Mp3SelectData, Mp3WriteRegister, SPI_CLOCKF, SPI_MODE, SPIPutChar, SPIPutCharWithoutWaiting, and SPIWait. Referenced by main(), and Mp3Reset().
Here is the call graph for this function: |
|
Play disk sectors from disk. Starting from current value in global variable sectorAddress, sends a number of disk sectors to vs10xx and returns. How many sectors to send between ff/rew commands Definition at line 202 of file vs10xx.c. References AvailableProcessorTime(), DiskBlock::Raw::buf, dataBufPtr, diskSect, GREEN_LED, Address::l, LED_OFF, LED_ON, MP3_DREQ, Mp3DeselectData, Mp3ReadRegister(), Mp3SelectData, Mp3WriteRegister, PlayAvi(), playingState, PrepareToReadDiskSector(), PS_CUE, PS_CUE_ACTION, PS_CUE_WAIT1003, PS_END_OF_SONG, PS_FALLBACK_1, PS_FALLBACK_N, PS_NEXT_SONG, PS_NORMAL, PS_PREVIOUS_SONG, PS_RECORDING, PS_REW_WAIT1003, PS_REWIND, DiskBlock::raw, ReadDiskSector(), sectorAddress, SendZerosToVS10xx(), SPI_AICTRL2, SPI_HDAT1, SPIPutChar, SPIPutCharWithoutWaiting, and SPIWait. Referenced by PlayCurrentFile().
Here is the call graph for this function: |
|
Send 2048 zeros.
Definition at line 178 of file vs10xx.c. References Temp::i, MP3_DREQ, Mp3DeselectData, Mp3SelectData, SPIPutChar, SPIPutCharWithoutWaiting, SPIWait, and temp. Referenced by PlayCurrentFile(), and PlayDiskSectors().
|
|
Execute VS1011/VS1002 Sine Test Function.
Definition at line 112 of file vs10xx.c. References Delay(), GREEN_LED, LED_OFF, LED_ON, MP3_DREQ, Mp3DeselectControl, Mp3DeselectData, Mp3PutInReset, Mp3ReleaseFromReset, Mp3SelectControl, Mp3SelectData, RED_LED, SPIPutChar, SPIPutCharWithoutWaiting, and SPIWait.
Here is the call graph for this function: |
|
Playing State Global, 0=normal playing, 1=abort playing.
Definition at line 53 of file vs10xx.h. Referenced by AvailableProcessorTime(), main(), PlayCurrentFile(), PlayDiskSectors(), Record(), and ScreenSetPlayTime(). |