mos/dev/include/dev.h File Reference

Device Layer generic routines. More...

#include <stdarg.h>
#include <stddef.h>
#include "mutex.h"

Go to the source code of this file.
#define dev_open_DEV_ATMEL_FLASH(void)   mos_mutex_lock(&atmel_flash_mutex)
#define dev_close_DEV_ATMEL_FLASH(void)   mos_mutex_unlock(&atmel_flash_mutex)
#define dev_open_DEV_LOOPBACK(void)   mos_mutex_lock(&loopback_mutex)
#define dev_close_DEV_LOOPBACK(void)   mos_mutex_unlock(&loopback_mutex)
#define dev_open_DEV_MSP_HUMIDITY(void)   mos_mutex_lock(&msp_temp_mutex)
#define dev_close_DEV_MSP_HUMIDITY(void)   mos_mutex_unlock(&msp_temp_mutex)
#define dev_mode_DEV_MSP_TEMPERTURE(newMode)   dev_mode_DEV_MSP_HUMIDITY(newMode)
#define dev_ioctl_DEV_MSP_TEMPERATURE(request)   dev_ioctl_DEV_MSP_HUMIDITY(request)
#define dev_open_DEV_MSP_TEMPERATURE(void)   mos_mutex_lock(&msp_temp_mutex)
#define dev_close_DEV_MSP_TEMPERATURE(void)   mos_mutex_unlock(&msp_temp_mutex)
#define dev_open_DEV_MSP_ACCELEROMETER(void)   mos_mutex_lock(&msp_acc_mutex)
#define dev_close_DEV_MSP_ACCELEROMETER(void)   mos_mutex_unlock(&msp_acc_mutex)
#define dev_open_DEV_MSP_FLASH(void)
#define dev_close_DEV_MSP_FLASH(void)

Device Driver Macros

These macros alias functions of the type dev_foo(DEVICE, ...) to dev_foo_DEVICE(...), allowing code to be written either way.

#define dev_read(dev, buf, count)   dev_read_##dev(buf, count)
 Reads count bytes from a device and stores the result in the provided buffer.
#define dev_write(dev, buf, count)   dev_write_##dev(buf, count)
 Writes count bytes to a device from the provided buffer.
#define dev_mode(dev, mode)   dev_mode_##dev(mode)
 Set the mode of a device.
#define dev_ioctl(dev, request, args...)   dev_ioctl_##dev(request, ##args)
 A pass-through to send arbitrary commands to a device (meaning is defined by device driver). This macro means that dev_ioctl(DEVICE_NAME, request, ...) is equivalent to dev_ioctl_DEVICE_NAME(request, ...), so either format may be used.
#define dev_open(dev)   dev_open_##dev()
 Gain an exclusive lock on a device driver.
#define dev_close(dev)   dev_close_##dev()
 Release an exclusive lock on a device driver.

Device Mode Constants

These constants can be used as paramenters to any dev_mode function.

#define DEV_MODE_OFF   0
 Power down the device.
#define DEV_MODE_IDLE   1
 Put the device in low power mode, if applicable.
#define DEV_MODE_ON   2
 Turn on the device.

Device IOCTL Constants

These constants can be used as parameters to some dev_ioctl functions, depending on the specific device. For information on what IOCTLS a driver will accept, check the documentation for that driver.

#define DEV_SEEK   1
 Seek the underlying device pointer.
#define DEV_FLUSH   2
 Flush any buffered data to the device.
#define DEV_LOCK   3
 Lock the device.
#define DEV_UNLOCK   4
 Unlock the device.

Device Return Constants

These constants may be returned from various dev_ functions to indicate The result of an operation.

#define DEV_OK   0
 operation succeeded.
#define DEV_UNSUPPORTED   100
 operation is not supported.
#define DEV_NOT_REGISTERED   101
 device driver not registered (this constant is no longer used)
#define DEV_OUT_OF_RANGE   102
 an argument was not in the expected range.
#define DEV_BAD_IOCTL   103
 device does not support the specified IOCTL.
#define DEV_BAD_MODE   104
 device does not support the specified mode.
#define DEV_FAILURE   105
 operation failed to complete.

Defines

#define dev_open_DEV_ADC()   mos_mutex_lock(&adc_mutex)
 gain an exclusive lock on the ADC. Any other threads calling dev_open_DEV_ADC() will block until the owner calls dev_close_DEV_ADC().
#define dev_close_DEV_ADC()   mos_mutex_unlock(&adc_mutex)
 release exclusive lock on the ADC. Any other thread blocking on dev_open_DEV_ADC() will now unblock.
#define dev_open_DEV_SPI()   mos_mutex_lock(&spi_mutex)
 gain an exclusive lock on the SPI Bus. Any other threads calling dev_open_DEV_SPI() will block until the owner calls dev_close_DEV_SPI().
#define dev_close_DEV_SPI()   mos_mutex_unlock(&spi_mutex)
 release exclusive lock on the SPI Bus. Any other thread blocking on dev_open_DEV_SPI() will now unblock.
#define dev_open_DEV_AVR_EEPROM()   mos_mutex_lock(&eeprom_mutex)
 gain an exclusive lock on the AVR EEPROM Driver. Any other threads calling dev_open_DEV_AVR_EEPROM() will block until the owner calls dev_close_DEV_AVR_EEPROM().
#define dev_close_DEV_AVR_EEPROM()   mos_mutex_unlock(&eeprom_mutex)
 release exclusive lock on the AVR EEPROM Driver. Any other thread blocking on dev_open_DEV_AVR_EEPROM() will now unblock.
#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.
#define dev_open_DEV_MICA2_LIGHT()   mos_mutex_lock(&lt_mutex)
 gain an exclusive lock on the MICA2 Light Driver. Any other threads calling dev_open_DEV_MICA2_LIGHT() will block until the owner calls dev_close_DEV_MICA2_LIGHT(). Note that because the MICA2 Light and MICA2 Temperature drivers share the same ADC line, an exclusive lock on the light driver will also prevent other threads from gaining a lock on the temperature driver.
#define dev_close_DEV_MICA2_LIGHT()   mos_mutex_unlock(&lt_mutex)
 release exclusive lock on the MICA2 Light Driver. Any other thread blocking on dev_open_DEV_MICA2_LIGHT() will now unblock. Note that because the MICA2 Light and MICA2 Temperature drivers share the same ADC line, an exclusive lock on the light driver will also prevent other threads from gaining a lock on the temperature driver.
#define dev_open_DEV_MICA2_TEMP()   mos_mutex_lock(&lt_mutex)
 gain an exclusive lock on the MICA2 Temperature Driver. Any other threads calling dev_open_DEV_MICA2_TEMP() will block until the owner calls dev_close_DEV_MICA2_TEMP(). Note that because the MICA2 Light and MICA2 Temperature drivers share the same ADC line, an exclusive lock on the temperature driver will also prevent other threads from gaining a lock on the light driver.
#define dev_close_DEV_MICA2_TEMP()   mos_mutex_unlock(&lt_mutex)
 release exclusive lock on the MICA2 Temperature Driver. Any other thread blocking on dev_open_DEV_MICA2_TEMP() will now unblock. Note that because the MICA2 Light and MICA2 Temperature drivers share the same ADC line, an exclusive lock on the temperature driver will also prevent other threads from gaining a lock on the light driver.
#define dev_open_DEV_MICA2_MIC()   mos_mutex_lock(&mic_mutex)
 gain an exclusive lock on the Microphone. Any other threads calling dev_open_DEV_MICA2_MIC() will block until the owner calls dev_close_DEV_MICA2_MIC().
#define dev_close_DEV_MICA2_MIC()   mos_mutex_unlock(&mic_mutex)
 release exclusive lock on the Microphone. Any other thread blocking on dev_open_DEV_MICA2_MIC() will now unblock.
#define dev_open_DEV_MICA2_SOUNDER()   mos_mutex_lock(&sounder_mutex)
 gain an exclusive lock on the Sounder. Any other threads calling dev_open_DEV_MICA2_SOUNDER() will block until the owner calls dev_close_DEV_MICA2_SOUNDER().
#define dev_close_DEV_MICA2_SOUNDER()   mos_mutex_unlock(&sounder_mutex)
 release exclusive lock on the Sounder. Any other thread blocking on dev_open_DEV_MICA2_SOUNDER() will now unblock.
#define dev_open_DEV_MICA2_ACCEL_X()   mos_mutex_lock(&accel_mutex)
 gain an exclusive lock on the Accelerometer. Any other threads calling dev_open_DEV_MICA2_ACCEL_[X/Y]() will block until the owner calls dev_close_DEV_MICA2_ACCEL_[X/Y]().
#define dev_close_DEV_MICA2_ACCEL_X()   mos_mutex_unlock(&accel_mutex)
 release exclusive lock on the Accelerometer. Any other thread blocking on dev_open_DEV_MICA2_ACCEL_[X/Y]() will now unblock.
#define dev_open_DEV_MICA2_ACCEL_Y()   mos_mutex_lock(&accel_mutex)
 gain an exclusive lock on the Accelerometer. Any other threads calling dev_open_DEV_MICA2_ACCEL_[X/Y]() will block until the owner calls dev_close_DEV_MICA2_ACCEL_[X/Y]().
#define dev_close_DEV_MICA2_ACCEL_Y()   mos_mutex_unlock(&accel_mutex)
 release exclusive lock on the Accelerometer. Any other thread blocking on dev_open_DEV_MICA2_ACCEL_[X/Y]() will now unblock.
#define dev_open_DEV_MICA2_MAGNET_X()   mos_mutex_lock(&magnet_x_mutex)
 gain an exclusive lock on the Magnet. Any other threads calling dev_open_DEV_MICA2_MAGNET_[X/Y]() will block until the owner calls dev_close_DEV_MICA2_MAGNET_[X/Y]().
#define dev_close_DEV_MICA2_MAGNET_X()   mos_mutex_unlock(&magnet_x_mutex)
 release exclusive lock on the Magnet. Any other thread blocking on dev_open_DEV_MICA2_MAGNET_[X/Y]() will now unblock.
#define dev_open_DEV_MICA2_MAGNET_Y()   mos_mutex_lock(&magnet_y_mutex)
 gain an exclusive lock on the Magnet. Any other threads calling dev_open_DEV_MICA2_MAGNET_[X/Y]() will block until the owner calls dev_close_DEV_MICA2_MAGNET_[X/Y]().
#define dev_close_DEV_MICA2_MAGNET_Y()   mos_mutex_unlock(&magnet_y_mutex)
 release exclusive lock on the Magnet. Any other thread blocking on dev_open_DEV_MICA2_MAGNET_[X/Y]() will now unblock.
#define dev_open_DEV_MICA2_BATTERY(void)   mos_mutex_lock(&battery_mutex)
 gain an exclusive lock on the Battery. Any other threads calling dev_open_DEV_MICA2_BATTERY() will block until the owner calls dev_close_DEV_MICA2_BATTERY().
#define dev_close_DEV_MICA2_BATTERY(void)   mos_mutex_unlock(&battery_mutex)
 release exclusive lock on the Battery. Any other thread blocking on dev_open_DEV_MICA2_BATTERY() will now unblock.
#define dev_open_DEV_HARDWARE_ID(void)   mos_mutex_lock(&id_mutex)
#define dev_close_DEV_HARDWARE_ID(void)   mos_mutex_unlock(&id_mutex)
#define TELOSB_RAMFUNC   __attribute__((section (".data")))
 this attribute causes the function to be mirrored in RAM, allowing the function to be called even if the program flash has been erased.
#define dev_open_DEV_TELOS_FLASH(void)   mos_mutex_lock(&telos_flash_mutex)
 gain an exclusive lock on the External Flash. Any other threads calling dev_open_DEV_TELOS_FLASH() will block until the owner calls dev_close_DEV_TELOS_FLASH().
#define dev_close_DEV_TELOS_FLASH(void)   mos_mutex_unlock(&telos_flash_mutex)
 release exclusive lock on the External Flash. Any other thread blocking on dev_open_DEV_TELOS_FLASH() will now unblock.
#define dev_open_DEV_MICA2_GPS(void)   mos_mutex_lock(&mica2_gps_mutex)
 gain an exclusive lock on the GPS device. Any other threads calling dev_open_DEV_GPS() will block until the owner calls dev_close_DEV_GPS().
#define dev_close_DEV_MICA2_GPS(void)   mos_mutex_unlock(&mica2_gps_mutex)
 release exclusive lock on the GPS device. Any other thread blocking on dev_open_DEV_MICA_GPS() will now unblock.

Enumerations

enum  dev_id_t

Functions

uint16_t dev_read_DEV_ADC (void *buf, uint16_t count)
 read from the ADC into buf.
uint16_t dev_write_DEV_ADC (const void *buf, uint16_t count)
 not supported for the ADC.
uint8_t dev_mode_DEV_ADC (uint8_t md)
 change the status of the ADC. Accepted parameters are:
  1. DEV_MODE_OFF: Turn the device off.
  2. DEV_MODE_ON: Turn the device on.

uint8_t dev_ioctl_DEV_ADC (int8_t request,...)
 send an IO Control to the ADC. Accepted parameters are:
  1. ADC_SET_CHANNEL, [int channel]

uint16_t dev_read_DEV_SPI (void *buf, uint16_t count)
 read from the SPI Bus into buf.
uint16_t dev_write_DEV_SPI (const void *buf, uint16_t count)
 write from buf to the SPI Bus.
uint8_t dev_mode_DEV_SPI (uint8_t md)
 not supported for the SPI Bus.
uint8_t dev_ioctl_DEV_SPI (int8_t request,...)
 send an IO Control to the SPI Bus. Accepted parameters are:
  1. SPI_SET_SLAVE_SELECT, [slave device]
  2. SPI_CLEAR_SLAVE_SELECT

uint16_t dev_read_DEV_AVR_EEPROM (void *buf, uint16_t count)
 read count bytes from the current eeprom address into buf.
uint16_t dev_write_DEV_AVR_EEPROM (const void *buf, uint16_t count)
 write from buf to the current eeprom address.
uint8_t dev_mode_DEV_AVR_EEPROM (uint8_t md)
 not supported for the AVR EEPROM.
uint8_t dev_ioctl_DEV_AVR_EEPROM (int8_t request,...)
 send an IO Control to the EEPROM Driver. Accepted parameters are:
  1. DEV_SEEK, [int16_t address]

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.
uint16_t dev_read_DEV_AVR_I2C (void *buf, uint16_t count)
 read from the I2C Bus into buf.
uint16_t dev_write_DEV_AVR_I2C (const void *buf, uint16_t count)
 write from buf to the I2C Bus.
uint8_t dev_mode_DEV_AVR_I2C (uint8_t md)
 change the status of the AVR I2C 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_I2C (int8_t request,...)
 send an IO Control to the I2C Bus. Accepted parameters are:
  1. I2C_ENABLE_ACK
  2. I2C_DISABLE_ACK
  3. I2C_DEST_ADDR, [uint16_t address]
  4. I2C_SLAVE_ADDR, [uint16_t address]
  5. I2C_SET_BRR, [uint16_t baudrate]

uint16_t dev_read_DEV_MICA2_LIGHT (void *buf, uint16_t count)
 read from the Light sensor into buf.
uint16_t dev_write_DEV_MICA2_LIGHT (const void *buf, uint16_t count)
 not supported for the MICA2 Light driver.
uint8_t dev_mode_DEV_MICA2_LIGHT (uint8_t md)
 change the status of the MICA2 Light 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_MICA2_LIGHT (int8_t request,...)
 not supported for the MICA2 Light driver.
uint16_t dev_read_DEV_MICA2_TEMP (void *buf, uint16_t count)
 read from the Temperature sensor into buf.
uint16_t dev_write_DEV_MICA2_TEMP (const void *buf, uint16_t count)
 not supported for the MICA2 Temperature driver.
uint8_t dev_mode_DEV_MICA2_TEMP (uint8_t md)
 change the status of the MICA2 Temperature 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_MICA2_TEMP (int8_t request,...)
 not supported for the MICA2 Temperature driver.
uint16_t dev_read_DEV_MICA2_MIC (void *buf, uint16_t count)
 read from the Microphone into buf.
uint16_t dev_write_DEV_MICA2_MIC (const void *buf, uint16_t count)
 not supported for the MICA2 Microphone.
uint8_t dev_mode_DEV_MICA2_MIC (uint8_t md)
 change the status of the MICA2 Microphone. Accepted parameters are:
  1. DEV_MODE_OFF: Turn the device off.
  2. DEV_MODE_ON: Turn the device on.

uint8_t dev_ioctl_DEV_MICA2_MIC (int8_t request,...)
 not supported for the MICA2 Microphone.
uint16_t dev_read_DEV_MICA2_SOUNDER (void *buf, uint16_t count)
 not supported for the MICA2 Sounder.
uint16_t dev_write_DEV_MICA2_SOUNDER (const void *buf, uint16_t count)
 Cause the sounder to be turned on or off. If the value of buf[0] is 0x00, the sounder is turned off. Any other value will turn it on.
uint8_t dev_mode_DEV_MICA2_SOUNDER (uint8_t md)
 not supported for the MICA2 Sounder.
uint8_t dev_ioctl_DEV_MICA2_SOUNDER (int8_t request,...)
 not supported for the MICA2 Sounder.
uint16_t dev_read_DEV_MICA2_ACCEL_X (void *buf, uint16_t count)
 read the value of the accelerometer in the X direction.
uint16_t dev_write_DEV_MICA2_ACCEL_X (const void *buf, uint16_t count)
 not supported for the MICA2 Accelerometer.
uint8_t dev_mode_DEV_MICA2_ACCEL_X (uint8_t md)
 turn the MICA2 Accelerometer on or off. Accepted parameters are:
  1. DEV_MODE_OFF: Turn the device off.
  2. DEV_MODE_ON: Turn the device on.

uint8_t dev_ioctl_DEV_MICA2_ACCEL_X (int8_t request,...)
 not supported for the MICA2 Accelerometer.
uint16_t dev_read_DEV_MICA2_ACCEL_Y (void *buf, uint16_t count)
 read the value of the accelerometer in the Y direction.
uint16_t dev_write_DEV_MICA2_ACCEL_Y (const void *buf, uint16_t count)
 not supported for the MICA2 Accelerometer.
uint8_t dev_mode_DEV_MICA2_ACCEL_Y (uint8_t md)
 turn the MICA2 Accelerometer on or off. Accepted parameters are:
  1. DEV_MODE_OFF: Turn the device off.
  2. DEV_MODE_ON: Turn the device on.

uint8_t dev_ioctl_DEV_MICA2_ACCEL_Y (int8_t request,...)
 not supported for the MICA2 Accelerometer.
uint16_t dev_read_DEV_MICA2_MAGNET_X (void *buf, uint16_t count)
 read data from the Magnet (X-direction) into buf.
uint16_t dev_write_DEV_MICA2_MAGNET_X (const void *buf, uint16_t count)
 unsupported for the MICA2 Magnet Driver.
uint8_t dev_mode_DEV_MICA2_MAGNET_X (uint8_t md)
 turn the MICA2 Magnet on or off. Accepted parameters are:
  1. DEV_MODE_OFF: Turn the device off.
  2. DEV_MODE_ON: Turn the device on.

uint8_t dev_ioctl_DEV_MICA2_MAGNET_X (int8_t request,...)
 unsupported for the MICA2 Magnet Driver.
uint16_t dev_read_DEV_MICA2_MAGNET_Y (void *buf, uint16_t count)
 read data from the Magnet (Y-direction) into buf.
uint16_t dev_write_DEV_MICA2_MAGNET_Y (const void *buf, uint16_t count)
 unsupported for the MICA2 Magnet Driver.
uint8_t dev_mode_DEV_MICA2_MAGNET_Y (uint8_t md)
 turn the MICA2 Magnet on or off. Accepted parameters are:
  1. DEV_MODE_OFF: Turn the device off.
  2. DEV_MODE_ON: Turn the device on.

uint8_t dev_ioctl_DEV_MICA2_MAGNET_Y (int8_t request,...)
 unsupported for the MICA2 Magnet Driver.
uint16_t dev_read_DEV_MICA2_BATTERY (void *buf, uint16_t count)
 read the current battery value.
uint16_t dev_write_DEV_MICA2_BATTERY (const void *buf, uint16_t count)
 not supported by the MICA2 Battery Driver.
uint8_t dev_mode_DEV_MICA2_BATTERY (uint8_t md)
 change the mode of the mica2 battery driver. Accepted parameters are:
  1. DEV_MODE_ON
  2. DEV_MODE_OFF

uint8_t dev_ioctl_DEV_MICA2_BATTERY (int8_t request,...)
 not supported by the MICA2 Battery Driver.
uint16_t dev_read_DEV_MICA2_ULTRASOUND (void *buf, uint16_t count)
 Not supported for the Ultrasound.
uint16_t dev_write_DEV_MICA2_ULTRASOUND (const void *buf, uint16_t count)
 Cause the ultarsound to be turned on or off. If the value of buf[0] is 0x00, the sounder is turned off. Any other value will turn it on.
uint8_t dev_mode_DEV_MICA2_ULTRASOUND (uint8_t md)
 Not supported for the Ultrasound.
uint8_t dev_ioctl_DEV_MICA2_ULTRASOUND (int8_t request,...)
 Not supported for the Ultrasound.
uint16_t dev_read_DEV_HARDWARE_ID (void *buf, uint16_t count)
 read the 48-bit hardware ID from telosb or mica2/micaz nodes.
uint16_t dev_write_DEV_HARDWARE_ID (const void *buf, uint16_t count)
 Not supported for the ID Driver..
uint8_t dev_mode_DEV_HARDWARE_ID (uint8_t md)
 Not supported for the ID Driver.
uint8_t dev_ioctl_DEV_HARDWARE_ID (int8_t request,...)
 Not supported for the ID Driver.
uint8_t TELOSB_RAMFUNC dev_read_DEV_TELOS_FLASH (void *buf, uint16_t count)
 Read count number of bytes from the flash and store it in buf. Note: This function is mirrored in RAM and can be called even after the program flash has been erased.
uint8_t dev_write_DEV_TELOS_FLASH (const void *buf, uint16_t count)
 Write count bytes from buf to the external flash.
uint8_t dev_mode_DEV_TELOS_FLASH (uint8_t md)
 turn the flash on or off. Accepted parameters are:
  1. DEV_MODE_OFF: Turn the device off.
  2. DEV_MODE_ON: Turn the device on.

uint8_t TELOSB_RAMFUNC dev_ioctl_DEV_TELOS_FLASH (int8_t request,...)
 send an IO Control command to the flash driver. Accepted parameters are:
  1. DEV_SEEK, [uint32_t address]
  2. TELOS_FLASH_BULK_ERASE
  3. TELOS_FLASH_SECT_ERASE, [uint32_t address] Note: This function is mirrored in RAM and can be called even after the program flash has been erased.

uint16_t dev_read_DEV_MICA2_GPS (void *buf, uint16_t count)
 read data from the GPS into buf. This data can be in either string form or as a gps_gga_t structure. This is configurable via dev_ioctl_DEV_MICA2_GPS().
uint16_t dev_write_DEV_MICA2_GPS (const void *buf, uint16_t count)
 write from buf to the Leadtek GPS device.
uint8_t dev_mode_DEV_MICA2_GPS (uint8_t md)
 change the status of the GPS. Accepted parameters are:
  1. DEV_MODE_OFF: Turn the device off.
  2. DEV_MODE_ON: Turn the device on.

uint8_t dev_ioctl_DEV_MICA2_GPS (int8_t request,...)
 send an IO Control to the GPS Driver. Accepted parameters are:
  1. MICA2_GPS_READ_GGA
  2. MICA2_GPS_READ_STRING


Variables

mos_mutex_t adc_mutex
mos_mutex_t spi_mutex
mos_mutex_t eeprom_mutex
mos_mutex_t rssi_mutex
mos_mutex_t lt_mutex
mos_mutex_t mic_mutex
mos_mutex_t sounder_mutex
mos_mutex_t accel_mutex
mos_mutex_t magnet_x_mutex
mos_mutex_t magnet_y_mutex
mos_mutex_t battery_mutex
mos_mutex_t id_mutex
mos_mutex_t telos_flash_mutex
mos_mutex_t mica2_gps_mutex


Detailed Description

Author:
Adam Torgerson

Modified: Brian Shucker

Updating Documentation: John Ledbetter

Date:
Modified 05/29/2007

Definition in file dev.h.


Generated on Mon Nov 23 06:25:59 2009 for MANTIS by  doxygen 1.4.6