|
Defines |
|
#define | dev_open_DEV_MICA2_TEMP() mos_mutex_lock(<_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(<_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.
|
Functions |
| 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:
- DEV_MODE_OFF: Turn the device off.
- DEV_MODE_ON: Turn the device on.
|
| uint8_t | dev_ioctl_DEV_MICA2_TEMP (int8_t request,...) |
| | not supported for the MICA2 Temperature driver.
|