Add the RTOS processing. for the Network radio streaming receiver.
Fork of VS1053b by
Diff: VS1053.h
- Revision:
- 3:88a645490529
- Parent:
- 2:5bab956cb59e
- Child:
- 4:cacb5e663fa9
--- a/VS1053.h Wed Dec 22 18:09:33 2010 +0000 +++ b/VS1053.h Wed Dec 22 21:15:22 2010 +0000 @@ -68,68 +68,68 @@ #define DEFAULT_TREBLE_FREQUENCY 15000 //1000 - 15000 Hz // SCI register address assignment -#define SCI_MODE 0x0 -#define SCI_STATUS 0x1 -#define SCI_BASS 0x2 -#define SCI_CLOCKF 0x3 -#define SCI_DECODE_TOME 0x4 -#define SCI_AUDATA 0x5 -#define SCI_WRAM 0x6 -#define SCI_WRAMADDR 0x7 -#define SCI_HDAT0 0x8 -#define SCI_HDAT1 0x9 -#define SCI_AIADDR 0xA -#define SCI_VOL 0xB -#define SCI_AICTRL0 0xC -#define SCI_AICTRL1 0xD -#define SCI_AICTRL2 0xE -#define SCI_AICTRL3 0xF +#define SCI_MODE 0x00 +#define SCI_STATUS 0x01 +#define SCI_BASS 0x02 +#define SCI_CLOCKF 0x03 +#define SCI_DECODE_TOME 0x04 +#define SCI_AUDATA 0x05 +#define SCI_WRAM 0x06 +#define SCI_WRAMADDR 0x07 +#define SCI_HDAT0 0x08 +#define SCI_HDAT1 0x09 +#define SCI_AIADDR 0x0A +#define SCI_VOL 0x0B +#define SCI_AICTRL0 0x0C +#define SCI_AICTRL1 0x0D +#define SCI_AICTRL2 0x0E +#define SCI_AICTRL3 0x0F //SCI_MODE register bits as of p.38 of the datasheet -#define SM_DIFF 0x0001 -#define SM_LAYER12 0x0002 -#define SM_RESET 0x0004 -#define SM_CANCEL 0x0008 -#define SM_EARSPEAKER_LO 0x0010 -#define SM_TESTS 0x0020 -#define SM_STREAM 0x0040 -#define SM_EARSPEAKER_HI 0x0080 -#define SM_DACT 0x0100 -#define SM_SDIORD 0x0200 -#define SM_SDISHARE 0x0400 -#define SM_SDINEW 0x0800 -#define SM_ADPCM 0x1000 -#define SM_B13 0x2000 -#define SM_LINE1 0x4000 -#define SM_CLK_RANGE 0x8000 +#define SM_DIFF 0x0001 +#define SM_LAYER12 0x0002 +#define SM_RESET 0x0004 +#define SM_CANCEL 0x0008 +#define SM_EARSPEAKER_LO 0x0010 +#define SM_TESTS 0x0020 +#define SM_STREAM 0x0040 +#define SM_EARSPEAKER_HI 0x0080 +#define SM_DACT 0x0100 +#define SM_SDIORD 0x0200 +#define SM_SDISHARE 0x0400 +#define SM_SDINEW 0x0800 +#define SM_ADPCM 0x1000 +#define SM_B13 0x2000 +#define SM_LINE1 0x4000 +#define SM_CLK_RANGE 0x8000 //SCI_CLOCKF register bits as of p.42 of the datasheet -#define SC_ADD_NOMOD 0x0000 -#define SC_ADD_10x 0x0800 -#define SC_ADD_15x 0x1000 -#define SC_ADD_20x 0x1800 -#define SC_MULT_XTALI 0x0000 -#define SC_MULT_XTALIx20 0x2000 -#define SC_MULT_XTALIx25 0x4000 -#define SC_MULT_XTALIx30 0x6000 -#define SC_MULT_XTALIx35 0x8000 -#define SC_MULT_XTALIx40 0xA000 -#define SC_MULT_XTALIx45 0xC000 -#define SC_MULT_XTALIx50 0xE000 +#define SC_ADD_NOMOD 0x0000 +#define SC_ADD_10x 0x0800 +#define SC_ADD_15x 0x1000 +#define SC_ADD_20x 0x1800 +#define SC_MULT_XTALI 0x0000 +#define SC_MULT_XTALIx20 0x2000 +#define SC_MULT_XTALIx25 0x4000 +#define SC_MULT_XTALIx30 0x6000 +#define SC_MULT_XTALIx35 0x8000 +#define SC_MULT_XTALIx40 0xA000 +#define SC_MULT_XTALIx45 0xC000 +#define SC_MULT_XTALIx50 0xE000 // Extra Parameter in X memory (refer to p.58 of the datasheet) -#define para_chipID_0 0x1E00 -#define para_chipID_1 0x1E01 -#define para_version 0x1E02 -#define para_config1 0x1E03 -#define para_playSpeed 0x1E04 -#define para_byteRate 0x1E05 -#define para_endFillByte 0x1E06 +#define para_chipID_0 0x1E00 +#define para_chipID_1 0x1E01 +#define para_version 0x1E02 +#define para_config1 0x1E03 +#define para_playSpeed 0x1E04 +#define para_byteRate 0x1E05 +#define para_endFillByte 0x1E06 // -#define para_positionMsec_0 0x1E27 -#define para_positionMsec_1 0x1E28 -#define para_resync 0x1E29 +#define para_positionMsec_0 0x1E27 +#define para_positionMsec_1 0x1E28 +#define para_resync 0x1E29 /** Class for VS1053 - Ogg Vorbis / MP3 / AAC / WMA / FLAC / MIDI Audio Codec Chip. @@ -168,6 +168,7 @@ * * #endif //_DEFINES_H * + *@endcode */ class VS1053 {