Radio Interface
[Communications Interface]


Functions

uint8_t com_send_IFACE_RADIO (comBuf *buf)
 transmit the contents of buf over the radio.
void com_mode_IFACE_RADIO (uint8_t mode)
 change the power status of the radio. Valid parameters are:
  1. IF_OFF
  2. IF_LISTEN

void com_ioctl_IFACE_RADIO (uint8_t request,...)
 send an device-specific IO Control request to the radio. Valid parameters are:
  1. CC2420_LOW_POWER_MODE
  2. CC2420_HIGH_POWER_MODE
  3. CC2420_TX_POWER, [int power]
  4. CC1000_TX_POWER, [int power]
  5. CC1000_GET_TX_POWER, [uint8_t* power]
  6. CC1000_FREQ, [int frequency]


Detailed Description

The IFACE_RADIO interface allows programs to interact directly with the onboard radio, which is either the CC1000 (Mica2) or CC2420 (MicaZ/TELOSb)

Function Documentation

void com_ioctl_IFACE_RADIO uint8_t  request,
  ...
 

Parameters:
request the IO Control to send.
... any required data for the IOCTL.

void com_mode_IFACE_RADIO uint8_t  mode  ) 
 

Parameters:
mode the new mode.

uint8_t com_send_IFACE_RADIO comBuf buf  ) 
 

Parameters:
buf a pointer to the comBuf to transmit.
Returns:
returns 0 on success.


Generated on Mon Nov 23 06:26:00 2009 for MANTIS by  doxygen 1.4.6