RSSI
[Device Drivers]


Defines

#define dev_open_DEV_AVR_RSSI()   mos_mutex_lock(&rssi_mutex)
 gain an exclusive lock on the AVR RSSI Driver. Any other threads calling dev_open_DEV_AVR_RSSI() will block until the owner calls dev_close_DEV_AVR_RSSI().
#define dev_close_DEV_AVR_RSSI()   mos_mutex_unlock(&rssi_mutex)
 release exclusive lock on the AVR RSSI Driver. Any other thread blocking on dev_open_DEV_AVR_RSSI() will now unblock.

Functions

uint16_t dev_read_DEV_AVR_RSSI (void *buf, uint16_t count)
 read the RSSI value from the CC1000 radio int buf.
uint16_t dev_write_DEV_AVR_RSSI (const void *buf, uint16_t count)
 not supported for the AVR RSSI Driver.
uint8_t dev_mode_DEV_AVR_RSSI (uint8_t md)
 change the status of the RSSI Driver. Accepted parameters are:
  1. DEV_MODE_OFF: Turn the device off.
  2. DEV_MODE_ON: Turn the device on.

uint8_t dev_ioctl_DEV_AVR_RSSI (int8_t request,...)
 not supported for the AVR RSSI Driver.

Variables

mos_mutex_t rssi_mutex

Detailed Description

This group contains functions associated with the RSSI Driver. Applications may use this driver to read the Receive Strength Signal Indicator from the CC1000 radio. This applies to the mica2 and mica2dot platforms.

Function Documentation

uint8_t dev_ioctl_DEV_AVR_RSSI int8_t  request,
  ...
 

Parameters:
request ignored.
... ignored.
Returns:
DEV_BAD_IOCTL

uint8_t dev_mode_DEV_AVR_RSSI uint8_t  md  ) 
 

Parameters:
md The mode you wish to change to.
Returns:
DEV_OK or DEV_UNSUPPORTED.

uint16_t dev_read_DEV_AVR_RSSI void *  buf,
uint16_t  count
 

Parameters:
count the number of bytes to read. This must be either '1' to read an 8-bit value, or '2' to read a 16-bit value. Any other value will return no data.
buf the buffer to store the result in.
Returns:
the number of bytes read.

uint16_t dev_write_DEV_AVR_RSSI const void *  buf,
uint16_t  count
 

Parameters:
md ignored.
Returns:
DEV_UNSUPPORTED


Variable Documentation

mos_mutex_t rssi_mutex
 

For internal use only.

Used by the dev_open and dev_close functions.


Generated on Sun Nov 22 06:26:00 2009 for MANTIS by  doxygen 1.4.6