User manual
RC200/203 Manual
www.celoxica.com Page 64
5.13.8 Setting the output sample rate
extern macro proc RC200AudioOutSetSampleRate (SampleRateCode);
Parameters:
SampleRateCode: a code selecting the sampling rate.
Possible values:
Sample rate code Sample rate (Hz)
RC200AudioSampleRate8000
8000
RC200AudioSampleRate11025
11025
RC200AudioSampleRate16000
16000
RC200AudioSampleRate22050
22050
RC200AudioSampleRate32000
32000
RC200AudioSampleRate44100
44100
RC200AudioSampleRate48000
48000 (default)
Timing: 1 clock cycle.
Description: Changes the sample rate of the audio output.
5.13.9 Writing to the audio interface
extern macro proc RC200AudioOutWrite (Left, Right);
Parameters: Left: Data value of type signed 20.
Right: Data value of type signed 20.
Timing: 1 or more clock cycles (blocks until data is sent).
Description:
Writes a single stereo sample of data to the audio interface
from the expressions
Left and Right. The macro blocks until
a new sample can be written.
5.14 Bluetooth macros
To read from or write to the Bluetooth interface you need to:
1. Call
RC200BluetoothRun().
2. Call
RC200BluetoothRead() or RC200BluetoothWrite() in parallel with this.
You can reset the device using RC200BluetoothReset().