API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IBTRADIO

Brew Release
Brew MP 1.0.2
See Also
None.
Description
This interface allows application to control the Bluetooth Basic Rate/Extended Data Rate (BR/EDR) radio. It provides a mechanism for applications to monitor the state of the radio.
Usage

Usage example:

===== To create an IBTRadio object, see instruction in .bid file

===== To register a signal to be notified of a state change

// first create the signal; // for example, use ISignalCBFactory_CreateSignal() // then register the signal: IBTRadio_OnStateChangeNotify (piBTRadio, piSignal);

===== To Retrieve current state of the radio

IBTRadio_RetrieveState(piBTRadio, &radioState);

===== When signal is triggered

IBTRadio_RetrieveState(piBTRadio, &radioState); ISignalCtl_Enable (piRadioStateSignalCtl); // re-enable signal

===== To Enable Radio

IBTRadio_Enable(piBTRadio);

===== To Disable Radio

IBTRadio_Disable(piBTRadio);