|
Defines |
|
#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.
|
Functions |
| 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:
- DEV_MODE_OFF: Turn the device off.
- 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:
- DEV_MODE_OFF: Turn the device off.
- DEV_MODE_ON: Turn the device on.
|
| uint8_t | dev_ioctl_DEV_MICA2_ACCEL_Y (int8_t request,...) |
| | not supported for the MICA2 Accelerometer.
|
Variables |
| mos_mutex_t | accel_mutex |