SunSPOT host API V3.0


com.sun.spot.peripheral.radio
Class RadioFactory

java.lang.Object
  extended by com.sun.spot.peripheral.radio.RadioFactory

public class RadioFactory
extends Object

Static factory for public access to the radio in various guises.


Method Summary
static void closeBaseStation()
          Close down a local basestation, if any.
static I802_15_4_MAC getI802_15_4_MAC()
          Answer the interface for dealing with the radio at the I802.15.4 MAC level.
static I802_15_4_PHY getI802_15_4_PHY()
          Answer the interface for dealing with the radio at the I802.15.4 PHY level.
static IProprietaryRadio getIProprietaryRadio()
          Answer the interface for dealing with the radio features not implemented within the I802.15.4 standard.
static I802_15_4_MAC getSocketMAC()
          Answer the interface for accessing the socket MAC.
static void setAsDaemonThread(Thread thread)
          Set thread to be a daemon thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getI802_15_4_PHY

public static I802_15_4_PHY getI802_15_4_PHY()
Answer the interface for dealing with the radio at the I802.15.4 PHY level.

Returns:
the radio PHY layer object

getIProprietaryRadio

public static IProprietaryRadio getIProprietaryRadio()
Answer the interface for dealing with the radio features not implemented within the I802.15.4 standard.

Returns:
an object providing extended functionality not covered by 802.15.4 spec

getI802_15_4_MAC

public static I802_15_4_MAC getI802_15_4_MAC()
Answer the interface for dealing with the radio at the I802.15.4 MAC level.

Returns:
the radio MAC layer object

getSocketMAC

public static I802_15_4_MAC getSocketMAC()
Answer the interface for accessing the socket MAC.

Returns:
the socket MAC layer object

setAsDaemonThread

public static void setAsDaemonThread(Thread thread)
Set thread to be a daemon thread. Not really part of this class, but placed here as it's a convenient way to handle the different treatment of dameon threads in JME and J2SE.

Parameters:
thread - to be converted to daemon status

closeBaseStation

public static void closeBaseStation()
Close down a local basestation, if any. The serial port is released. This has no effect on shared basestations.


SunSPOT host API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.