MICA Sounder
[Device Drivers]


Defines

#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.

Functions

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.

Variables

mos_mutex_t sounder_mutex

Detailed Description

This group contains functions associated with the MICA Sounder. This applies to the MICAz and MICA2 platforms.

Function Documentation

uint8_t dev_ioctl_DEV_MICA2_SOUNDER int8_t  request,
  ...
 

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

uint8_t dev_mode_DEV_MICA2_SOUNDER uint8_t  md  ) 
 

Parameters:
md ignored
Returns:
DEV_UNSUPPORTED

uint16_t dev_read_DEV_MICA2_SOUNDER void *  buf,
uint16_t  count
 

Parameters:
buf ignored
count ignored.
Returns:
DEV_UNSUPPORTED

uint16_t dev_write_DEV_MICA2_SOUNDER const void *  buf,
uint16_t  count
 

Parameters:
buf a pointer to a single byte.
count ignored.
Returns:
DEV_OK


Variable Documentation

mos_mutex_t sounder_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