User manual
RC200/203 Manual
www.celoxica.com Page 65
5.14.1 Bluetooth management tasks
extern macro proc RC200BluetoothRun (ClockRate);
Parameters:
ClockRate: Clock rate of the clock domain of the call to this
macro, in Hz.
Timing: Does not terminate in normal use.
Description:
Runs the device management tasks for the Bluetooth
interface. You must run this macro in parallel with accesses
to the device.
5.14.2 Resetting the Bluetooth device
extern macro proc RC200BluetoothReset ();
Parameters: None.
Timing: 1 or more clock cycles.
Description: Resets the Bluetooth interface device.
5.14.3 Reading from the Bluetooth device
extern macro proc RC200BluetoothRead (DataPtr);
Parameters: DataPtr: Pointer to an lvalue of type unsigned 8.
Timing: 1 or more clock cycles (read blocks until data is ready).
Description:
Reads a single item of data from the Bluetooth interface and
stores it in the
lvalue pointed at by DataPtr. Note that
these are raw bytes from the Bluetooth interface device.
By default the Bluetooth interface device uses the BlueCore
Serial Protocol (BCSP) from Cambridge Silicon Radio.
5.14.4 Writing to the Bluetooth device
extern macro proc RC200BluetoothWrite (Data);