#include "vs10xx.h"
#include "lcd.h"
#include "filesys.h"
#include "storage.h"
#include "ui.h"
#include "aviplay.c"
Include dependency graph for vs10xx.c:
Go to the source code of this file.
Defines | |
#define | AVIPLAY |
Functions | |
unsigned int | Mp3ReadRegister (unsigned char addressbyte) |
Read the 16-bit value of a VS10xx register. | |
void | Mp3SoftReset () |
Soft Reset of VS10xx (Between songs). | |
void | Mp3Reset () |
Reset VS10xx. | |
void | VsSineTest () |
Execute VS1011/VS1002 Sine Test Function. | |
void | SendZerosToVS10xx () |
Send 2048 zeros. | |
unsigned char | PlayDiskSectors (unsigned int nSectorsToPlay) |
Play disk sectors from disk. |
VS1003 WMA "wma-bytes-left" variable adjustment at ff/rew
Definition in file vs10xx.c.
|
|
|
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: |