com.mot.iden.multimedia
Class FMRadio

java.lang.Object
  extended bycom.mot.iden.multimedia.FMRadio

public class FMRadio
extends java.lang.Object

FMRadio

This Class allow an application to control the use of the FM headset. It allows the application to seek and scan to a radio station.
MOTOROLA and the Stylized M Logo are registered trademarks of Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
© Copyright 2002 Motorola, Inc. All Rights Reserved.


Constructor Summary
FMRadio()
           
 
Method Summary
static int readFreq()
          This method reads the current freqency the FM headset is tuned to.
static void scanDown()
          This method scans down from the current Frequency to the min frequency trying to find a radio station to lock on to.
static void scanUp()
          This method scans up from the current Frequency to the max frequency searching for a radio station to lock on to.
static void seekTo(int freq)
          This method seeks the FM headset to the specified Frequency.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FMRadio

public FMRadio()
Method Detail

seekTo

public static void seekTo(int freq)
                   throws java.lang.IndexOutOfBoundsException,
                          java.lang.IllegalStateException
This method seeks the FM headset to the specified Frequency. The frequency is in the form of 949 represents the FM station of 94.9 This function is not supported in Gemini.

Parameters:
freq - Station to seek the FM Headset to.
Throws:
java.lang.IndexOutOfBoundsException - Thrown if the frequency is an out of the bound of 879 to 1079
java.lang.IllegalStateException - Thrown if you try to seek when there is no FM Headset Availible

scanUp

public static void scanUp()
                   throws java.lang.IllegalStateException
This method scans up from the current Frequency to the max frequency searching for a radio station to lock on to. This function is not supported in Gemini.

Throws:
java.lang.IllegalStateException - Thrown if you try to seek when there is no FM Headset Availible

scanDown

public static void scanDown()
                     throws java.lang.IllegalStateException
This method scans down from the current Frequency to the min frequency trying to find a radio station to lock on to. This function is not supported in Gemini.

Throws:
java.lang.IllegalStateException - Thrown if you try to seek when there is no FM Headset Availible

readFreq

public static int readFreq()
                    throws java.lang.IllegalStateException
This method reads the current freqency the FM headset is tuned to. This function is not supported in Gemini. A useless freqency (-1) will be returned.

Returns:
currently tunned frequency
Throws:
java.lang.IllegalStateException - Thrown if you try to seek when there is no FM Headset Availible