SunSPOT API V3.0


com.sun.spot.peripheral
Interface IAT91_PowerManager

All Superinterfaces:
IDriver

public interface IAT91_PowerManager
extends IDriver

Interface to the AT91 power manager for the Sun SPOT, allowing peripheral power consumption to be controlled by switching the peripheral clocks on or off.

Author:
Syntropy

Method Summary
 void disablePeripheralClock(int mask)
          Disable the clocks for peripherals whose bits are set in the mask.
 void enablePeripheralClock(int mask)
          Enable the clocks for peripherals whose bits are set in the mask.
 int getEnabledPeripheralClocks()
          Return a mask containing a set bit for each peripheral whose clock is enabled.
 
Methods inherited from interface com.sun.spot.peripheral.IDriver
getDriverName, setUp, shutDown, tearDown
 

Method Detail

enablePeripheralClock

void enablePeripheralClock(int mask)
Enable the clocks for peripherals whose bits are set in the mask.

Parameters:
mask - containing one bit that is the peripheral clock to enable

disablePeripheralClock

void disablePeripheralClock(int mask)
Disable the clocks for peripherals whose bits are set in the mask.

Parameters:
mask - containing one bit that is the peripheral clock to disable

getEnabledPeripheralClocks

int getEnabledPeripheralClocks()
Return a mask containing a set bit for each peripheral whose clock is enabled.

Returns:
mask containing one set bit for each enabled peripheral clock

SunSPOT API V3.0


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