English
Language : 

VS1001K Datasheet, PDF (37/40 Pages) List of Unclassifed Manufacturers – MPEG AUDIO CODEC
VLSI
Solution y
DATASHEET
VS1001K
8. WRITING SOFTWARE
8.6.3 DataWords(), 0x4012
VS DSP C prototype:
u int16 DataWords(void);
If the user has taken over the normal operation of the system by switching the pointer in UserCodec
to point to his own code, he may read data from the Data Interface through this and the following two
functions. This function returns the number of data words (each containing two bytes of data) that can be
read. If there is not enough data available, data acquisition functions GetDataByte() and GetDataWords()
may NOT be called!
8.6.4 GetDataByte(), 0x4013
VS DSP C prototype:
u int16 GetDataByte(void);
Reads and returns one data byte from the Data Interface.
Before calling this function, always check first that there are at least 1 word waiting with function Data-
Words().
8.6.5 GetDataWords(), 0x4014
VS DSP C prototype:
void GetDataWords(register i0 y u int16 *d, register a0 u int16 n);
Read n data byte pairs and copy them in big-endian format (first byte to MSBs) to d.
Before calling this function, always check first that there are at least 1+n words waiting with function
DataWords().
Version 4.14, 2004-02-10
37