Interface: tos.chips.cc2420.interfaces.CC2420Power

interface CC2420Power

An HAL abstraction of the ChipCon CC2420 radio. This abstraction deals specifically with radio power operations (e.g. voltage regulator, oscillator, etc). However, it does not include transmission power, see the CC2420Config interface.

Author:
Jonathan Hui <jhui@archrock.com>
Version:
$Revision: 1.1 $ $Date: 2007/07/04 00:37:14 $

Commands
command error_t rfOff() Disable RX.
command error_t rxOn() Enable RX.
command error_t startOscillator() Start the oscillator.
command error_t startVReg() Start the voltage regulator on the CC2420.
command error_t stopOscillator() Stop the oscillator.
command error_t stopVReg() Stop the voltage regulator immediately.

Events
event void startOscillatorDone() Signals that the oscillator has been started.
event void startVRegDone() Signals that the voltage regulator has been started.

Commands - Details

rfOff

command error_t rfOff()

Disable RX.

Returns:
SUCCESS if receive mode has been disabled, FAIL otherwise.

rxOn

command error_t rxOn()

Enable RX.

Returns:
SUCCESS if receive mode has been enabled, FAIL otherwise.

startOscillator

command error_t startOscillator()

Start the oscillator. On SUCCESS, startOscillator will be signalled when the oscillator has been started.

Returns:
SUCCESS if the request was accepted, FAIL otherwise.

startVReg

command error_t startVReg()

Start the voltage regulator on the CC2420. On SUCCESS, startVReg() will be signalled when the voltage regulator is fully on.

Returns:
SUCCESS if the request was accepted, FAIL otherwise.

stopOscillator

command error_t stopOscillator()

Stop the oscillator.

Returns:
SUCCESS if the oscillator was stopped, FAIL otherwise.

stopVReg

command error_t stopVReg()

Stop the voltage regulator immediately.

Returns:
SUCCESS always

Events - Details

startOscillatorDone

event void startOscillatorDone()

Signals that the oscillator has been started.

startVRegDone

event void startVRegDone()

Signals that the voltage regulator has been started.