This tutorial describes how to set a frequency of a FM transmitter.
This tutorial shows you how to use FM Transmitter Utility to set the frequency of FM transmitter.
Required Background
The FM Transmitter Library Overview provides an overview of the FM Transmitter library.
Introduction
A client application can transmit through a specific frequency. The FM Transmitter Utility allows the application to set and use any frequency supported by device for transmission.
Setup and Configuration Requirements
Make sure the device supports FM Transmitter.
The high level steps followed by the client to set frequency of a FM transmitter are shown here:
Get the frequency range of the transmitter for a specific band using the CMMTransmitterUtility::GetFrequencyRangeL method.
Retrieve the frequency used by the FM transmitter using theCMMTransmitterUtility::GetFrequencyL method.
Set the frequency in the FM transmitter using CMMTransmitterUtility::SetFrequencyL method.
Get notification on completion of request with MTransmitterUtilityObserver::SetFrequencyComplete call back. The callback contains error code to indicate the success or failure of the operation.
If the frequency is set successfully, the client receives aMTransmitterUtilityObserver::TransmitterFrequencyChanged callback.