|
Defines |
|
#define | dev_open_DEV_MICA2_LIGHT() mos_mutex_lock(<_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(<_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.
|
Functions |
| 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:
- DEV_MODE_OFF: Turn the device off.
- DEV_MODE_ON: Turn the device on.
|
| uint8_t | dev_ioctl_DEV_MICA2_LIGHT (int8_t request,...) |
| | not supported for the MICA2 Light driver.
|
Variables |
| mos_mutex_t | lt_mutex |